--- aliases: - /2008/09/forcefully-unmount-disk-partition categories: - linux date: 2008-09-17 15:14 layout: post slug: forcefully-unmount-disk-partition title: forcefully unmount a disk partition ---

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]