Increase Hard Drive Size in Linux in VM

Linux CLI

P.R.U. Electronics LLC

Last Update vor einem Jahr

# Increase the Physical Volume (pv) to max size

pvresize /dev/sda3

# Expand the Logical Volume (LV) to max size to match

lvresize -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

# Expand the filesystem itself

resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us