LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-25-2005, 10:02 PM   #1
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Rep: Reputation: 30
CDRom Won't eject!


I keep getting this error when I try to eject or unmount:

umount: /cdrom: device is busy
umount: /cdrom: device is busy
eject: unmount of `/dev/hdc' failed
 
Old 10-25-2005, 10:10 PM   #2
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
cd / first
or try umount -l
 
Old 10-25-2005, 10:11 PM   #3
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
cd / didn't work

umount -l gives me these...

Usage: umount [-hV]
umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
umount [-f] [-r] [-n] [-v] special | node...
 
Old 10-25-2005, 11:01 PM   #4
bb002
Member
 
Registered: Aug 2005
Posts: 80

Rep: Reputation: 15
i think nilleso meant mount -l and not umount -l

but that will merely mount all of the mounted partitions.
 
Old 10-26-2005, 01:55 PM   #5
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
no I did mean umount -l which is...

-l Lazy unmount. Detach the filesystem from the filesystem hierar-
chy now, and cleanup all references to the filesystem as soon as
it is not busy anymore. (Requires kernel 2.4.11 or later.)
Code:
(u)mount version-2.12r
works great for problematic USB mass-storage. Not sure about this one though
 
Old 10-30-2005, 03:11 PM   #6
Spankin Partier
LQ Newbie
 
Registered: Oct 2005
Distribution: Gentoo, Debian, Ubuntu. Knoppix
Posts: 2

Rep: Reputation: 0
I've been experiancing simular problems but I know what's causing it. I've still got a program accessing the CDROM for some reason. SentralOrigin, to find out which application is interfering with the ejection, type this command:

fuser -v /dev/cdrom

When I do it, this is what I get:

Code:
l# fuser -v /dev/cdrom

                     USER        PID ACCESS COMMAND
/dev/cdrom           mikevl     5852 f....  kdeinit
Which means that kdeinit is interfering with the CDROM. Now I don't know how to properly fix this. So in the mean time, I've been killing the offending application just prior to ejecting:

kill 5852

The number will change each time, hence you have to use the fuser command to determine the proper ProccessID (PID) before using the kill command.

But this is not a pretty way of doing things. Is there a fix to this?

PS: This is only on my Debian box.

Last edited by Spankin Partier; 10-30-2005 at 03:12 PM.
 
Old 03-24-2006, 12:13 AM   #7
carspidey
Member
 
Registered: Nov 2005
Location: US
Distribution: Debian
Posts: 32

Rep: Reputation: 15
the same problem i had and now i type umount -l and it does unmount it, however, i can not get my cdrom ejected...any suggestions?????
 
Old 03-24-2006, 12:42 AM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Here's the thing:

mount /dev/hdd /media/drive
cd /media/drive
now you are in the filesystem you mounted. That means the file system is busy. If you:
cd /
then you will be in the root, and out of the mounted file system in /media. So, do that, and then issue umount /dev/hdd.
And use the same terminal window. You can't do:
cd /
in a different terminal window. It has to be the same one you cd'ed into the file system with. Ok, now after you get OUT of the file system you want to umount:
umount /dev/hdd
and it won't be busy anymore. Even if you have a file manager, like Konquerer, showing that file system, it will not umount.

I just had this problem today. I had so many terminals open I forgot what was going on. I wanted to umount a loopback device and one of my terminals was still in it. I was sure I was out of it, but low and behold, I looked at every terminal window and I was still inside it.
 
Old 03-30-2006, 11:35 PM   #9
carspidey
Member
 
Registered: Nov 2005
Location: US
Distribution: Debian
Posts: 32

Rep: Reputation: 15
but the problem i am having is not unmounting... is ejecting....????
Any suggestions with this????
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't eject cdrom seagreen Linux - Newbie 4 12-09-2004 02:34 PM
Can't Eject my CDROM!!! Setheck Linux - Hardware 5 09-02-2004 01:05 PM
Can't eject cdrom aeruzcar Linux - Hardware 5 08-16-2003 08:25 PM
Eject Cdrom themuppeteer Linux - General 5 11-12-2001 08:25 AM
cdrom eject FNC Linux - General 2 05-31-2001 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration