Re: Unable to umount Cdrom drive.

2004-10-13 Thread Randy Grafton
Mike Jeays wrote:
On Wed, 2004-10-13 at 14:22, Laszlo Antal wrote:
 

Hi,
I have FreeBSD 4.10 installed.
When I mount the cdrom with #mount -t cd9660 /dev/acd0c /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??
Thank you for all the help.
Laszlo
--lantal
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
   

I use a script "eject", as follows. It CDs back to my home directory,
and then ejects the CD. Lazy but effective.
#!/bin/sh
cd $HOME
umount /cdrom
cdcontrol -f /dev/acd0c eject

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
 

Most of the time this message pops up because either you are in the 
/cdrom (mounted) directory or a file form that directory is still in use.
The 'eject' script is a pretty good idea.

-Randy
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to umount Cdrom drive.

2004-10-13 Thread Mike Jeays
On Wed, 2004-10-13 at 14:22, Laszlo Antal wrote:
> Hi,
> 
> I have FreeBSD 4.10 installed.
> When I mount the cdrom with #mount -t cd9660 /dev/acd0c /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??
> 
> Thank you for all the help.
> 
> Laszlo
> 
> 
> --lantal
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

I use a script "eject", as follows. It CDs back to my home directory,
and then ejects the CD. Lazy but effective.


#!/bin/sh
cd $HOME
umount /cdrom
cdcontrol -f /dev/acd0c eject



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to umount Cdrom drive.

2004-10-13 Thread terry tyson
On Wed, 13 Oct 2004 11:22:12 -0700, Laszlo Antal <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have FreeBSD 4.10 installed.
> When I mount the cdrom with #mount -t cd9660 /dev/acd0c /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??
> 
> Thank you for all the help.
> 
> Laszlo
 
Try
# umount /dev/acd0c
HTH
-- 
Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to umount Cdrom drive.

2004-10-13 Thread W. D.
At 13:22 10/13/2004, Laszlo Antal wrote:
>Hi,
>
>I have FreeBSD 4.10 installed.
>When I mount the cdrom with #mount -t cd9660 /dev/acd0c /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??
>
>Thank you for all the help.
>
>Laszlo

This can happen if your present working directory is

/cdrom

Just switch directories:

cd /

Start Here to Find It Fast!™ -> http://www.US-Webmasters.com/best-start-page/
$8.77 Domain Names -> http://domains.us-webmasters.com/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to umount Cdrom drive.

2004-10-13 Thread Eric Crist
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


PGP.sig
Description: This is a digitally signed message part


Re: Unable to umount Cdrom drive.

2004-10-13 Thread Matthew Seaman
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.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpsvtzvV21BD.pgp
Description: PGP signature


Unable to umount Cdrom drive.

2004-10-13 Thread Laszlo Antal
Hi,
I have FreeBSD 4.10 installed.
When I mount the cdrom with #mount -t cd9660 /dev/acd0c /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??
Thank you for all the help.
Laszlo
--lantal
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"