I had a working system that was running out of space. So I added space to the end of the disk.
Boot from gparted ISO
launched gparted moved partition 3 of 3 to the right. Went to resize partition 2 of 3 to claim unused space.
Error: About 100 files have csum errors.
btrfs check --repair /dev/sda2
Ok so clean out the crc --init-csum-tree
Errors persist, and can't extend partition
Question how should I have resolved this?
So I added a hard drive, made a new partition, and used cp -r -p /source/* /destination/ (the actually name of the mounted folder doesn't matter)
Since repairing the original partition failed, and I thought I had backed everything up I formatted the source partition.
Now after the partition repaired, put data back.
cp -r -p /destination/* /source
Had to resolve some grub errors and the UUID in fstab.
So it boot, but with errors complaining about /usr/local and several other locations.
Research shows that these locations are subvolumes.
Most of them were relatively harmless, as in I can just re-install them. However, var had some mysql databases in it.
Is my data gone? Why didn't cp copy it? Most importantly how do I copy all files to another partition so I can format(file system damaged beyond --repair) the original, and copy the files back without losing data due to subvolumes or etc?