baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

GNU/Elementary OS: resize LUKS encrypted LVM volume (lvm inside luks)

boot gparted live

sudo su -
lsblk
fdisk /dev/sda
p
d
d
n
e
n
w


lsblk
cryptsetup luksOpen /dev/sda5 crypt

pvs
lvs
swapoff -a
pvresize /dev/mapper/crypt
lvresize -l +100%FREE /dev/elementary-vg/root
swapon
lvs
pvs

e2fsck -f /dev/elementary-vg/root
resize2fs /dev/elementary-vg/root

lvs
pvs
lsblk

reboot

Comments are currently closed.