gurfin / How to resize an Ubuntu VM on Proxmox

Created Thu, 28 Aug 2025 21:57:00 +0100 Modified Thu, 28 Aug 2025 20:17:56 +0000
109 Words
  1. First, increase the size of the disk in Proxmox.
  2. The next step is to verify the disk size in Ubuntu, and also check that the OS sees the new expanded part of the disk.
    1. Run sudo fdisk -l to see the information on the available disk blocks: diagram
    2. Run df -h to see the size of the filesystem: image2
  3. Run sudo cfdisk on the VM.
    1. Select the disk you want to expand and choose “Resize”, then press enter. The maximum size should be pre-selected. image3
    2. Select “Write” and enter “yes”: image4
    3. And then “Quit”:
  4. Now that the disk has been expanded, it is time to expand the filesystem. Enter `sudo resize2fs /dev/sda1: image5
  5. Done!