Never had to do it but wanted to find out about the command and how long it took.
The man page is for btrfs-check.
I've had my Neon Btrfs system running for since Neon was released. (Three years ago?) and it has and is behaving without a problem.
So I booted my Kubuntu Bionic persistence LiveUSB and ran the command against /dev/sda1.
sudo btrfs check --repair /dev/sda1
This is what it returned after about 3 minutes:
Mmmm... 24 Mb of "space waste" out of 123GB used.
No errors found
Not bad. First check in 3 years.
The man page is for btrfs-check.
I've had my Neon Btrfs system running for since Neon was released. (Three years ago?) and it has and is behaving without a problem.
So I booted my Kubuntu Bionic persistence LiveUSB and ran the command against /dev/sda1.
sudo btrfs check --repair /dev/sda1
This is what it returned after about 3 minutes:
enabling repair mode
Checking filesystem on /dev/sda1
UUID: 12980ae8-4117-4cc5-bbb8-8065e82af93d
Fixed 0 roots.
checking extents
No device size related problem found
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
checking csums
checking root refs
found 123396521984 bytes used, no error found
total csum bytes: 113634432
total tree bytes: 1129594880
total fs tree bytes: 904069120
total extent tree bytes: 88326144
btree space waste bytes: 246493989
file data blocks allocated: 2107223277568
referenced 177630375936
Checking filesystem on /dev/sda1
UUID: 12980ae8-4117-4cc5-bbb8-8065e82af93d
Fixed 0 roots.
checking extents
No device size related problem found
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
checking csums
checking root refs
found 123396521984 bytes used, no error found
total csum bytes: 113634432
total tree bytes: 1129594880
total fs tree bytes: 904069120
total extent tree bytes: 88326144
btree space waste bytes: 246493989
file data blocks allocated: 2107223277568
referenced 177630375936
No errors found
Not bad. First check in 3 years.
Comment