From owner-freebsd-questions@FreeBSD.ORG Wed Oct 13 18:33:17 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D649616A4D4 for ; Wed, 13 Oct 2004 18:33:17 +0000 (GMT) Received: from grog.secure-computing.net (grog.secure-computing.net [63.228.14.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49FDC43D67 for ; Wed, 13 Oct 2004 18:33:17 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from [172.30.100.1] ([12.106.19.228]) (authenticated bits=0)i9DIXHTd005112; Wed, 13 Oct 2004 13:33:17 -0500 (CDT) (envelope-from ecrist@secure-computing.net) In-Reply-To: <20041013182926.GA43208@happy-idiot-talk.infracaninophile.co.uk> References: <1097691732.126E39B5@j29.dngr.org> <20041013182926.GA43208@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-2--873955692" Message-Id: <30A6E9EC-1D46-11D9-8BCD-000D9333E43C@secure-computing.net> Content-Transfer-Encoding: 7bit From: Eric Crist Date: Wed, 13 Oct 2004 13:32:08 -0500 To: Matthew Seaman X-Pgp-Agent: GPGMail 1.0.2 X-Mailer: Apple Mail (2.619) X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on grog.secure-computing.net X-Virus-Status: Clean cc: Laszlo Antal cc: freebsd-questions@freebsd.org Subject: Re: Unable to umount Cdrom drive. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 18:33:18 -0000 --Apple-Mail-2--873955692 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Oct 13, 2004, at 1:29 PM, Matthew Seaman wrote: > On Wed, Oct 13, 2004 at 11:22:12AM -0700, Laszlo Antal wrote: > >> When I mount the cdrom with #mount -t cd9660 /dev/acd0c /cdrom > > Verb. Sap. Make that: > > # mount -t cd9660 -o ro /dev/acd0c /cdrom > > For best results, set up all of the options etc. in /etc/fstab, and > then just use: > > # mount /cdrom > >> everything works fine.I can get to my ports and everything >> But when I want to swap cds and I type #umount /cdrom >> I get this error message:: Unable to umount /cdrom, Device is busy. >> If I do the umont from KDE I get the same error message. >> What I'm doing wrong?? > > You've either got a process with it's current working directory > somewhere under /cdrom, or you've got a process with an open file > descriptor (or a memory map) on one of the files on the CD. > > Try using: > > # fstat -f /cdrom > > to see if you can identify the culprits. Then either close them down, > or CD to elsewhere in the filesystem if it's an interactive session. > Once the CD Rom is idle, you should be able to dismount it easily. To elaborate on what Matthew was saying, if you cd /cdrom once it's mounted, and you try to unmount, you're going to get an error. I always make certain to cd back home and the unmount the CD. You can't unmount a device that you're currently 'on.' HTH ----- Eric F Crist Secure Computing Networks --Apple-Mail-2--873955692 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iEYEARECAAYFAkFtdKgACgkQRAAY9knOW+rfFQCdFA+bbhBydp4VyAgmt7oti87b lpMAn3plK4nHhhVmVH6ghmAEeK1YdQGH =+Dtj -----END PGP SIGNATURE----- --Apple-Mail-2--873955692--