Created
June 13, 2023 13:10
-
-
Save michelep/b21f00107714be0a7befbaa2ba70c19a to your computer and use it in GitHub Desktop.
Linux MINT resize encrypted LVS partition
This file contains 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
-shrink root | |
$ sudo cryptsetup luksOpen /dev/sda1/ mint-vg | |
$ sudo lvs | |
$ sudo lvresize -L -1.2G --resizefs mint-vg/root | |
-expand swap | |
$ sudo lvresize -l +100%FREE /dev/mint-vg/swap_1 | |
$ sudo mkswap /dev/mint-vg/swap_1 | |
$ sudo lvs | |
$ reboot | |
-rebooted into the installed system, check any of this: | |
$ free -h | |
$ sudo lvs | |
$ df -h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment