Healing a Corrupted Superblock

From: Mahmoud Negm (Mahmoud.Negm@vodafone.com)
Date: Sun Mar 20 2005 - 06:01:45 EST


Dear,

If the superblock is corrupted the file system still can be repaired using
alternate superblock which are formed while making new file system .

the first alternate superblock number is 32 and others superblock numbers can
be found using the following command :

newfs -N <RAW_Device>

for example to run fsck using first alternate superblock following command is
used

fsck -F File_System -o b=32 <Raw_Device>

Best Regards,
Negm

-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org]On Behalf Of richard kumar
Sent: Friday, March 18, 2005 2:29 PM
To: sunmanagers@sunmanagers.org
Subject: Superblock error --scsi disk

Hi All,

       I guess my superblock is corrupted . can anyone know how to corect
this

# fsck -y
** /dev/rdsk/c0t1d0s0
** Currently Mounted on /
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups

FILE SYSTEM STATE IN SUPERBLOCK IS WRONG; FIX? yes

50317 files, 1131203 used, 357584 free (7192 frags, 43799 blocks, 0.4%
fragmentation)

FILE SYSTEM IS CURRENTLY MOUNTED. CONTINUE? yes

** /dev/rdsk/c0t1d0s7
** Currently Mounted on /export/home
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
81601 files, 12368018 used, 20612242 free (15354 frags, 2574611 blocks,
0.0% fragmentation)
** /dev/rdsk/c0t1d0s2
BAD SUPER BLOCK: MAGIC NUMBER WRONG
USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION;
eg. fsck [-F ufs] -o b=# [special ...]
where # is the alternate super block. SEE fsck_ufs(1M).
#

Regards
A.Richard

***********************************************
The content of this document is classified as Vodafone Egypt S.A.E.
Confidential and Proprietary Information.
The recipient hereby is committed to hold in strict confidence the contents of
this (e-mail, document, information) and not to disclose to any third party
without the prior written consent of Vodafone Egypt S.A.E. Recipient will be
held liable for any unauthorized disclosure.
If you have received this message in error, please notify the sender by return
e-mail and delete the message in its entirety, including any attachments.
***********************************************
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:23 EDT