# [[Proxmox VM Disk Expansion]] _Created: 2025-10-03_ | #proxmox #ubuntu | [[010 System Administration MOC|System Administration]] <https://kb.vander.host/disk-management/how-to-enlarge-an-ext4-disk-on-an-ubuntu-proxmox-vm/> If you have an existing VM in proxmox whose disk you want to expand, follow these steps: 1. Shutdown the VM and expand disk from Proxmox GUI in the Hardware tab. 2. After booting back, use `parted` to expand partition. Remember, this only resizes the partition, not the filesystem itself. ```shell-session $ sudo lsblk /dev/vda NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS vda 252:0 0 40G 0 disk <------ Physical disk ├─vda1 252:1 0 1M 0 part └─vda2 252:2 0 20G 0 part / <------ Partition size doesn't match $ sudo parted /dev/vda (parted) p Warning: Not all of the space available to /dev/vda appears to be used, you can fix the GPT to use all of the space (an extra 41943040 blocks) or continue with the current setting? Fix/Ignore? F ... Number Start End Size File system Name Flags 1 1049kB 2097kB 1049kB bios_grub 2 2097kB 21.5GB 21.5GB ext4 (parted) resizepart 2 100% Warning: Partition /dev/vda2 is being used. Are you sure you want to continue? Yes/No? y (parted) p ... Number Start End Size File system Name Flags 1 1049kB 2097kB 1049kB bios_grub 2 2097kB 42.9GB 42.9GB ext4 $ sudo lsblk /dev/vda NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS vda 252:0 0 40G 0 disk ├─vda1 252:1 0 1M 0 part └─vda2 252:2 0 40G 0 part / ``` 3. Expand filesystem ```shell-session $ sudo resize2fs /dev/vda2 resize2fs 1.46.5 (30-Dec-2021) Filesystem at /dev/vda2 is mounted on /; on-line resizing required old_desc_blocks = 3, new_desc_blocks = 5 The filesystem on /dev/vda2 is now 10485243 (4k) blocks long. ```