LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Force unmount of cdrom (https://www.linuxquestions.org/questions/linux-newbie-8/force-unmount-of-cdrom-159063/)

tessx 03-17-2004 02:37 PM

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

Tinkster 03-17-2004 02:44 PM

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

tessx 03-17-2004 02:51 PM

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 :(

Tinkster 03-17-2004 03:45 PM

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

ssokolow 08-29-2004 12:30 AM

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.

Travers 08-29-2004 01:02 AM

*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. =)

sygin 08-19-2005 03:45 AM

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


All times are GMT -5. The time now is 07:27 AM.