Make Ubuntu Server use 100% of the drive

So there’s this annoying thing Ubuntu Server does by default, which is not use the whole drive. This is a waste of space and i’m gonna show you how to fix it with a few commands.

$ sudo lvm
lvm> lvextend -l 100%FREE /dev/ubuntu-vg/ubuntu-lv
lvm> exit
$ sudo resize2fs /dev/ubuntu-vg/ubuntu-lv

And that’s it. You should now see the whole drive used with df -h command

Leave a comment

Your email address will not be published. Required fields are marked *