Goal
- I have a USB drive -- let's say the drive's ID is /dev/disk/by-id/thediskid
- I would like to mount the drive -- by ID -- to a folder (let's call it /MOUNT_FOLDER)
Question
- What is the best way to do this using autofs?
Current Attempt
/etc/auto.master:
+auto.master
/localam auto.linux
/[another mount] [auto.othermount] --timeout=5 -- ghost
/MOUNT_FOLDER auto.ext-usb --timeout=5
/ -
/etc/auto.ext-usb:
/MOUNT_FOLDER /dev/disk/by-id/thediskid
I know I'm missing something but I can't seem to get a good lead on what the proper syntax is.
New to Linux; appreciate a pass if I'm overlooking something simple. Thanks!