From owner-freebsd-questions Sun Feb 25 13:38:03 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA21879 for questions-outgoing; Sun, 25 Feb 1996 13:38:03 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA21867 for ; Sun, 25 Feb 1996 13:37:59 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA00193; Sun, 25 Feb 1996 14:29:55 -0700 From: Terry Lambert Message-Id: <199602252129.OAA00193@phaeton.artisoft.com> Subject: Re: cd9660 To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Sun, 25 Feb 1996 14:29:54 -0700 (MST) Cc: World1996@aol.com, questions@FreeBSD.org In-Reply-To: <199602251322.XAA29983@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Feb 25, 96 11:52:14 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org Precedence: bulk > > I have mounted my CD drive. It works very good except a few problems. One > > of which is bothering me. After I do the 'mount -t cd9660 /dev/mcd0 /cdrom' > > and it works, I can not swich the CDs unless I unmount it. I do not like > > unmounting and remounting every time I want to swich the CD. Why can I not > > swich the CD while mounted? How can I make it so I don't need to unmount it? > > Basically, you can't. Unix doesn't like having filesystems taken away from > it without being told first; you'll notice that you can't easily unmount > the cdrom if any applications' working directory is on the disk either. > > I'd be inclined to write a small alias that unmounted and ejected the disk; > this would put the two tasks together and remove your severe agitation. I'd be inclined to define "media departure" (and "media arrival") events and deliver them to a resource manager when the CDROM realizes it has been ejected so that they can be processed as "unmount old/mount new". 8-). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.