jellyfisharepretty n00b
Joined: 05 May 2005 Posts: 32 Location: Kingston, Canada
|
Posted: Sun May 08, 2005 7:36 pm Post subject: no errors, but autofs won't work |
|
|
Hi,
I've set up autofs according to [url=http://gentoo-wiki.com/HOWTO_Auto_mount_filesystems_(AUTOFS)#Verify_Manual_Mounting]HOWTO Auto mount filesystems (AUTOFS)[/url]. autofs gets loaded properly at boot, I get no errors at all, but it just doesn't seem to work... When I put a cd in one of my cdroms, no directory is created in /mnt/auto as it should be.
Here's my /etc/autofs/auto.master:
Code: | /mnt/auto /etc/autofs/auto.auto --timeout=60 |
My /etc/autofs/auto.auto:
Code: |
cdrom -fstype=iso9660,ro,gid=1001,umask=0727 :/dev/cdroms/cdrom0
cdrom1 -fstype=iso9660,ro,gid=1001,umask=0727 :/dev/cdroms/cdrom1
floppy -fstype=auto,gid=1001,umask=0707 :/dev/fd0
|
(group 1001 is just a group so my user can use the device)
And finally a snippet of my /etc/fstab:
Code: |
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
/dev/cdroms/cdrom1 /mnt/cdrom1 auto noauto,user 0 0
|
Strange that when I manually mount the cd rom, autofs kicks in... Here's what I mean:
before:
Code: |
[i]I insert cd-rom in cdrom1[/i]
bash-2.05b$ cd /mnt/cdrom1
bash: cd: /mnt/cdrom1: No such file or directory
|
After:
Code: |
bash-2.05b$ su
Password:
bash-2.05b# mkdir /mnt/test
bash-2.05b# mount /dev/cdroms/cdrom1 /mnt/test
mount: block device /dev/cdroms/cdrom1 is write-protected, mounting read-only
bash-2.05b# exit
exit
bash-2.05b$ cd /mnt/cdrom1
bash-2.05b$
|
See ? no problems now. The sames files in /mnt/test are in /mnt/cdrom1 (which is a link to /mnt/auto/cdrom1, the directory created by autofs). Anybody know what's going on ?
Thanks,
jelly |
|