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 |
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 |
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 :( |
Quote:
Quote:
have to do this ;) Cheers, Tink |
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 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> 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. |
*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. =)
|
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. |