Created
March 14, 2024 17:11
-
-
Save rasa/cec7473a186bcc0a6eebaa7866fbacd3 to your computer and use it in GitHub Desktop.
Expand lvm to use entire 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
#!/usr/bin/env bash | |
# Per https://networklessons.com/uncategorized/extend-lvm-partition : | |
lvextend -l +100%FREE /dev/vgkubuntu/root | |
e2fsck -y /dev/vgkubuntu/root | |
resize2fs /dev/vgkubuntu/root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment