Expanding Linux VM Partitions within ProxMox
EndeavourOS/Arch Linux
GUI
- Shut down the VM and within Proxmox go to Hardware > Hard Disk > Resize
- Expand the Main disk, and secondary disk (linuxswap) as needed
- Boot up the VM again, log into a user account and open up KDE Parition Manager
paru -S partitionmanager
- If Expanded the main disk, select it, right click on the main partition and click resize and then expand it to use up all the new disk space alloted to it.
- Sometimes the extra disk space doens’t appear, a reboot of the VM usually fixes this.
- If expanding the linux swap partition, you will need to delete the old partition and recreate it as a new linuxswap partition
- right click on the partition, “deactivate swap”
- Right click and click “delete partition”
- Apply the changes
- Right click on the empty partition and create new primary partition of the type
linuxswap
- Apply the changes
- Right click on the newly created partition and select
activate swap
- Right click on the newly created partition and view it’s properties.
- Copy the UUID to your clipboard. NOT the partition UUID.
- open up your fstab file with
sudo nano /etc/fstab
and copy the new linux partition UUID and overwrite the old swap partition ID. - reboot the VM to make sure that the swap partition gets auto mounted.
- easy way to check is open up
htop
in the terminal and see if the swap has a disk size to it.
Terminal
Ubuntu/Kubuntu
- Run the following commands on the expanded drive:
- https://unix.stackexchange.com/a/743682
- Open up KDE Partition manager and expand the partition to use the full size
Last updated on July 17, 2024. For any questions/feedback, email me at blog@zinchuk.xyz.