[CentOS] more questions on setting up autofs on C7

Tue Aug 22 02:23:46 UTC 2017
Fred Smith <fredex at fcshome.stoneham.ma.us>


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=09bfc97a-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:

/mymount /etc/auto.mymount

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:

in /etc/auto.master:

backup /etc/auto.backup

and in /etc/auto.backup

backup -fstype=xfs,defaults,noauto,users :UUID=09bfc97a-8db2-46de-b4dd-427da19b114

Would that be expected to work, or am I all overlooking something obvious?

Thanks in advance for your advice!

    Under no circumstances will I ever purchase anything offered to me as
    the result of an unsolicited e-mail message. Nor will I forward chain
    letters, petitions, mass mailings, or virus warnings to large numbers
    of others. This is my contribution to the survival of the online
 --Roger Ebert, December, 1996
----------------------------- The Boulder Pledge -----------------------------