1

Topic: btrfs partition check fails

Hello.
I used gparted (Kubuntu 14.04 live cd) in the attempt to resize my system partition and the checking of the partition fails.
I got the following report:



GParted 0.18.0 --enable-libparted-dmraid --enable-online-resize

Libparted 2.3
Check and repair file system (btrfs) on /dev/sda3  00:00:26    ( ERROR )
        
calibrate /dev/sda3  00:00:01    ( SUCCESS )
        
path: /dev/sda3
start: 980992
end: 1953523711
size: 1952542720 (931.04 GiB)
check file system on /dev/sda3 for errors and (if possible) fix them  00:00:25    ( ERROR )
        
btrfsck /dev/sda3
        
Checking filesystem on /dev/sda3
UUID: 49bf7b42-01d5-4ba6-9049-c495c5a6e20e
found 67232658388 bytes used err is 1
total csum bytes: 185215896
total tree bytes: 518881280
total fs tree bytes: 293715968
total extent tree bytes: 25116672
btree space waste bytes: 70254449
file data blocks allocated: 218392186880
referenced 184709373952
Btrfs v3.12
checking extents
checking free space cache
checking fs roots
root 257 inode 195092 errors 400, nbytes wrong

========================================


Gparted is not able to fix the issue and I cannot shrink my partition.
The laptop boots and functions just fine though.
Any ideas?

2

Re: btrfs partition check fails

You might try using a newer version of GParted and btrfsck.  One of the best ways is to boot from media containing the latest GParted Live (currently 0.25.0-3).

3

Re: btrfs partition check fails

I already tried that. I got a similar result sad

4

Re: btrfs partition check fails

You might try downloading, compiling, and running the latest version of btrfsck to see if that can fix the problem.

Another option would be to backup all your data from the partition, reformat the partition, and then restore the data.

5

Re: btrfs partition check fails

The Btrfs mailing list may be able to help, but it might take longer to find a alternative answer from the list than just following gedakc's suggestion of: backup, create new file system and restore the data.

NOTE:
That in the era of Ubuntu 14.04 LTS (Linux 3.16, btrfs-progs 3.12) Btrfs was considered experimental.  Now Btrfs is considered stablising.  The
received wisdom on the list is that you should be using the latest released kernel and btrfs-progs.  (The Btrfs News section of the wiki currently reports these as Linux 4.5 and btrfs-progs 4.5.1).