How to Expand Ubuntu Drive

How to Expand Ubuntu Drive


When you are using vmware to create Ubuntu Server VM, it will only use half of the assigned hard drive storage if you are not changing it in the installation process. Here is how to resize it.

root@util:~# vgdisplay
<snip>
root@util:~# lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
<snip>
root@util:~# resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
<snip>
Enter fullscreen mode

Exit fullscreen mode

This method still works in Ubuntu 24.04 as of today (2024-07-04)

Reference:



Source link
lol

By stp2y

Leave a Reply

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

No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.