When i try to un mount a disk, i get error
[email protected]:~# umount /backup umount: /backup: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) [email protected]:~#
I need to find which program is using the drive, stop it before i can un mount the drive.
To do this, run
fuser -vm /path/to/folder_or_drive
In this case, i have swap file running form /backup drive. I put swap on backup so i can share IO load with a hard disk that normally have 0 use other than when i run backup. You can disable the swap with command
[email protected]:~# swapoff /backup/swapfile [email protected]:~#
Some other useful commands are
lsof | grep /home
or
lsof +f -- /home
Will list all open application and files in /home directory. Change home with whatever path you need to find.