linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to boot btrfs filesystem, and btrfsck aborts
@ 2013-03-11 22:44 Matthew Booth
  2013-03-11 22:49 ` Harald Glatt
  2013-03-11 23:49 ` Josef Bacik
  0 siblings, 2 replies; 5+ messages in thread
From: Matthew Booth @ 2013-03-11 22:44 UTC (permalink / raw)
  To: linux-btrfs

My laptop crashed hard earlier today. It reset immediately to a black
screen followed by the BIOS. I have no idea why.

However, it now fails to boot. I took a picture of the kernel panic
that results from trying to mount the root filesystem:
https://plus.google.com/107763699965053810188/posts/QZZt7GYzBZi

To make things worse, btrfsck aborts with a double free, without
fixing it. I took a picture of that, too:
https://plus.google.com/107763699965053810188/posts/gKYqGgFhWyT

As the kernel panic mentions btrfs_remove_free_space, I also tried
mounting with clear_cache. Unfortunately it didn't dislodge anything.

This is on a fully updated Fedora 18 system. I would really like to
get this data back. If anybody could offer a suggestion I'd be very
grateful.

Thanks,

Matt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Unable to boot btrfs filesystem, and btrfsck aborts
  2013-03-11 22:44 Unable to boot btrfs filesystem, and btrfsck aborts Matthew Booth
@ 2013-03-11 22:49 ` Harald Glatt
  2013-03-11 22:53   ` Jan Steffens
  2013-03-11 23:49 ` Josef Bacik
  1 sibling, 1 reply; 5+ messages in thread
From: Harald Glatt @ 2013-03-11 22:49 UTC (permalink / raw)
  To: Matthew Booth; +Cc: linux-btrfs

On Mon, Mar 11, 2013 at 11:44 PM, Matthew Booth <matthew@heisenbug.com> wrote:
> My laptop crashed hard earlier today. It reset immediately to a black
> screen followed by the BIOS. I have no idea why.
>
> However, it now fails to boot. I took a picture of the kernel panic
> that results from trying to mount the root filesystem:
> https://plus.google.com/107763699965053810188/posts/QZZt7GYzBZi
>
> To make things worse, btrfsck aborts with a double free, without
> fixing it. I took a picture of that, too:
> https://plus.google.com/107763699965053810188/posts/gKYqGgFhWyT
>
> As the kernel panic mentions btrfs_remove_free_space, I also tried
> mounting with clear_cache. Unfortunately it didn't dislodge anything.
>
> This is on a fully updated Fedora 18 system. I would really like to
> get this data back. If anybody could offer a suggestion I'd be very
> grateful.
>
> Thanks,
>
> Matt
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

If you can make a complete image backup of the drive before trying any
things to bring it back.
Try mounting with -o nospace_cache, also try -o ro and -o recovery as
well as -o recovery,ro.

If you can bringt it back in ro mode you can at least copy your data
out of it if all else fails...

I'm not a dev, just a random guy having an interest in btrfs, so if
you don't have a backup and aren't able to create a dd copy of it
right now you might wanna wait for a reply of someone who actually
knows the code...

Good luck

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Unable to boot btrfs filesystem, and btrfsck aborts
  2013-03-11 22:49 ` Harald Glatt
@ 2013-03-11 22:53   ` Jan Steffens
  2013-03-11 22:57     ` Harald Glatt
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Steffens @ 2013-03-11 22:53 UTC (permalink / raw)
  To: Matthew Booth; +Cc: linux-btrfs

On Mon, Mar 11, 2013 at 11:49 PM, Harald Glatt <mail@hachre.de> wrote:
> On Mon, Mar 11, 2013 at 11:44 PM, Matthew Booth <matthew@heisenbug.com> wrote:
>> My laptop crashed hard earlier today. It reset immediately to a black
>> screen followed by the BIOS. I have no idea why.
>>
>> However, it now fails to boot. I took a picture of the kernel panic
>> that results from trying to mount the root filesystem:
>> https://plus.google.com/107763699965053810188/posts/QZZt7GYzBZi
>>
>> To make things worse, btrfsck aborts with a double free, without
>> fixing it. I took a picture of that, too:
>> https://plus.google.com/107763699965053810188/posts/gKYqGgFhWyT
>>
>> As the kernel panic mentions btrfs_remove_free_space, I also tried
>> mounting with clear_cache. Unfortunately it didn't dislodge anything.
>>
>> This is on a fully updated Fedora 18 system. I would really like to
>> get this data back. If anybody could offer a suggestion I'd be very
>> grateful.
> If you can make a complete image backup of the drive before trying any
> things to bring it back.
> Try mounting with -o nospace_cache, also try -o ro and -o recovery as
> well as -o recovery,ro.

I think the bug happens during log recovery, so btrfs-zero-log might
get it mountable again, with the caveat of losing the most recently
fsynced changes.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Unable to boot btrfs filesystem, and btrfsck aborts
  2013-03-11 22:53   ` Jan Steffens
@ 2013-03-11 22:57     ` Harald Glatt
  0 siblings, 0 replies; 5+ messages in thread
From: Harald Glatt @ 2013-03-11 22:57 UTC (permalink / raw)
  To: Matthew Booth; +Cc: linux-btrfs

If you are going to use btrfs-zero-log please create a btrfs-image
first that you can then upload to a bug report so that this can be
fixed.

# btrfs-image -c 9 -t 8 /dev/yourbtrfs /tmp/fs_image

On Mon, Mar 11, 2013 at 11:53 PM, Jan Steffens <jan.steffens@gmail.com> wrote:
> On Mon, Mar 11, 2013 at 11:49 PM, Harald Glatt <mail@hachre.de> wrote:
>> On Mon, Mar 11, 2013 at 11:44 PM, Matthew Booth <matthew@heisenbug.com> wrote:
>>> My laptop crashed hard earlier today. It reset immediately to a black
>>> screen followed by the BIOS. I have no idea why.
>>>
>>> However, it now fails to boot. I took a picture of the kernel panic
>>> that results from trying to mount the root filesystem:
>>> https://plus.google.com/107763699965053810188/posts/QZZt7GYzBZi
>>>
>>> To make things worse, btrfsck aborts with a double free, without
>>> fixing it. I took a picture of that, too:
>>> https://plus.google.com/107763699965053810188/posts/gKYqGgFhWyT
>>>
>>> As the kernel panic mentions btrfs_remove_free_space, I also tried
>>> mounting with clear_cache. Unfortunately it didn't dislodge anything.
>>>
>>> This is on a fully updated Fedora 18 system. I would really like to
>>> get this data back. If anybody could offer a suggestion I'd be very
>>> grateful.
>> If you can make a complete image backup of the drive before trying any
>> things to bring it back.
>> Try mounting with -o nospace_cache, also try -o ro and -o recovery as
>> well as -o recovery,ro.
>
> I think the bug happens during log recovery, so btrfs-zero-log might
> get it mountable again, with the caveat of losing the most recently
> fsynced changes.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Unable to boot btrfs filesystem, and btrfsck aborts
  2013-03-11 22:44 Unable to boot btrfs filesystem, and btrfsck aborts Matthew Booth
  2013-03-11 22:49 ` Harald Glatt
@ 2013-03-11 23:49 ` Josef Bacik
  1 sibling, 0 replies; 5+ messages in thread
From: Josef Bacik @ 2013-03-11 23:49 UTC (permalink / raw)
  To: Matthew Booth; +Cc: linux-btrfs@vger.kernel.org

On Mon, Mar 11, 2013 at 04:44:58PM -0600, Matthew Booth wrote:
> My laptop crashed hard earlier today. It reset immediately to a black
> screen followed by the BIOS. I have no idea why.
> 
> However, it now fails to boot. I took a picture of the kernel panic
> that results from trying to mount the root filesystem:
> https://plus.google.com/107763699965053810188/posts/QZZt7GYzBZi
> 
> To make things worse, btrfsck aborts with a double free, without
> fixing it. I took a picture of that, too:
> https://plus.google.com/107763699965053810188/posts/gKYqGgFhWyT
> 
> As the kernel panic mentions btrfs_remove_free_space, I also tried
> mounting with clear_cache. Unfortunately it didn't dislodge anything.
> 
> This is on a fully updated Fedora 18 system. I would really like to
> get this data back. If anybody could offer a suggestion I'd be very
> grateful.
>

This is fixed in 3.9, I'll send those patches back to -stable, sorry I should
have done that before now.  If you can't get a 3.9 kernel to boot then just use
btrfs-zero-log and you'll be good to go.  Thanks,

Josef 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-11 23:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-11 22:44 Unable to boot btrfs filesystem, and btrfsck aborts Matthew Booth
2013-03-11 22:49 ` Harald Glatt
2013-03-11 22:53   ` Jan Steffens
2013-03-11 22:57     ` Harald Glatt
2013-03-11 23:49 ` Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).