unmounting busy device
This supposed to sound easy. But I am having problem getting out of this quagmire. I was able to mount a handy drive at sda1 to /dev/hd and successfully read its content. I had not open any of its files.
I wanted to unplug it out of its usb port, but I was having problem unmounting it. I tried #umount /mnt/hd as well as #umount /dev/sda1 but keep getting device is busy reply I even tried to umount -f but to no avail. I have checked and has not found any open file or man umount did mentioned busy devices but there was no valuable tips which I can apply here. Only that if I remove it without unplugging I might corrupt its file system. Please note that my usb handy drive is in FAT16 (VFAT) Thanks |
How about:
# cd # umount /dev/sda1 |
Just do a "mount" and see what it's actually mounted as? :}
Cheers, Tink .... |
If this is a USB device you should install 'hotplug' to handle the modules, you might be getting the error because of a kernel module, to check try the rmmod command on the module used by the device and then the umount command.
|
Maybe you could check file usage using "fuser".
If opened by a process it'll return the pid. |
All times are GMT -5. The time now is 03:57 AM. |