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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-25-2005, 10:02 PM
|
#1
|
Member
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318
Rep:
|
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
|
|
|
10-25-2005, 10:10 PM
|
#2
|
Member
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372
Rep:
|
cd / first
or try umount -l
|
|
|
10-25-2005, 10:11 PM
|
#3
|
Member
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318
Original Poster
Rep:
|
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...
|
|
|
10-25-2005, 11:01 PM
|
#4
|
Member
Registered: Aug 2005
Posts: 80
Rep:
|
i think nilleso meant mount -l and not umount -l
but that will merely mount all of the mounted partitions.
|
|
|
10-26-2005, 01:55 PM
|
#5
|
Member
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372
Rep:
|
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
|
|
|
10-30-2005, 03:11 PM
|
#6
|
LQ Newbie
Registered: Oct 2005
Distribution: Gentoo, Debian, Ubuntu. Knoppix
Posts: 2
Rep:
|
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.
|
|
|
03-24-2006, 12:13 AM
|
#7
|
Member
Registered: Nov 2005
Location: US
Distribution: Debian
Posts: 32
Rep:
|
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?????
|
|
|
03-24-2006, 12:42 AM
|
#8
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
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.
|
|
|
03-30-2006, 11:35 PM
|
#9
|
Member
Registered: Nov 2005
Location: US
Distribution: Debian
Posts: 32
Rep:
|
but the problem i am having is not unmounting... is ejecting....????
Any suggestions with this????
|
|
|
All times are GMT -5. The time now is 04:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|