I have had a good read through the wiki and tried some autofs configs but I cannot seem to get what I want to work.I have an NFS server ( 192.168.0.10 ) with an exported directory ( /mnt/Files ) that I would like to automount on my local machine under /mnt/Files and to be mountable by any userI have edited /etc/autofs/auto.master to look like this:# Sample auto.master file
# Format of this file:
#
(crosspost from SF, where I wasn't getting much joy)
I have a CentOS 6.2 box up and running and have configured autofs to automount Windows shares under a /mydomain folder, using various howtos on the internet.
* -fstype=vfat,sync,uid=1000 :/dev/sd&Assuming auto.master has specified the base folder /media, the above works to put /dev/sdb1 into /media/b1 and so on and so forth (/dev/sdb8 into /media/b8).However, I'd like to be able to do something similar but using the labels (/dev/disk/by-label).
I'm trying to mount my local hard disk automatically with autofs ...
I have modified the files auto.master and auto.misc in accordance with the instructions and restarted the autofs, but nothing changes ...
see below the modified auto.master and auto.misc:
/etc/auto.master
Code:
#
# Sample auto.master file
I just upgraded from Ubuntu 12.04 to 12.10. Before that I backed up my autofs config which worked fine.
11.2 issues keep piling up...
I had an NFS server on my desktop and used autofs to mount it on my laptop using openSUSE 11.1 on both. Now I installed 11.2 on both, made exactly identical settings and configurations, copied the same config files, even gone further and turned off the firewall - CAN'T mount!
Desktop:
User: linuxoid
UID: 1000
Goal
I have a USB drive -- let's say the drive's ID is /dev/disk/by-id/thediskid
I would like to mount the drive -- by ID -- to a folder (let's call it /MOUNT_FOLDER)
Question
What is the best way to do this using autofs?
Current Attempt
/etc/auto.master:
+auto.master
/localam auto.linux
/[another mount] [auto.othermount] --timeout=5 -- ghost
/MOUNT_FOLDER auto.ext-usb --timeout=5
/ -
I upgraded from Fedora 16 to Fedora 17 and everything is fine except autofs does not seem to work with nfs drives.
I've got a auto.master with an indirect map and a direct map.
/home /etc/auto.home --timeout 60
/- /etc/auto.foo --timeout 60
auto.home:
jwells -rw,noquota,intr server:/vol/home/jwells
... <SOME of these>
auto.foo:
/foo/path/one -rw,noquota,intr server1:/path
... <LOTS of these>
When I start autofs, EVERYTHING in auto.foo gets mounted. Thousands of mounts.