During a reboot of my computer, the computer froze and I was forced to press the reset button. After powering back on everything seemed fine, until I noticed that the root file system is mounted read only.
A dmesg showed:
[83.050170] parent transid verify failed on 18533310464 wanted 671804 found 671808
83.057370] parent transid verify failed on 18533310464 wanted 671804 found 671808
83.245608] parent transid verify failed on 18533310464 wanted 671804 found 671808
83.245819] parent transid verify failed on 18533310464 wanted 671804 found 671808
83.252334] parent transid verify failed on 18533310464 wanted 671804 found 671808
83.252489] parent transid verify failed on 18533310464 wanted 671804 found 671808
Followed by:
152.550318] BTRFS info (device sda1): csum failed ino 23545 off 0 csum 1738709224 expected csum 3677127208
I rebooted and noted that the root file system was mounted rw but then a short time later was mounted ro.
I rebooted with my opensus rescue USB.
I ran btrfs scrub start on the filesystem and get the following output:
total bytes scrubbed: 33.36GiB with 1 errors
error details: csum=1
corrected errors: 0, uncorrected erors: 1, unverified errors: 0
dmesg shows:
btrfs: bdev /dev/sda1 errs; wr 0, rd 0, flush 0, corrupt 2, gen 0
btrfs: checksum error at logical 29875421184 on dev /dev/sda1, sector 63871840, root 5, inode 23545, offset 0, length4096, links 1 path: var/lib/Packagekit/transactions.db
How do I repair the filesystem?
System info:
opensuse 13.1
kernel 3.17.0-1.gc467423-desktop - amd64
kde 4.14.2
Thanks for any assistance.
Mark