I'd like to have 2 eSATA drives, which can be hot swapped, mounted at the same mountpoint. Only one of them will every be mounted at a time.
Since they may not be attached when the computer boots, having them in
/etc/fstab is not a good option, I presume. I tried using
autofs for this, but it does not seem to support multiple drives with the same mountpoint.
This question is about the same topic, but using
fstab. It seems like there is no solution for what I want, other than writing my own script and manually running that after inserting one of the drives.
I have an
auto.mine file that looks like this. It works when I have one but not both of the lines enabled. I can see that it might be a bad idea in general to set up the same mountpoint for multiple disks, but I would still like to know if it is possible, because it would certainly be handy in my case.
# drive1 storage -fstype=auto UUID="xxx-xxx-xxx-xxx" # drive2 # This works (new mountpoint): storage1 -fstype=auto UUID="yyyy-yyyy" # This doesn't work (same mountpoint): storage -fstype=auto UUID="yyyy-yyyy"