1753735 Members
4440 Online
108799 Solutions
New Discussion юеВ

Re: fsck

 
Neo_16
New Member

fsck

Why does my 'fsck' command not have the '-b' option
4 REPLIES 4

Re: fsck

Neo,

The "-b" option to 'fsck' is only valid for HFS filesystems. Most of the filesystems on recent HP-UX systems are VxFS, and fsck automatically searches for alternate superblocks when they are needed...

See 'man fsck_hfs' and 'man fsck_vxfs' for more details...

BTW - if you are seeing a message indicating that 'fsck' can't read the superblock, make sure that the VG in question is activated using 'vgdisplay /dev/VG'...

Steve Hamilton
Neo_16
New Member

Re: fsck

Are there any patches that enable the '-b' option ?

Re: fsck

It's there, but only for HFS filesystems...

The 'fstyp /dev/vgXX/lvolYY' command will show you what type of filesystem is on the Logical Volume in question...

If it's not "hfs", you cannot use a "-b" option...

HTH

Steve Hamilton
Bill Hassell
Honored Contributor

Re: fsck

The -b option is available on your version of fsck. See the option at:

man fsck_hfs

There is no such option for a VxFS filesystem as the directory structure is not similar at all. NOTE: -b is often requested in case the first superblock has been corrupted but fsck can only fix wrong data elements, and cannot fix bad disk areas (I/O errors). fsck simply fixes incorrect entries. You need mirroring or a new disk to fix bad spots on the disk.


Bill Hassell, sysadmin