From owner-freebsd-fs@FreeBSD.ORG Mon May 26 07:30:53 2003 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F267F37B401 for ; Mon, 26 May 2003 07:30:52 -0700 (PDT) Received: from tinny.eis.net.au (tinny.eis.net.au [203.12.171.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC73A43F93 for ; Mon, 26 May 2003 07:30:51 -0700 (PDT) (envelope-from ernie@tinny.eis.net.au) Received: (from ernie@localhost) by tinny.eis.net.au (8.8.8/8.8.3) id AAA19596 for freebsd-fs@freebsd.org; Tue, 27 May 2003 00:30:42 +1000 (EST) From: Ernie Elu Message-Id: <200305261430.AAA19596@tinny.eis.net.au> To: freebsd-fs@freebsd.org Date: Tue, 27 May 2003 00:30:42 +1000 (EST) X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Superblock recovery from backup block 32 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 14:30:53 -0000 I have an IDE drive running FreeBSD 4.8-RELEASE that had a superblock corruption on the / partition as a result of a faulty motherboard. When I do an fsck_ffs -o -b 32 /dev/ad2s2a it passes all the scans. However after that fsck_ffs /dev/ad2s2a still fails: root # fsck_ffs /dev/ad2s2a ** /dev/ad2s2a Cannot find file system superblock /dev/ad2s2a: INCOMPLETE LABEL: type 4.2BSD fsize 0, frag 0, cpg 0, size 13211287 I did a fair bit of reading the archives and I thought that fsck is meant to replace the faulty superblock automatically when you specify an alternative with the -b flag, but that is not happening. Can anyone tell me how to replace the superblock with the copy at block 32 which still seems to be o.k?