Странице

Ознаке

четвртак, 27. јун 2013.

Find & Kill Linux processes

Recently i wanted to use umount command in order to unmount some drive. I stopped all apps working on that drive with kill -9 <PID>, all user processes pkill -u <user>, but no luck when i use command umount <mount_point> i get the following error..
umount2: Device or resource busy
So i found some smart people that gave me some interesting command:

This one lists processes that is holding he mount point...
fuser -vm <mount_point>
an this one kills...
fuser -km <mount_point>
And then umount <mount_point> works...

Regards!

Нема коментара:

Постави коментар

Напомена: Само члан овог блога може да постави коментар.