LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-17-2004, 02:37 PM   #1
tessx
Member
 
Registered: Feb 2004
Location: strasbourg
Distribution: RH 9.2
Posts: 43

Rep: Reputation: 15
Force unmount of cdrom


Hi, very often, I exit all windows using the cd drive, and then try to unmount, but it gives me the error message "device is busy".
The problem here is that when my cd drive has read errors, there is some program running the cd drive, but I don't know witch... and so I can't unmount... There MUST be a way of forcing unmount no ? I tried in konsole beeing root using the -f (force) argument, but didnt help, it tells me device is busy... the only way, except using a pin and pushing the tray out manually is killing X and then typing umount...
So could you tell me how can I really force an unmount, or a way of checking wich app uses a specific device ??

thx

ps: i'm on kde 3.2
 
Old 03-17-2004, 02:44 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Try using lsof and find out which process is using it.
If it turns out to be KDE itself you'll have to the kill X
version ...



Cheers,
Tink
 
Old 03-17-2004, 02:51 PM   #3
tessx
Member
 
Registered: Feb 2004
Location: strasbourg
Distribution: RH 9.2
Posts: 43

Original Poster
Rep: Reputation: 15
gee, does this happen often to you ??

Dunno, but if I have to kill X for ejecting a cd drive, something must be wrong no?

I can't beleive that I have to kill X, it's... weird
 
Old 03-17-2004, 03:45 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
gee, does this happen often to you ??
Huh?

Quote:
Dunno, but if I have to kill X for ejecting a cd drive, something must be wrong no?

I can't beleive that I have to kill X, it's... weird
Agreed ... but I don't use bloated DE's and never
have to do this ;)


Cheers,
Tink
 
Old 08-29-2004, 12:30 AM   #5
ssokolow
LQ Newbie
 
Registered: Aug 2004
Location: Canada
Posts: 24

Rep: Reputation: 16
I got this problem and it turned out to be a bad kdeinit instance.

I managed to solve it without restarting KDE by following these steps:
Required: lsof

Step 1:
Code:
lsof | grep /mnt/cdrom
Step 2:
Close anything I can that is accessing it such as the instance of Konsole I just used.

Step 3:
Code:
kill <PID instance of offending kdeinit process>
The PID you want is the second column beside the kdeinit instance that lsof gave you.

On my system, there were several kdeinit instances and killing just the offending one didn't cause any problems. Then manually unmount the CD and everything is back to normal. I'm on a relatively unmodified Mandrake 10.0 install.
 
Old 08-29-2004, 01:02 AM   #6
Travers
Member
 
Registered: Jul 2004
Location: Des Moines
Distribution: Gentoo
Posts: 111

Rep: Reputation: 15
*rolles eyes* Use umount -l (l, as in lazy) /dev/whatever. When the device becomes unbusy, it will automatically unmount. This usually does the trick. Even if some process is accessing the drive, it has to take a break once and awhile. =)
 
Old 08-19-2005, 03:45 AM   #7
sygin
Member
 
Registered: May 2004
Posts: 36

Rep: Reputation: 15
solve the "Device is busy" error

How to solve the "Device is busy" error when trying to unmount devices in KDE

If you've been getting a "device is busy" error when trying to unmount removable media devices within KDE, then the instructions below may solve the problem for you.

1. From within a Konqueror window choose "Configure Konqueror" from the "Settings" menu.
2. Click the "Performace" icon at the bottom of the left-hand list
3. Set the "Maximum number of instances kept preloaded" to 0
4. Click the "OK" button

Copied from:
http://ithacafreesoftware.org/Member...e_unmount/view
 
  


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
how can i force unmount a busy CD drive mailavj Linux - Software 1 04-04-2005 06:21 PM
cdrom will not unmount. bbmx952 Linux - Newbie 7 07-21-2004 04:35 PM
cant unmount /dev/cdrom mrweirdo Fedora 3 02-26-2004 11:52 AM
I can't unmount my cdrom... ramsees Linux - Hardware 2 12-07-2003 12:42 AM
cdrom won't unmount! yocompia Slackware 3 11-07-2003 03:11 PM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration