Ubuntu – How to umount /dev/sda1 partition in ubuntu

diskmanagementfdiskUbuntuvirtual-machines

I have a Ubuntu VM which has an unmanaged OS disk associated with it.

I want to shrink my OS disk of size 50 GB to 40 GB.
However, when i try to unmount /dev/sda1 partition it tell me

umount: /mnt: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))

Therefore, i am unable to unmount it and then shrink it. Could anyone please help me with this?

Best Answer

Seems like your disk /dev/sda1 is mounted. So the best you can do is to boot from live CD and then do the operations you want to do. When boot from live CD /dev/sda1 will not be mounted.

Of course you can start to search for processes which keep open files in this filesystem. But this can take a lot of time.

Related Topic