[CentOS] more questions on setting up autofs on C7
Fred Smith
fredex at fcshome.stoneham.ma.usTue Aug 22 02:23:46 UTC 2017
- Previous message: [CentOS] Updated Apache httpd packages?
 - Next message: [CentOS] more questions on setting up autofs on C7
 - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
 
Hi!
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=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!
Fred
-- 
-------------------------------------------------------------------------------
    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
    community.
 --Roger Ebert, December, 1996
----------------------------- The Boulder Pledge -----------------------------
  - Previous message: [CentOS] Updated Apache httpd packages?
 - Next message: [CentOS] more questions on setting up autofs on C7
 - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
 
More information about the CentOS mailing list