Andreas J. Guelzow grabbed a keyboard and wrote:
> 
> David Guntner wrote:
> > 
> > My /etc/auto.master file has this in it:
> > 
> > /mnt/cdrom  /etc/auto.cdrom
> > 
> > and my /etc/auto.cdrom file has this:
> > 
> > cdrom       -fstype=iso9660,ro      :/dev/cdrom
> > 
> > I've even tried using:
> > cd  -fstype=iso9660,ro      :/dev/hdc
> > 
> > to exactly match what's in the example in the man page(s).  I started it
> > up, and got no error messages, but trying to access /mnt/cdrom just give me
> > empty directory listing (for the directory where the mount is *supposed* to
> > go), but not what's on the CD.  Any pointers?
> 
> If autofs is running correctly on your machine then /mnt/cdrom will be 
> empty (until you have caused a mount).

It *says* it's running.  When I do a "/etc/init.d/autofs status" command, 
it gives a response of:

/usr/sbin/automount /mnt/cdrom file /etc/auto.cdrom

for both the configured and active mount points.  However, doing a 
"ls -la /mnt/cdrom" only returns an empty directory listing.

> Your /etc/auto.master says to 
> mount stuff _inside_ /mnt/cdrom according to /etc/auto.cdrom.
> The /etc/auto.cdrom file:
> 
> cdrom         -fstype=iso9660,ro      :/dev/cdrom
> 
> would therefore cause /dev/cdrom to be mounted at /mnt/cdrom/cdrom when you
> access that directory. You should therefore try to
> cd /mnt/cdrom/cdrom; ls

I tried that, and got "no such directory."  Following the information you 
proviede above I then tried shortening up the entry in /etc/auto.master to 
just say:

/mnt    /etc/auto.cdrom

in the hopes that it would mount /dev/cdrom at /mnt/cdrom.  It mounted 
*something* at /mnt, but I'm still getting an empty directory listing, *at* 
/mnt.  I.E., after executing the command, doing a "ls -la /mnt" gave me an 
empty directory listing - none of the other directories in place to take my 
other mount points showed up anymore.  Oops.  Changed that back and 
restarted autofs. :-)  From that behavior, it looks like it *is* trying to 
mount something at the mountpoint specified, but it's not actually 
accessing my CD-ROM.  If I do a manual mount command, I can access the 
CD-ROM just fine, BTW.

Any other ideas for how to attack this?  Or should I just go back to 
wishing that they'd get supermount working properly again? :-)

                    --Dave

-- 
      David Guntner      GEnie: Just say NO!
 http://www.akaMail.com/pgpkey/davidg or key server
                 for PGP Public key

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to