umount trouble

Small note that I keep forgetting and I end up looking for it again and again:

If a mounted volume is used this is how we will find who is the bad boy that is using it:

The problem:

umount /media/disk/
umount: /media/disk: device is busy

The solution:

fuser -m /dev/sdc1
or
fuser -c /mnt/disk

will give us

/dev/sdc1: 538

so we can

ps auxw|grep 538

and

kill -9 538


woohoo! :)

Popular Posts