You are not logged in.

#1 2017-01-05 03:26:12

devicelimit
Member
Registered: 2017-01-02
Posts: 5

Computer won't boot - BTRFS ctree failure?

Hello,
My computer recently stopped booting up. It stops and gives me the following error message and leaves me at a prompt.

Starting version 232
[	5.467668] BTRFS critical (device sda3): corrupt leaf, slot offset bad: block=166520237560,root=1, slot=125
[	5.469344] BTRFS critical (device sda3): corrupt leaf, slot offset bad: block=166520237560,root=1, slot=125
[	5.556603] BTRFS: error (device sda3) in btrfs_replay_log:2470: error=-5 IO failure (Failed to recover log tree)
[	5.550026] pending csums is 8192
[	5.550456] BTRFS error (device sda3): cleaner transaction attach returned -30
[	5.701321] BTRFS: open_ctree failed
mount: /dev/sda3: can’t read superblock
You are now being dropped into an emergency shell.
Sh: can’t access tty: job control turned off
[rootfs ]#

I found some posts here in the Arch forums (here and here) about it and it seems like it is a BTRFS ctree failure. I'm not exactly sure how to correct this. The steps that are provided in the posts are probably aimed at someone with a higher Linux and Arch familiarity than I. I attempted to follow but they didn't work for me. The drive doesn't seem to mount anyway I try. I don't know if that's because I did the steps wrong or if they don't work for my situation.

Some additional information is that it is 1 hard drive not multiple drives. This occurred on December 13. I update almost daily so it
might have been an update from December 12.

I appreciate any help provided. Thank-you for reading.

Offline

#2 2017-01-08 20:11:53

ndc333
Member
Registered: 2016-12-02
Posts: 7

Re: Computer won't boot - BTRFS ctree failure?

try sudo btrfs-show-super /dev/<name> from shell
see how many devices it says (sounds like you mave multiple partitions in the pool)

Offline

#3 2017-01-09 00:27:45

devicelimit
Member
Registered: 2017-01-02
Posts: 5

Re: Computer won't boot - BTRFS ctree failure?

Thank you for the reply!
Where you put <name> I put in my drive (sda) right? I did this at the emergency prompt that the computer boots up to and it gives an error about sudo not being found. So I booted up a alive Ubuntu cd and typed that in the terminal. I received

superblock: bytenr=65536, device=/dev/sda 
ERROR: bad magic on superblock on /dev/sda at 65536

But your are correct I do have multiple partitions on my hard drive. I also have a Windows 10 partition and Windows recovery partition. I have not booted into Windows in months.

Offline

#4 2017-01-09 07:40:17

ndc333
Member
Registered: 2016-12-02
Posts: 7

Re: Computer won't boot - BTRFS ctree failure?

you need to specify the main btrfs partition, not just the device e.g. on my system 'sudo btrfs-show-super /dev/sda6'

Offline

#5 2017-01-10 04:36:30

devicelimit
Member
Registered: 2017-01-02
Posts: 5

Re: Computer won't boot - BTRFS ctree failure?

Thanks.
num_devices is 1.

Offline

#6 2017-01-10 07:01:48

ndc333
Member
Registered: 2016-12-02
Posts: 7

Re: Computer won't boot - BTRFS ctree failure?

i have no idea - but try poking around, there are various recovery tools. the mount recovery given near the end here https://visibilityspots.org/btrfs-mount-issue.html looks promising (and might at least let you recover your data). you could also run fsck without changes etc.
Google shows a lot of these errors for arch (esp multi device systems) but comparatively few for opensuse (where btrfs is the default = lots of users).

Offline

#7 2017-01-11 02:43:02

devicelimit
Member
Registered: 2017-01-02
Posts: 5

Re: Computer won't boot - BTRFS ctree failure?

I appreciate your help. That link looks promising. At this point I'd just be happy to grab the files that hadn't been backed up yet. I don't mind having to reinstall arch (maybe not with btrfs this time). Always good to practice smile

Offline

Board footer

Powered by FluxBB