Linux/Convert crypted btrfs to crypted LVM
Jump to navigation
Jump to search
[root@querix etc]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 465.8G 0 disk ├─sda1 8:1 0 200M 0 part /boot/efi ├─sda2 8:2 0 500M 0 part /boot ├─sda3 8:3 0 3.9G 0 part │ └─luks-d8be01e9-ef97-43e4-a8cd-3e40837b4b22 253:0 0 3.9G 0 crypt [SWAP] └─sda4 8:4 0 461.2G 0 part └─luks-dffe4300-4e4e-4571-bb4a-c8a2b033610b 253:1 0 223G 0 crypt /home sr0 11:0 1 1024M 0 rom root@querix etc]# df -h / Filesystem Size Used Avail Use% Mounted on /dev/dm-1 222G 35G 185G 16% /
btrfs filesystem resize -240g /
echo $(( ( 223 * 1024 * 1024 * 1024 ) / 512 ) )) cryptsetup resize --size 467664896 /dev/dm-1