Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 1996 13:35:46 -0600 (CST)
From:      James Hu <jxh@cs.wustl.edu>
To:        questions@freebsd.org
Subject:   amd and CDROM
Message-ID:  <199611121935.NAA00534@plethora.cs.wustl.edu>

next in thread | raw e-mail | index | archive | help
Hello!

I am trying to get my CDROM drive to auto-mount and auto-unmount via
amd.  What I would like is to be able to ``cd /cdrom'', and have it
automatically mounted for me.  Then when I cd out of it via ``cd /''
the CDROM automatically unmounts, so that I can press eject.

However, my attempts have produced utter failures.  Clearly, I do not
understand the format of the amd map file and the amd command line
options, or how they interact.

What I have tried is to create an entry in fstab for the CDROM:
/dev/cd0a       /cdrom  cd9660  noauto,ro       0 0

Then, I wanted to create an entry an amd.map entry which corresponds to
/cdrom.  I tried something like:
cdrom           type:=program;mount:="/sbin/mount mount /cdrom";unmount:="/sbin/umount umount /cdrom"

and attempted with calls to amd which looked like:
amd / amd.cdrom.map

but this seems to lock up the machine.  Has anyone tried something
similar and with better results than what I have been able to produce?

Thanks,

-- James



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611121935.NAA00534>