I have a recurring problem with my pioneer dvd reader: when I use it , it is sometimes impossible to remove the CD or DVD. Eject says : umount: /media/cdrom: device is busy eject: unmount of `/dev/sr0' failed even as root. My only option is to reboot, which is not really satisfying .... What can I do? here's my fstab /dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/dvd /media/dvd auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 /dev/sr0 /media/cdrom auto ro,noauto,user,exec 0 0 /dev/sr1 /media/cdrecorder auto ro,noauto,user,exec 0 0 SuSE 8.1, pioneer DVD, Acer cdrw. Thanks FX -- ______________________ Courtesy of SuSE Linux nibz.org
On Friday 14 February 2003 20:07, FX Fraipont wrote:
I have a recurring problem with my pioneer dvd reader: when I use it , it is sometimes impossible to remove the CD or DVD.
Eject says : umount: /media/cdrom: device is busy eject: unmount of `/dev/sr0' failed even as root.
My only option is to reboot, which is not really satisfying ....
What can I do?
Next time it happens, use lsof (see man lsof to find out how) to see if there are any processes holding open files on the drive. try lsof /media to tell you all the open files under that directory... Dylan
here's my fstab
/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/dvd /media/dvd auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 /dev/sr0 /media/cdrom auto ro,noauto,user,exec 0 0 /dev/sr1 /media/cdrecorder auto ro,noauto,user,exec 0 0
SuSE 8.1, pioneer DVD, Acer cdrw.
Thanks
FX
-- ______________________ Courtesy of SuSE Linux nibz.org
-- "Sweet moderation Heart of this nation Desert us not We are between the wars" Billy Bragg
The 03.02.14 at 20:15, Dylan wrote:
Next time it happens, use lsof (see man lsof to find out how) to see if there are any processes holding open files on the drive.
try lsof /media to tell you all the open files under that directory...
That doesn't work; look: cer@nimrodel:~> lsof /dvd cer@nimrodel:~> lsof /media/ cer@nimrodel:~> lsof /media/dvd cer@nimrodel:~> lsof |grep dvd cer@nimrodel:~> umount /dvd umount: /media/dvd: device is busy I simply have an xterm where mc is displaying the contens of the dvd, without really opening a file. Ie: a process or shell or whatever has /dvd/something as its current path (pwd). -- Cheers, Carlos Robinson
On Tuesday 25 February 2003 1:48 pm, Carlos E. R. wrote:
I simply have an xterm where mc is displaying the contens of the dvd, without really opening a file. Ie: a process or shell or whatever has /dvd/something as its current path (pwd).
Carlos, you just answered the question. In order for mc to see what is there the cd has to be mounted. As long as you keep looking at the contents with mc, you wont be able to unmount it. close mc and then you should be able to umount the cd. Richard
The 03.02.25 at 15:17, Richard wrote:
On Tuesday 25 February 2003 1:48 pm, Carlos E. R. wrote:
I simply have an xterm where mc is displaying the contens of the dvd, without really opening a file. Ie: a process or shell or whatever has /dvd/something as its current path (pwd).
Carlos, you just answered the question. In order for mc to see what is there the cd has to be mounted. As long as you keep looking at the contents with mc, you wont be able to unmount it. close mc and then you should be able to umount the cd.
Of course, I know that! My point is that lsof does _not_ show anything opened on the dvd. In order to know better who/what is using the device, you have to use "fuser" as root. -- Cheers, Carlos Robinson
On Friday 14 February 2003 13:07, FX Fraipont wrote:
I have a recurring problem with my pioneer dvd reader: when I use it , it is sometimes impossible to remove the CD or DVD.
Eject says : umount: /media/cdrom: device is busy eject: unmount of `/dev/sr0' failed even as root.
My only option is to reboot, which is not really satisfying ....
What can I do?
This is caused by a processess still running in a directory on the moutned CDROM or files on the CDROM open by some program(s). You need to kill/exit thoes programs before you can unmount. You can use the 'lsof' command to list which files are currently open. $ lsof | grep cdrom Will list all processes which have files open on the CDrom device. -- Marc Christensen http://www.mecworks.com/~marc/resume/ http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=9502
On Friday 14 February 2003 12:16 pm, Marc Christensen wrote:
On Friday 14 February 2003 13:07, FX Fraipont wrote:
I have a recurring problem with my pioneer dvd reader: when I use it , it is sometimes impossible to remove the CD or DVD.
Eject says : umount: /media/cdrom: device is busy [...] This is caused by a processess still running in a directory on the moutned CDROM or files on the CDROM open by some program(s).
Often this can be your very own shell [terminal window] If your "current directory" is anywhere on the CD, you cannot umount it. try doing a straight "cd" command [which should return you to your default/home directory] and if that doesn't work, keep typing "exit" until the terminal window closes, then try a new/fresh window [possible cause: using "su" when you were pointed to the CD -- your original "user" session is still attached to that directory...] Also, check to see if you have any "file manager" windows open and pointing to the contents of the CD... -- Yet another Blog: http://osnut.homelinux.net
On Friday 14 February 2003 12:16 pm, Marc Christensen wrote:
On Friday 14 February 2003 13:07, FX Fraipont wrote:
I have a recurring problem with my pioneer dvd reader: when I use it , it is sometimes impossible to remove the CD or DVD.
Eject says : umount: /media/cdrom: device is busy [...] This is caused by a processess still running in a directory on the moutned CDROM or files on the CDROM open by some program(s).
Often this can be your very own shell [terminal window] If your "current directory" is anywhere on the CD, you cannot umount it. try doing a straight "cd" command [which should return you to your default/home directory] and if that doesn't work, keep typing "exit" until the terminal window closes,
try a new/fresh window [possible cause: using "su" when you were pointed to the CD -- your original "user" session is still attached to that directory...]
Also, check to see if you have any "file manager" windows open and
try lsof | grep cdrom
Have a look at which process is using the device, and kill it.
Paul.
----- Original Message -----
From: "Tom Emerson"
the contents of the CD...
-- Yet another Blog: http://osnut.homelinux.net
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Marc Christensen wrote:
This is caused by a processess still running in a directory on the moutned CDROM or files on the CDROM open by some program(s).
You need to kill/exit thoes programs before you can unmount.
You can use the 'lsof' command to list which files are currently open.
$ lsof | grep cdrom
Will list all processes which have files open on the CDrom device.
That was quick and efficient, and did the trick perfectly. Thanks a lot to all that replied. I had been watching a Divx with mplayer; after closing mplayer, I wanted to eject the CD. I thought of checking the processes, but it's not obvious that a kdeinit is the cause of the problem. And then why doesn't the process die when mplayer is closed? This is a problem that has been bugging me since I installed 8.1, I never had anything like it with 7.3, with exactly the same hardware. This often happens with cdrecord / k3b, and with kscd. Surely it is not normal to have to look for errant processes and kill them after you have exited the application just to be able to open the drive? FX -- ______________________ Courtesy of SuSE Linux nibz.org
On Friday 14 February 2003 02:07 pm, FX Fraipont wrote:
I have a recurring problem with my pioneer dvd reader: when I use it , it is sometimes impossible to remove the CD or DVD.
Eject says : umount: /media/cdrom: device is busy eject: unmount of `/dev/sr0' failed even as root.
My only option is to reboot, which is not really satisfying ....
What can I do?
here's my fstab
/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/dvd /media/dvd auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 /dev/sr0 /media/cdrom auto ro,noauto,user,exec 0 0 /dev/sr1 /media/cdrecorder auto ro,noauto,user,exec 0 0
Try using the commands: eject sr0 If that doesn't work use the fuser command to discover what is keeping the drive busy. See the man pages for eject and fuser for full options. -- JAY VOLLMER JVOLLMER@VISI.COM TEXT REFS DOUBLEPLUSUNGOOD SELFTHINK VERGING CRIMETHINK IGNORE FULLWISE
The 03.02.14 at 15:35, Jay Vollmer wrote:
If that doesn't work use the fuser command to discover what is keeping the drive busy.
Yes, but do it as root, or it will not show everything: nimrodel:/dvd # fuser -v /dvd USER PID ACCESS COMMAND /dvd cer 5842 ..c.. bash root 5938 ..c.. mc root 5940 ..c.. bash root kernel mount /media/dvd cer@nimrodel:/dvd> fuser -v /media/dvd/ USER PID ACCESS COMMAND /media/dvd/ cer 5842 ..c.. bash root kernel mount /media/dvd The user does not see what root has, nor probably other users. -- Cheers, Carlos Robinson
On Friday 14 February 2003 03:07 pm, FX Fraipont wrote:
I have a recurring problem with my pioneer dvd reader: when I use it , it is sometimes impossible to remove the CD or DVD.
Eject says : umount: /media/cdrom: device is busy eject: unmount of `/dev/sr0' failed even as root.
My only option is to reboot, which is not really satisfying ....
What can I do?
Thanks
FX ======================== FX, I am going to ask the dumb question here! After you mount the disc to read it or otherwise play with the files there, are you "unmounting" before trying to eject it?
Any device, floppy, cdrom, dvd, etc has to be unmounted before trying to eject it. You of course can eject a floppy without unmounting, but will incur the wrath of the floppy gods if you do! :o) If you have not unmounted a cdrom, the drawer will not open until you do an unmount or reboot, whichever comes first! So in conclusion: Mount then unmount then eject Two ways of doing this unmount procedure: 1. right click on the cdrom/dvd icon and select unmount 2. open console and type "umount /media/cdrom" Patrick --- KMail v1.5 --- SuSE Linux Pro v8.1 --- Registered Linux User #225206 On any other day, that might seem strange...
Eject says : umount: /media/cdrom: device is busy eject: unmount of `/dev/sr0' failed even as root.
My only option is to reboot, which is not really satisfying ....
Make sure your not in the directory that your trying to unmount. 9/10 thats What gets me.
On Friday 14 February 2003 1:55 pm, PL O'Smith wrote:
I am going to ask the dumb question here! After you mount the disc to read it or otherwise play with the files there, are you "unmounting" before trying to eject it?
As it turns out, "eject" internally tries to do a "umount" for you, so for the most part you don't have to manually unmount the CD. Basically, the error he is getting is "umount"'s error that the CD is "still in use /somewhere/" -- Yet another Blog: http://osnut.homelinux.net
FX Fraipont wrote:
I have a recurring problem with my pioneer dvd reader: when I use it , it is sometimes impossible to remove the CD or DVD.
Eject says : umount: /media/cdrom: device is busy eject: unmount of `/dev/sr0' failed even as root.
I have the same thing occasionally with an LG DVD reader. Usually eject or umount works about 30 seconds after the last process to access the drive works. It looks like the way the DVD hardware works because there's usually some DVD activity even though there's no process actually using the CD/DVD. -- JDL
On Fri, Feb 14, 2003 at 09:07:24PM +0100, FX Fraipont beat on the keyboard:
I have a recurring problem with my pioneer dvd reader: when I use it , it is sometimes impossible to remove the CD or DVD.
Eject says : umount: /media/cdrom: device is busy eject: unmount of `/dev/sr0' failed even as root.
My only option is to reboot, which is not really satisfying ....
What can I do?
here's my fstab
/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/dvd /media/dvd auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 /dev/sr0 /media/cdrom auto ro,noauto,user,exec 0 0 /dev/sr1 /media/cdrecorder auto ro,noauto,user,exec 0 0
SuSE 8.1, pioneer DVD, Acer cdrw.
Thanks
You are probably in the dir at the time of unmounting it :P -- _ _ __ _____ _____ ___| |_ | '__| / __\ \ /\ / / _ \/ _ \ __| -o) | | _ \__ \\ V V / __/ __/ |_ /\\ |_|(_) |___/ \_/\_/ \___|\___|\__|_\_v rsweet@garagenetworks.net "there's no love in fear."
participants (12)
-
Carlos E. R.
-
Dylan
-
FX Fraipont
-
Jay Vollmer
-
John Lamb
-
Marc Christensen
-
Paul Miles
-
PL O'Smith
-
Richard
-
Robert Sweet
-
Rowan Reid
-
Tom Emerson