Ubuntu initial setup does not do expand the virtual disk image to it’s full size. You should to this after setting up Ubuntu or when expanding the size of the VHD file.
First off, check where is ubuntu located (/dev/sdxY
) and the actual drive space available with:
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
To expand, run:
sudo pvs
Resize with:
Advertisement
sudo pvresize /dev/sda1
Get mapper for drive with:
df -h
Expand the filesystem with:
sudo lvextend -r -l +100%FREE /dev/mapper/ubuntu--vg-root
Run the inital command again and check if it’s done.
Advertisement