Date: Wed, 13 May 1998 12:01:55 +0100 (BST) From: Scott Mitchell <scott@dcs.qmw.ac.uk> To: Rick Siple <RickSiple@mpainc.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Automount the CDROM? Message-ID: <199805131101.MAA03913@hotpoint.dcs.qmw.ac.uk> In-Reply-To: <74162615@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Rick Siple said: >Can FreeBSD's automounter daemon be used to automatically mount the >CDROM? The manual pages only mention NFS mounts, and the SysAdmin book >I have is very SysV-ish and does not seem to directly translate to BSD. Indeed you can. You need to set up what amd calls a 'program mount' in your map file; essentially this just runs the usual CD mount command when you access anything under /a/cdrom (or wherever your automount tree is). You should probably read the amd manual in /usr/share/info/amdref.info.gz to have a clue what I am talking about :) The mountpoints are kind of weird for these program mounts. I have /cdrom symlinked to /a/cdrom to trigger the automounter, but the CD actually gets mounted on /mnt/cdrom. This means that you need to use 'amq -u /mnt/cdrom' to unmount the disk before it times out. Let me know if you want me to mail you my map file; unfortunately it's at home right now and I am not. Scott -- =========================================================================== Scott Mitchell | PGP Key ID |"If I can't have my coffee, I'm just <scott@dcs.qmw.ac.uk> | 0x54B171B9 | like a dried up piece of roast goat" QMW College, London, UK | 0xAA775B8B | -- J. S. Bach. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805131101.MAA03913>