[Ilugc] umount loop device

  • From: bharathi@xxxxxxxxxx (bharathi)
  • Date: Wed Dec 8 15:33:01 2004

Hi Venkat ,
                      Try this command  to find the process which is 
using that device. mostly it will work.

$lsof | grep /home/user1/mnt/

Thanks and Regards,
Bharathi Raja.




Venkatraman Dhamodaran wrote:

hi all,
i have mounted initrd image in directory using loop device

$mount -t ext2 -o loop initrd-2.6.0.img.gz /home/user1/mnt/

when i am trying to unmount, i am getting the following error

$umount /home/user1/mnt/
umount: /home/user1/mnt: device is busy

I am getting this output.
I have checked the things like...
      * no files from the mounted fs has been opened
      * no terminal is in the subdir of the mounted fs

How can i find which process is using the device?

Thanks in advance.

Regards,
Venkatraman.D

_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

 


-- 
S.Bharathi Raja,
AU-KBC Research Centre,
M.I.T. Campus of Anna University,
Chromepet,
Chennai 600 044. INDIA
Phone: 91 44 22234885, 22232711 Ext:34
Fax: 22231034

Mail: bharathi@xxxxxxxxxx
      bharthix@xxxxxxxxx
Web : www.bharthix.tk

Other related posts: