Thinking of some good topic to blog from many days, finally got one.
Many might have definitely faced this issue.You might have mounted cdrom/usb on linux box and after the work is done , when you try to umount it , you might see the linux box throwing the message /mnt/ is busy.
If you remove directly without doing unmounting , there will be a risk of getting bad sectors on the device.Another solution to halt(shutdown) the machine.(very odd option).Very few might be knowing of the linux command "fuser" which makes the life easy while unmounting.
If you encouter "/mnt/ busy " message while unmounting , just run the following command
$fuser /mnt/usb
>>which will show the pid of the process that is causing the unmount to fail.
Now just run
$fuser -k /mnt/usb ,
>>It will kill the process that is blocking the unmounting of the device.
Now do
$umount /dev/usb
Will be success now for sure
"fuser , my disk saver"
Many might have definitely faced this issue.You might have mounted cdrom/usb on linux box and after the work is done , when you try to umount it , you might see the linux box throwing the message /mnt/
If you remove directly without doing unmounting , there will be a risk of getting bad sectors on the device.Another solution to halt(shutdown) the machine.(very odd option).Very few might be knowing of the linux command "fuser" which makes the life easy while unmounting.
If you encouter "/mnt/
$fuser /mnt/usb
>>which will show the pid of the process that is causing the unmount to fail.
Now just run
$fuser -k /mnt/usb ,
>>It will kill the process that is blocking the unmounting of the device.
Now do
$umount /dev/usb
Will be success now for sure
"fuser , my disk saver"
3 comments:
That's a cool note!
I did not know that, I used to leave the disk till I shut down the computer if I get a /mnt/usb busy!!
Awesome dude. Keep the tips coming!! :)
Thanks man.... since when have u been blogging
Post a Comment