- Resizing the partition used by the encrypted volume
parted /dev/sda
(parted) print
[...]
Number Start End Size File system Name Flags
1 1049kB 525MB 524MB fat16 EFI system partition boot, esp
2 525MB 256GB 256GB Linux filesystem
(parted) resizepart
Partition number? 2
End? [512GB]? '100%'
(parted) print
[...]
Number Start End Size File system Name Flags
1 1049kB 525MB 524MB fat16 EFI system partition boot, esp
2 525MB 512GB 512GB Linux filesystem
(parted) q
- Boot machine from a bootable USB linux system (Arch Linux-, Ubuntu or similar USB installer)
- Open and resizing the encrypted LUKS volume
cryptsetup open /dev/sdb1 sdb1_crypt
cryptsetup resize sdb1_crypt
- Resize the physical device
pvresize /dev/mapper/sdb1_crypt
- Resize the logical device
lvextend -l +100%FREE /dev/mapper/vg-root
- Resizing the file-system of the volume
resize2fs /dev/mapper/vg-root
- Reboot. You are done.
Nice, worked great.
Might be nice to include how you find the devicename and luks volume name