Sometimes, I would like to umount a usb device, but I get a drive is busy error.
How do I find out which processes or programs are accessing the device?
|
Sometimes, I would like to umount a usb device, but I get a How do I find out which processes or programs are accessing the device? |
||||
|
|
|
Use Also, consider |
|||||
|
|
Most of the time, the best command to use is lsof (“list open files”).
where There are uses that lsof will not find; these are uncommon on removable media. They include:
Another command that can serve in a pinch is fuser, which only lists PIDs of processes with open files on the device:
|
|||
|
|
|
You can use
|
|||
|
|
|
If you use GNOME, unmounting via Nautilus will display a message stating which process is still using the drive, and the file it's using.
|
|||
|
|