From owner-freebsd-questions Wed May 13 04:02:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA04903 for freebsd-questions-outgoing; Wed, 13 May 1998 04:02:39 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from hotpoint.dcs.qmw.ac.uk (hotpoint.dcs.qmw.ac.uk [138.37.88.162]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA04743 for ; Wed, 13 May 1998 04:02:03 -0700 (PDT) (envelope-from scott@dcs.qmw.ac.uk) Received: from brunos-sun.dcs.qmw.ac.uk [138.37.88.185]; by hotpoint.dcs.qmw.ac.uk (8.8.7/8.8.5/S-4.0) with SMTP; id MAA03913; Wed, 13 May 1998 12:01:55 +0100 (BST) Date: Wed, 13 May 1998 12:01:55 +0100 (BST) Message-Id: <199805131101.MAA03913@hotpoint.dcs.qmw.ac.uk> Received: locally by brunos-sun (SMI-8.6/QMW-client-3.2b); poster "scott"; id LAA05846; Wed, 13 May 1998 11:57:31 +0100 From: Scott Mitchell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Rick Siple CC: freebsd-questions@FreeBSD.ORG Subject: Re: Automount the CDROM? In-Reply-To: <74162615@toto.iv> X-Mailer: VM 6.22 under 19.15 XEmacs Lucid Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 | 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