LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unmount problem (https://www.linuxquestions.org/questions/linux-newbie-8/unmount-problem-398642/)

Lotharster 01-02-2006 10:39 AM

unmount problem
 
When I try to unmount my cdrom, i get the "device is busy" signal. But neither fuser nor lsof shows any programs accessing the cdrom. Why can't I unmount it?

Code:

wunderkiste:/home/lo# umount /cdrom
umount: /media/cdrom0: device is busy
umount: /media/cdrom0: device is busy
wunderkiste:/home/lo# fuser /media/cdrom0
/media/cdrom0:
wunderkiste:/home/lo# lsof |grep cdrom
wunderkiste:/home/lo#

PS: I'm usong Debian Sarge

bigrigdriver 01-02-2006 11:35 AM

If you were using some application to play audio cds, or a file manager to view files on a data cd, then the cdrom is seen as still busy. Close the apps in question, then try to umount.

Lotharster 01-02-2006 11:41 AM

@bigrigdriver: But should'nt lsof show something in that case?

timmeke 01-03-2006 07:43 AM

Also "cd" out of /cdrom or any of it's subdirs. This too may be blocking the device.
Try using "lsof +D /cdrom" instead of lsof+grep.
But you're right, lsof should mention something.


All times are GMT -5. The time now is 12:18 PM.