1825720 Members
3311 Online
109686 Solutions
New Discussion

Bad superblock

 
SOLVED
Go to solution
Jeremy Loukinas_1
Occasional Advisor

Bad superblock

hpserv220:/ # fsck /dev/vg06/rlvol4
** /dev/vg06/rlvol4
BAD SUPER BLOCK: MAGIC NUMBER WRONG
USE -b OPTION TO FSCK TO SPECIFY LOCATION OF AN ALTERNATE
SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(1M).
hpserv220:/ #

any suggestions how to resovle this? Running a standard fsck results in the above error. Where does HPUX store its alternate super block?

Jeremy
Sunadmin@jslracing.com

Unix good...windows baddd..
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Bad superblock

Hi,

What filesystem is this?. If it is vxfs, then try

fsck -F vxfs /dev/vg06/rlvol4.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Patrick Wallek
Honored Contributor

Re: Bad superblock

First off, I am assuming that this is an HFS filesystem since you got the above error.

From the 'man fsck_hfs' man page:

-b blocknum
Use the specified blocknum as the superblock for the file system. An alternate superblock can usually be found at block ((SBSIZE+BBSIZE)/DEV_BSIZE), typically block 16. DEV_BSIZE is defined in . You can also find a list of alternate superblocks in /var/adm/sbtab (see mkfs(1M)).

So try:

# fsck -b 16 /dev/vg06/rlvol4

If that doesn't work, have a look in /var/adm/sbtab for other alternate superblock locations to use with the '-b' option.
Dietmar Konermann
Honored Contributor

Re: Bad superblock

Are you sure that this isn't a VxFS? Maybe the fsck wrapper failed to recognize the fs type and accidently used the hfs fsck.

Check /etc/fstab for your fs type. If it's vxfs try:

fsck -F vxfs /dev/vg06/rlvol4

Otherwise (for hfs!) check /etc/sbtab for alternate hfs superblocks.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Paul Sperry
Honored Contributor

Re: Bad superblock

there is allways a spare superblock at 16
HFS?
try:

fsck -F hfs -b 16 dev/vg06/rlvol4
Martin Johnson
Honored Contributor

Re: Bad superblock

The list of alternate superblocks is in /var/adm/sbtab. Use "fsck_hfs -b" to specify the alternate superblock.


HTH
Marty