[Howto] [Linux] [Tips and Tricks] [Ubuntu]
Linux tip: How to unmount busy drive
Don't want to miss a single bit? Subscribe to our RSS Feed!
You are probably all experienced with the situation - you are trying to unmount a drive, but keep getting told by your system that it's busy. If you like to find which application hold the drive busy there is one simple solution. A quick one-line in terminal mode will tell you (in this example device name is "windows"):lsof +D /mnt/windows
This will return the command and process ID of any tasks currently accessing the /mnt/windows directory. You can then locate them, or use the kill command to finish them off.
Did you enjoy this post? Why not leave a comment below and continue the conversation, or Subscribe to Feed and get articles like this delivered automatically to your Email or feed reader.
1 comments:
How about this similar entry from:
http://tutorialninjas.net/2007/08/25/unmounting-a-busy-device
* lsof (device) ex: lsof /dev/cdrom
* kill -9 (pid)
If you are confused you can run this: lsof -t ‘device here’ | xargs kill -9 . Just make sure you put the device in. After that command you should be able to unmount the drive.
Post a Comment