Topic: [SOLVED] Can not resize encrypted btrfs partitions
I have two encrypted btrfs partitions, which I can not resize. Below are the logs
Log 1:
GParted 1.1.0
configuration --enable-libparted-dmraid --enable-online-resize
libparted 3.4
========================================
Device: /dev/sda
Model: ATA Samsung SSD 870
Serial: S62BNF0R930305X
Sector size: 512
Total sectors: 976773168
Heads: 255
Sectors/track: 2
Cylinders: 1915241
Partition table: gpt
Partition Type Start End Flags Partition Name File System Label Mount Point
/dev/sda1 Primary 2048 1026047 boot, esp EFI system partition fat32
/dev/sda2 Primary 1026048 5220351 swap Linux swap ext2 cryptswap
/dev/sda3 Primary 5220352 319793151 Linux filesystem luks
/dev/sda4 Primary 319793152 634365951 Linux /home luks /dev/mapper/sda4_crypt
/dev/sda5 Primary 829972480 830005247 msftres Microsoft reserved partition unknown
/dev/sda6 Primary 830005248 976773119 msftdata Basic data partition ntfs
========================================
Device: /dev/sdb
Model: Generic Flash Disk
Serial:
Sector size: 512
Total sectors: 30924800
Heads: 255
Sectors/track: 2
Cylinders: 60636
Partition table: msdos
Partition Type Start End Flags Partition Name File System Label Mount Point
/dev/sdb1 Primary 2048 30924799 boot, lba fat32 RESCUEZILLA /cdrom
========================================
Check and repair file system ([Encrypted] btrfs) on /dev/sda4 00:00:03 ( ERROR )
calibrate /dev/sda4 00:00:00 ( SUCCESS )
path: /dev/sda4 (partition)
start: 319793152
end: 634365951
size: 314572800 (150.00 GiB)
encryption path: /dev/mapper/sda4_crypt
check file system on /dev/mapper/sda4_crypt for errors and (if possible) fix them 00:00:03 ( SUCCESS )
btrfs check '/dev/mapper/sda4_crypt' 00:00:03 ( SUCCESS )
Opening filesystem to check...
Checking filesystem on /dev/mapper/sda4_crypt
UUID: 35142bd7-e297-4274-ba11-61f9c9c2b31d
cache and super generation don't match, space cache will be invalidated
found 21220093952 bytes used, no error found
total csum bytes: 20594260
total tree bytes: 116817920
total fs tree bytes: 82132992
total extent tree bytes: 8732672
btree space waste bytes: 22425048
file data blocks allocated: 54963613696
referenced 22554460160
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
grow encryption volume to fill the partition 00:00:00 ( ERROR )
cryptsetup -v resize 'sda4_crypt' 00:00:00 ( ERROR )
Command failed with code -1 (wrong or missing parameters).
Nothing to read on input.
Log 2:
GParted 1.1.0
configuration --enable-libparted-dmraid --enable-online-resize
libparted 3.4
========================================
Device: /dev/sda
Model: ATA Samsung SSD 870
Serial: S62BNF0R930305X
Sector size: 512
Total sectors: 976773168
Heads: 255
Sectors/track: 2
Cylinders: 1915241
Partition table: gpt
Partition Type Start End Flags Partition Name File System Label Mount Point
/dev/sda1 Primary 2048 1026047 boot, esp EFI system partition fat32
/dev/sda2 Primary 1026048 5220351 swap Linux swap ext2 cryptswap
/dev/sda3 Primary 5220352 319793151 Linux filesystem luks /dev/mapper/sda3_crypt
/dev/sda4 Primary 319793152 634365951 Linux /home luks /dev/mapper/sda4_crypt
/dev/sda5 Primary 829972480 830005247 msftres Microsoft reserved partition unknown
/dev/sda6 Primary 830005248 976773119 msftdata Basic data partition ntfs
========================================
Device: /dev/sdb
Model: Generic Flash Disk
Serial:
Sector size: 512
Total sectors: 30924800
Heads: 255
Sectors/track: 2
Cylinders: 60636
Partition table: msdos
Partition Type Start End Flags Partition Name File System Label Mount Point
/dev/sdb1 Primary 2048 30924799 boot, lba fat32 RESCUEZILLA /cdrom
========================================
Check and repair file system ([Encrypted] btrfs) on /dev/sda3 00:01:06 ( ERROR )
calibrate /dev/sda3 00:00:00 ( SUCCESS )
path: /dev/sda3 (partition)
start: 5220352
end: 319793151
size: 314572800 (150.00 GiB)
encryption path: /dev/mapper/sda3_crypt
check file system on /dev/mapper/sda3_crypt for errors and (if possible) fix them 00:01:06 ( SUCCESS )
btrfs check '/dev/mapper/sda3_crypt' 00:01:06 ( SUCCESS )
Opening filesystem to check...
Checking filesystem on /dev/mapper/sda3_crypt
UUID: 09225186-06cb-4512-8576-0b92716efbf4
cache and super generation don't match, space cache will be invalidated
found 32040562688 bytes used, no error found
total csum bytes: 29904708
total tree bytes: 1201061888
total fs tree bytes: 1117929472
total extent tree bytes: 47775744
btree space waste bytes: 219860400
file data blocks allocated: 84016300032
referenced 95244828672
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
grow encryption volume to fill the partition 00:00:00 ( ERROR )
cryptsetup -v resize 'sda3_crypt' 00:00:00 ( ERROR )
Command failed with code -1 (wrong or missing parameters).
Nothing to read on input.