Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Oct 2004 13:32:08 -0500
From:      Eric Crist <ecrist@secure-computing.net>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Unable to umount Cdrom drive.
Message-ID:  <30A6E9EC-1D46-11D9-8BCD-000D9333E43C@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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30A6E9EC-1D46-11D9-8BCD-000D9333E43C>