Skip to content

Instantly share code, notes, and snippets.

@michelep
Created June 13, 2023 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michelep/b21f00107714be0a7befbaa2ba70c19a to your computer and use it in GitHub Desktop.
Save michelep/b21f00107714be0a7befbaa2ba70c19a to your computer and use it in GitHub Desktop.
Linux MINT resize encrypted LVS partition
-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