From owner-freebsd-questions Tue Nov 12 19:38:10 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA22137 for questions-outgoing; Tue, 12 Nov 1996 19:38:10 -0800 (PST) Received: from nwnexus.wa.com (nwnexus.wa.com [192.135.191.1]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id TAA22131 for ; Tue, 12 Nov 1996 19:38:07 -0800 (PST) Received: from main.statsci.com by nwnexus.wa.com with SMTP id AA29341 (5.65c/IDA-1.4.4 for ); Tue, 12 Nov 1996 19:37:57 -0800 Received: from statsci.com [206.63.206.4] with smtp by main.statsci.com with smtp (/\oo/\ Smail3.1.29.1 #29.3 #3) id m0vNRUb-0003xJC; Tue, 12 Nov 96 14:39 PST Message-Id: X-Mailer: exmh version 1.6.9 8/22/96 To: James Hu Cc: questions@freebsd.org Subject: Re: amd and CDROM References: <199611121935.NAA00534@plethora.cs.wustl.edu> In-Reply-To: Your message of "Tue, 12 Nov 1996 13:35:46 -0600." <199611121935.NAA00534@plethora.cs.wustl.edu> Reply-To: scott@statsci.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 12 Nov 1996 14:39:41 -0800 From: Scott Blachowicz Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk James Hu wrote: > 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 I think that effectively tries to overmount your root partition with the amd map you constructed. I think you want to either look around the amd docs for "direct" mount references or do something like this [untried] bit... mkdir /amd_devices amd /amd_devices amd.cdrom.map rmdir /cdrom ln -s /amd_devices/cdrom / So, amd would mount /amd_devices/cdrom when referenced and cd'ing to /cdrom would follow the symbolic link into /amd_devices/cdrom, thus causing it to be mounted. Maybe...I think... Scott Blachowicz Ph: 206/283-8802x240 Mathsoft (Data Analysis Products Div) 1700 Westlake Ave N #500 scott@statsci.com Seattle, WA USA 98109 Scott.Blachowicz@seaslug.org