XFS filesystem recovery from secondary superblocks

Dave Chinner david at fromorbit.com
Thu Nov 8 15:02:10 CST 2012


On Thu, Nov 08, 2012 at 07:16:06AM -0800, Aaron Goulding wrote:
> Well I found an error in my bgrep. I was searching for XFSB but in the
> wrong order. Once fixed, I get almost 19,000 results, but I note most of

That seems like way too many to be filesystem metadata hits. I woul
dhave expected the same number of hits as there are AGs in the
filesytem. What you want is the XFSB string in the first 4
bytes of a sector, with the next sector having XAGF as the first
four bytes....


> those results happen within one section on the drive. I've attached the
> first 1MB from that point (4398047346688 bytes in) and I will grab the
> other results as 1K blocks.

I'm not going to look at 19000 potential hits. Narrow it down to
likely candidates first whithe the sector location filter...

Cheers,

Dave.
-- 
Dave Chinner
david at fromorbit.com



More information about the xfs mailing list