Date: Tue, 20 Sep 2005 15:31:00 +0900 (JST) From: KOMATSU Shinichiro <koma2@lovepeers.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/86362: fsck_ffs(8): An alternate super block location for UFS2 is not mentioned. Message-ID: <20050920063100.9C5BB114BA@koma2-45.wins.timedia.co.jp> Resent-Message-ID: <200509200640.j8K6e1wh081806@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050920063100.9C5BB114BA>