docs/86362: fsck_ffs(8): An alternate super block location for UFS2 is not mentioned.

KOMATSU Shinichiro koma2 at lovepeers.org
Tue Sep 20 06:40:02 UTC 2005


>Number:         86362
>Category:       docs
>Synopsis:       fsck_ffs(8): An alternate super block location for UFS2 is not mentioned.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 20 06:40:00 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     KOMATSU Shinichiro
>Release:        FreeBSD 5.4-RELEASE-p5 i386
>Organization:
>Environment:
FreeBSD 5.4-RELEASE-p5 i386

>Description:

According to fsck_ffs(8), alternate super block is located at block 32,
but this value is for UFS1 and 160 is the right value for UFS2.

>How-To-Repeat:

newfs(8) says super-block backup is locate at block 160 as follows:

# newfs /dev/md0
 /dev/md0: 100.0MB (204800 sectors) block size 16384, fragment size 2048
         using 4 cylinder groups of 25.02MB, 1601 blks, 3264 inodes.
 super-block backups (for fsck -b #) at:
  160, 51392, 102624, 153856

>Fix:

Index: fsck_ffs.8
===================================================================
RCS file: /home/ncvs/src/sbin/fsck_ffs/fsck_ffs.8,v
retrieving revision 1.31
diff -u -r1.31 fsck_ffs.8
--- fsck_ffs.8	2 Jul 2004 21:45:01 -0000	1.31
+++ fsck_ffs.8	20 Sep 2005 06:08:59 -0000
@@ -173,8 +173,8 @@
 .It Fl b
 Use the block specified immediately after the flag as
 the super block for the file system.
-Block 32 is usually
-an alternate super block.
+An alternate super block is usually located at block 32 for UFS1,
+and block 160 for UFS2.
 .It Fl c
 Convert the file system to the specified level.
 Note that the level of a file system can only be raised.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list