Created
August 16, 2023 07:17
-
-
Save garytan/ea5b1282e2ad776c59c5539835cc9267 to your computer and use it in GitHub Desktop.
enlarge disk partition of linux vm
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
#!/bin/bash | |
echo 1 > /sys/class/block/sda/device/rescan | |
sudo apt-get install -y cloud-utils | |
growpart /dev/sda 1 | |
resize2fs /dev/sdba |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment