I use Bacula for my backups, with data spooled to one of two USB drives (the other is stored off site, and they get swapped occasionally). Currently these drives are labelled BACKUP5 and BACKUP6.

Until last week I was using Fedora 17, which mounts USB drives in /media/$LABEL. So I just told bacula-sd that it should look for either /media/BACKUP5 or /media/BACKUP6, with a little script to switch over when I swap the disks. But I've just upgraded to Fedora 18, and it now mounts USB drives in /run/media/$USER/$LABEL. So the mount point varies depending on who is logged in, or something.

Is there any way of telling udisks to have a special mount point for USB media labelled "BACKUP*"?


The only way of telling udisks to use another mount point it to override it using /etc/fstab. In your case this would be by adding:

LABEL=BACKUP5 /mnt/backup5 auto user,noauto 0 0
LABEL=BACKUP6 /mnt/backup6 auto user,noauto 0 0

Attaching the disks afterwards, udisks will mount them on the mount-point specified in /etc/fstab

Adding the fstab-option x-udisks-auth will require the user to authenticate as an administrator


I ran a Gnome utility (sorry, can't now remember which one) that added the following line to my /etc/fstab:

/dev/disk/by-label/BACKUP6 /media/BACKUP6 auto nosuid,nodev,nofail,noauto 0 0

I have to admit, I didn't know about the /dev/disk hierarchy. It contains symbolic links to all the disk devices by label, UUID, ID and path.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.