forcefully unmount a disk partition

linux
Published

September 17, 2008

check which processes are accessing a partition:

[sourcecode language=“python”]lsof | grep ‘/opt’[/sourcecode]

kill all the processes accessing the partition (check what you’re killing, you could loose data):

[sourcecode language=“python”]fuser -km /mnt[/sourcecode]

try to unmount now:
[sourcecode language=“python”]umount /opt[/sourcecode]