1829771 Members
6912 Online
109992 Solutions
New Discussion

Re: superblocks backup

 
Amit_68
Occasional Contributor

superblocks backup

where we can see backup of superblocks in Linux.Like we can see /var/adm/sbtab in HP-UX.
and while trying to run fsck it shows exception....bad superblock magic number in /dev/hda try fsck -b 1843.
2 REPLIES 2
Florian Heigl (new acc)
Honored Contributor

Re: superblocks backup

The superblock copies are spread over the filesystem.
to find them You will usually need information on the block size of the filesystem.

what happens if You try fsck -b 1843?

in the worst case You can use a loop to seek over the whole filesystem like (example!)

divide filesystem size through blocks
pos=0;while [ $fssize -ge $pos ];
do
fsck -n -b $pos /dev/vgdata/lvol01
done
yesterday I stood at the edge. Today I'm one step ahead.
Chakravarthi
Trusted Contributor

Re: superblocks backup