Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to configure

/etc/autofs/auto.misc

to automount external CDs and USB drives. It worked fine until I reinserted a USB drive; it got renamed from sdb to sdc.

How can I anticipate such changes in my configuration file?

# This is an automounter map and it has the following format 
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

cdrom -fstype=iso9660,ro,nodev,nosuid :/dev/cdrom
floppy -fstype=auto,async,nodev,nosuid,umask=000 :/dev/fl
usbstick1 -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sda1
usbstick2 -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sdb1
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.