Andreas J. Guelzow grabbed a keyboard and wrote:
>
> Of course the cd... can fail for all differnet reasons.
True, but if I *manually* issue a mount command to mount the CD-ROM, I can
access the disk in the drive just fine. Just FYI.
> After you started autofs what does mount say.
[root@rhpsfan2 log]# cat /etc/auto.master
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/mnt/cdrom /etc/auto.cdrom
[root@rhpsfan2 log]# cat /etc/auto.cdrom
cdrom -fstype=iso9660,ro :/dev/cdrom
[root@rhpsfan2 log]# /etc/init.d/autofs start
Starting automounter: [ OK ]
[root@rhpsfan2 log]# mount
/dev/hde6 on / type reiserfs (rw)
none on /proc type proc (rw)
/dev/hde5 on /boot type ext2 (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdf7 on /home type reiserfs (rw)
/dev/hde7 on /root type reiserfs (rw)
/dev/hdf6 on /tmp type reiserfs (rw)
/dev/hde8 on /usr type reiserfs (rw)
/dev/hde9 on /var type reiserfs (rw)
//rhpsfan1/c on /mnt/c type smbfs (0)
//rhpsfan1/d on /mnt/d type smbfs (0)
automount(pid9733) on /mnt/cdrom type autofs
(rw,fd=5,pgrp=9733,minproto=2,maxproto=4)
[root@rhpsfan2 log]#
In /var/log/messages at the time of starting autofs:
Sep 11 13:52:28 rhpsfan2 automount[9733]: starting automounter version 4.0.0,
path = /mnt/cdrom, maptype = file, mapname = /etc/auto.cdrom
Sep 11 13:52:29 rhpsfan2 autofs: autofs startup succeeded
Sep 11 13:52:29 rhpsfan2 automount[9733]: using kernel protocol version 3
Sep 11 13:52:29 rhpsfan2 automount[9733]: using timeout 300 seconds; freq 75
secs
> After you tried to cd into your cdrom what does mount say?
[root@rhpsfan2 log]# ls -la /mnt
total 3
drwxr-xr-x 7 root adm 168 Sep 10 01:01 ./
drwxr-xr-x 17 root root 408 Sep 9 20:23 ../
drwxr-xr-x 1 root root 512 Dec 31 1969 c/
drwxr-xr-x 2 root root 0 Sep 11 13:52 cdrom/
drwxr-xr-x 1 root root 512 Dec 31 1969 d/
drwxrwxr-x 2 root root 48 Feb 6 1996 floppy/
[root@rhpsfan2 log]# cd /mnt/cdrom
[root@rhpsfan2 cdrom]# ls -la
total 0
drwxr-xr-x 2 root root 0 Sep 11 13:52 ./
drwxr-xr-x 7 root adm 168 Sep 10 01:01 ../
[root@rhpsfan2 cdrom]#
As you can see, nothing showing up there.....
[root@rhpsfan2 cdrom]# mount
/dev/hde6 on / type reiserfs (rw)
none on /proc type proc (rw)
/dev/hde5 on /boot type ext2 (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdf7 on /home type reiserfs (rw)
/dev/hde7 on /root type reiserfs (rw)
/dev/hdf6 on /tmp type reiserfs (rw)
/dev/hde8 on /usr type reiserfs (rw)
/dev/hde9 on /var type reiserfs (rw)
//rhpsfan1/c on /mnt/c type smbfs (0)
//rhpsfan1/d on /mnt/d type smbfs (0)
automount(pid9733) on /mnt/cdrom type autofs
(rw,fd=5,pgrp=9733,minproto=2,maxproto=4)
[root@rhpsfan2 cdrom]#
Mount information hasn't changed....
> Are there any error messages in /var/log/messages?
Nothing. Only message in that log was when I started autofs, as shown above.
I was running a tail on it at the time, and there were no other messages
appearing in the file.
Again, if I manually issue a mount command, I can access the disk just fine.
Thoughts/ideas?
--Dave
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com