USE METHODS AT YOUR OWN RISK, IF YOU DECIDE TO USE THIS ARTICLE, HEED ALL OF THE SAFETY MEASURE (IF I MISSED A SAFETY MEASURE, DONT BLAME ME, I SAID USE AT YOUR OWN RISK)
To check if you need to upgrade your btrfs-tools, just run btrfsck –help and look at the options, if you have like no options then update it as you are behind
BEHIND – need to update:
btrfsck --help btrfsck: unrecognized option '--help' usage: btrfsck dev Btrfs v0.20-rc1
CAUGHT UP – good to go (might still have newer versions out there, run btrfs without any options to see version number):
btrfsck --help usage: btrfs check [options] <device> Check an unmounted btrfs filesystem. -s|--super <superblock> use this superblock copy --repair try to repair the filesystem --init-csum-tree create a new CRC tree --init-extent-tree create a new extent tree --fix-crc try to fix bad CRCs
Note: I assume your volume is called /dev/sda3
To do a readonly harmless check (this is in both old and new btrfsck version, just run it without parameters):
# btrfsck /dev/sda3
To fix checksum issues use –fix-crc like this:
# btrfsck --fix-crc /dev/sda3
To fix other general issues:
# btrfsck --repair /dev/sda3
NOTE: Beware first I would try mount options, this btrfsck might just blend up your situation to a worse situation so try the “restore mounts” first followed by “btrfs restore”, if the data is not critical then just try the repair: CLICK HERE FOR THAT ARTICLE
TIP: have your swap mounted, lots of ram is a plus
TO GET LATEST TOOLS:
Go HERE