-
-
Save laidbackware/ecf021dcf99fe3956851fb85bc0220b9 to your computer and use it in GitHub Desktop.
Expand Ubuntu VM disk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo fdisk -l | |
# number is the partition number | |
sudo growpart /dev/sda 3 | |
sudo pvresize /dev/sda3 | |
sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv | |
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment