[ILUG-BOM] Restoring the filesystem from alternate
Sameer D. Sahasrabuddhe
Sat Dec 15 13:39:03 IST 2001
>take this for e.g. ( from: LINUX (UNIX) Unleashed, System Administrator's
>these are given as an e.g.
That is because the book assumes each block group consists of 8192 (2^13)
>-- None of these worked... what worked for me was 32768.
>Just installed Debian .. the second backup block for me starts @ 32768. Next
>is 65536. .. nothing in between.
That is because Debian apparently uses 65536 blocks (2^16) in each group. I
now remember I had used 65536 as the place for the alternate superblock on
my RHL machine back then ... it seems convenient to use, since it will work
for both, Debian machines as well as RHL. Point to note is that these are
all just default numbers - they can be different in case of custom
formatted filesystems. But using higher multiples will almost always work,
since they are likely to encompass even the filesystems with smaller block
group sizes ...
> >Vinay Pai wrote:
> >superblocks should be documented somewhere. If not, it shouldn't be too
> >hard to look at the source of mke2fs to determine it.
>that _might_ be possible... havent found any available program to
>determine the same. Would be interesting. Maybe we should have a go @
>writing such a program.... it could be useful.
Superblock positions solely depend on the size of the block group used,
which IIRC, can be specified as a commandline argument to mke2fs ... So its
basically just a matter of remembering the size that is reported at the
time of formatting, which, as Erle remarked, isn't something that we take
too seriously :-)
Reconfigurable Computing Lab,
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
More information about the Linuxers