[ccoss] Re: unmount cdrom, device is busy, what is using it,using fuser as a solution

Cool. I think these tips are great! I wonder if we should create a 
monthy (or even weekly) tip on www.ccoss.org? ?Half the battle of using 
a computer effectively is knowing what can be done let alone what can do 
what you need!

Cheers

dave wrote:

>you can also do this with the lsof (list open files) command:
>
>
>
>Christopher Paulin wrote:
>  
>
>>Have you ever tried to unmount the CD-ROM, and it says the device is 
>>busy. This is a solution to find out what process is using the CD-ROM.
>>
>>chris@p450:~> cat /etc/fstab
>>.....................
>>/dev/cdrecorder      /media/cdrecorder    auto       
>>ro,noauto,user,exec   0 0
>>.....................
>>chris@p450:~> ls -l /dev/cdrecorder
>>lrwxrwxrwx    1 root     root            3 2003-10-13 21:35 
>>/dev/cdrecorder -> sr0
>>chris@p450:~> fuser -m /dev/sr0
>>/dev/sr0:             1247
>>chris@p450:~> fuser -m /dev/cdrecorder
>>/dev/cdrecorder:      1247
>>    
>>


_______________________________________________
CCOSS mailing list
ccoss@xxxxxxxxxxxxx
CCOSS mailing list page: http://www.freelists.org/cgi-bin/list?list_id=3594
CCOSS Web page: http://www.ccoss.org

Other related posts: