I have a small number of removable hard drives. At any one time, one of them will be mounted to /backup
except while changing drives. I swap the drive periodically. That is I have 4 hard drives and I rotate them.
Currently I manually mount / unmount the drive. But there are times when this machine is turned off and worse, sometimes it gets turned off without my knowledge. The daily backup script will fail if a drive isn't mounted.
The drives don't currently share a UUID or Label. I can't garuntee that the disk will always be available on /dev/sdb1
. Is there a good way to mount one of a number of drives automatically from /etc/fstab when I just don't know which drive will be inserted?
Note this is a linux (debian) system without a monitor or keyboard. Drives are currently manually mounted / unmounted over ssh after I plug / before I unplug.