Trying to move and extend my CachyOS main partition on a fresh install, similar to this.
I booted GParted Live via Ventoy, tried to move the partition to the left and got filesystem errors - specifically FS file tree and leaf key type errors.
GParted showed the exact error output - difficult to copy here.
Errors posted from GParted running btrfs check '/dev/nvme0n1p7' as a check before moving and extending the partition
ERROR: unknown key (1861997 37 1280000) found in leaf 211373359104
ERROR: unknown key (1861997 37 1282048) found in leaf 211373359104
ERROR: unknown key (1861997 37 1284096) found in leaf 211373522944
ERROR: unknown key (1861997 37 1286144) found in leaf 211373522944
...
Even using the latest version of Gparted - I checked the versions of btrfs, but that wasn’t the problem.
Since Gparted couldn’t move it, I tried a CachyOS Live USB and KDE Partition Manager instead.
But I got the same errors, basically. (KDE Partition Manager doesn’t show the detailed error output).
I tried different ways to repair the filesystem like (caution doing this) btrfs check --repair, but the repair did not change the filesystem, and printed the same list of ‘unknown key found in leaf’ errors.
Ended up just extending the partition in place using btrfs commands.
sudo parted /dev/nvme0n1 print free
sudo parted /dev/nvme0n1 resizepart 7 100%
sudo mount /dev/nvme0n1p7 /mnt
# Resize the btrfs filesystem to fill the partition
sudo btrfs filesystem resize max /mnt
I did not actually move the partition first like I wanted.
Is there a way to force GParted or KDE Partition Manager to move the partition despite the btrfs errors? Or is there a different tool that handles this better?
Any ideas or suggestions appreciated.