How To Expand Ubuntu 20.04 LTS Filesystem Volume on Proxmox

Setup: Proxmox 7; Disk model: QEMU HARDDISK; Ubuntu 20.04.3 LTS

 

Expand the QEMU HARDDISK file via Proxmox as per Proxmox VM disk resize steps (VM->Hardware->Hard Disk->Disk Action->Resize) and then inside the VM:

 

$ sudo fdisk -l

 

See which partition is the current Ubuntu setup - should be obvious based on size (in my case was sda2)

 

$ sudo growpart /dev/sda 2

 

# NB: space between `partition` (/dev/sda) and `id` (2)!

 

Resize:

$ sudo resize2fs /dev/sda2

# NB: *no space* between partition and id!

 

  • Proxmox, VM, Ubuntu
  • 25 Users Found This Useful
Was this answer helpful?

Related Articles

Create a Windows VM in Proxmox VE

Today, we will show you how to create a Windows VM in Proxmox. This may sound like a...

Installing macOS 12 “Monterey” on Proxmox 7

This tutorial for installing macOS 12 Monterey has been adapted for Proxmox from Kholia’s OSX-KVM...

Dynamic Host Configuration Protocol (DHCP)

The Dynamic Host Configuration Protocol (DHCP) is a network service that enables host computers...

Convert Mariadb/Mysql InnoDB to RocksDB on Ubuntu 20

$ sudo apt-get install mariadb-plugin-rocksdb After installation, then restart your server....

ZFS vs. LVM: Side-by-Side Comparison

In this article, we will look at a side-by-side comparison of ZFS vs. LVM. ZFS and LVM are both...