Thanks to some of you I got autofs set up on my C7 netbook for mounting local cifs filesytems.
Now I want to do something on my C7 desktop machine, that seems to me to be a little different, and I”m not sure how to do it.
I have an external RAID1 box that attaches via USB. It is/will be nearly always /dev/sdc, but being USB I can’t guarantee that it will always be found there.
accordingly, in my /etc/fstab I have an entry that mounts it via its UUID:
UUID bfc97a-8db2-46de-b4dd-427da19b114 /mnt/backup xfs defaults,noauto,users 0 2
and I’m wondering how to specify that in an autofs recipe instead…
If doing cifs mounts, /etc/auto.master may contain this line:
then there would be a file /etc/auto.mymount that contains a line similar to this:
winbox -fstype=cifs,rw,noperm,user=sushi,pass=yummy ://winbox/getme
so, in my case, the USB drive contains an xfs filesystem. would I
do something like this:
and in /etc/auto.backup
backup -fstype=xfs,defaults,noauto,users :UUID bfc97a-8db2-46de-b4dd-427da19b114
Would that be expected to work, or am I all overlooking something obvious?
Thanks in advance for your advice!