public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Location of backup superblocks
@ 2014-08-12 10:49 Felipe Monteiro de Carvalho
  2014-08-12 16:42 ` Eric Sandeen
  0 siblings, 1 reply; 3+ messages in thread
From: Felipe Monteiro de Carvalho @ 2014-08-12 10:49 UTC (permalink / raw)
  To: xfs

Hello,

I am trying to recover a XFS partition (or series of partitions) where
the main superblock was corrupted, and I see that there are multiple
superblock copies. I'd like to guess the partition start and size
also.

I see that the partition size can be calculated with sb_blocksize* sb_dblocks

But what about the partition start? I think I can guess it based in
the position of the found superblocks.

Any ideas where is the code that writes to disk those backup
superblocks? So far to me it looks like that their position is
calculated as disk_size / 4 rounded (nearest rounding?) to a multiple
of sb_blocksize, but having the exact code part would be better of
course =) Or even better, a list of backup superblock positions...

thanks,
-- 
Felipe Monteiro de Carvalho

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2014-08-12 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12 10:49 Location of backup superblocks Felipe Monteiro de Carvalho
2014-08-12 16:42 ` Eric Sandeen
2014-08-12 16:52   ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox