Finding Superblocks

Robert Locke lists at ralii.com
Wed Apr 26 14:46:45 UTC 2006


On Wed, 2006-04-26 at 15:59 +0200, Walter Mueller wrote:
> Brian D. McGrew writes:
> > When you do a newfs manually, you get a nice list of all the
> > superblocks, which I cheerfully save for every node I build.
> > 
> > However, when you do an install from the CD's and the volumes are
> > created fro you, there is no superblock list.  How would one go about
> > finding the backup superblocks on a disk???
> > 
> > :b!
> $ man mke2fs 
> ...
>        -n     causes  mke2fs  to not actually create a filesystem, but display
>               what it would do if it were to create a filesystem.  This can be
>               used  to  determine the location of the backup superblocks for a
>               particular filesystem, so long as  the  mke2fs  parameters  that
>               were  passed when the filesystem was originally created are used
>               again.  (With the -n option added, of course!)
> ...
> > 
> > Brian D. McGrew { brian at visionpro.com || brian at doubledimension.com }
> 
> -- 
> Walter Müller
> 

You can also use dumpe2fs to display the current superblocks....  Look
for lines that declare "Backup superblock"

--Rob





More information about the fedora-list mailing list