Created
August 12, 2025 23:52
-
-
Save TyeolRik/47fd06f5230a5d689eca66b71b0e3435 to your computer and use it in GitHub Desktop.
Remove /home and Grow / (root)
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 | |
| umount /home | |
| lvremove -y /dev/mapper/rl-home # Careful mapper name | |
| lvextend -l +100%FREE /dev/mapper/rl-root # Careful mapper name | |
| xfs_growfs / # If XFS. # If ext4, resize2fs /dev/mapper/rl-root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment