Re: Restoring BTRFS partition

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sean Bartell
Date: Tuesday, April 20, 2010 - 1:30 pm

On Tue, Apr 20, 2010 at 06:13:41PM +0000, Alli Quaknaa wrote:

The superblock in that file (starting at byte 0x10) is actually a mirror
of the real superblock. Aside from the real superblock at 0x10000,
Btrfs stores mirror copies of the superblock at 0x4000000 (64 MiB),
0x4000000000 (256 GiB), and 0x4000000000000 (1 PiB). Each superblock has
a field that indicates where it is; when you made your image, you put
the mirror superblock where the real superblock was supposed to be, and
btrfs refused to mount it because that field was wrong. 

The real start of the btrfs partition is 0x4000000 bytes (64 MiB) before
the place you found that mirror superblock; the real superblock should
be 0x3ff0000 bytes before the mirror. Even if the real superblock is
corrupt, if the mirror is at 0x4000000, where it's supposed to be, you
should be able to get btrfs to mount it (though I think you might need a
mount option or a patch).
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Restoring BTRFS partition, Alli Quaknaa, (Tue Apr 20, 7:56 am)
Re: Restoring BTRFS partition, Wengang Wang, (Tue Apr 20, 8:55 am)
Re: Restoring BTRFS partition, Sean Bartell, (Tue Apr 20, 9:50 am)
Re: Restoring BTRFS partition, Alli Quaknaa, (Tue Apr 20, 10:14 am)
Re: Restoring BTRFS partition, Alli Quaknaa, (Tue Apr 20, 11:13 am)
Re: Restoring BTRFS partition, Sean Bartell, (Tue Apr 20, 1:30 pm)
Re: Restoring BTRFS partition, Alli Quaknaa, (Tue Apr 20, 3:25 pm)
Re: Restoring BTRFS partition, Sean Bartell, (Tue Apr 20, 5:32 pm)
Re: Restoring BTRFS partition, Wengang Wang, (Tue Apr 20, 7:49 pm)
Re: Restoring BTRFS partition, Alli Quaknaa, (Wed Apr 21, 12:45 am)