Last active
October 27, 2020 06:40
-
-
Save nahidakbar/acfc9093bc21653224414f6396b541dc to your computer and use it in GitHub Desktop.
Extend ubuntu vm size without using live disks and gui tools
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
Extend size of disk and then boot into vm. | |
# fix up partition size | |
sudo parted -l | |
Fix | |
# file up partition | |
sudo fdisk /dev/sda | |
d delete last partition | |
n create new paritition | |
w write | |
# Reize fs | |
sudo resize2fs /dev/sda2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment