Difference between revisions of "Linux/Convert crypted btrfs to crypted LVM"
Jump to navigation
Jump to search
(Created page with " [root@querix etc]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 465.8...") |
|||
Line 17: | Line 17: | ||
echo $(( ( 223 * 1024 * 1024 * 1024 ) / 512 ) )) |
echo $(( ( 223 * 1024 * 1024 * 1024 ) / 512 ) )) |
||
cryptsetup resize --size 467664896 /dev/dm-1 |
cryptsetup resize --size 467664896 /dev/dm-1 |
||
[root@querix etc]# cryptsetup status /dev/dm-1 |
|||
/dev/dm-1 is active and is in use. |
|||
type: LUKS1 |
|||
cipher: aes-xts-plain64 |
|||
keysize: 512 bits |
|||
device: /dev/sda4 |
|||
offset: 4096 sectors |
|||
size: 467664896 sectors |
|||
mode: read/write |
Revision as of 18:34, 17 June 2014
[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
[root@querix etc]# cryptsetup status /dev/dm-1 /dev/dm-1 is active and is in use. type: LUKS1 cipher: aes-xts-plain64 keysize: 512 bits device: /dev/sda4 offset: 4096 sectors size: 467664896 sectors mode: read/write