From owner-freebsd-hackers Sat Dec 14 4:55:26 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91FB037B401 for ; Sat, 14 Dec 2002 04:55:25 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05FE643ED8 for ; Sat, 14 Dec 2002 04:55:24 -0800 (PST) (envelope-from andreas@klemm.apsfilter.org) Received: from srv1.cosmo-project.de (localhost [IPv6:::1]) by srv1.cosmo-project.de (8.12.5/8.12.5) with ESMTP id gBECtLqd075365 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 14 Dec 2002 13:55:21 +0100 (CET) (envelope-from andreas@klemm.apsfilter.org) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.12.5/8.12.5/Submit) with UUCP id gBECtKKq075364; Sat, 14 Dec 2002 13:55:21 +0100 (CET) (envelope-from andreas@klemm.apsfilter.org) Received: from titan.klemm.apsfilter.org (localhost.klemm.apsfilter.org [127.0.0.1]) by klemm.apsfilter.org (8.12.6/8.12.6) with ESMTP id gBECt0kd030474; Sat, 14 Dec 2002 13:55:11 +0100 (CET) (envelope-from andreas@titan.klemm.apsfilter.org) Received: (from andreas@localhost) by titan.klemm.apsfilter.org (8.12.6/8.12.6/Submit) id gBECsoNx029531; Sat, 14 Dec 2002 13:54:50 +0100 (CET) Date: Sat, 14 Dec 2002 13:54:50 +0100 From: Andreas Klemm To: Nate Lawson Cc: hackers@FreeBSD.ORG Subject: Re: Restoring superblock backup? Message-ID: <20021214125450.GA97486@titan.klemm.apsfilter.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 4.7-STABLE SMP X-Disclaimer: A free society is one where it is safe to be unpopular User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Dec 13, 2002 at 02:28:00PM -0800, Nate Lawson wrote: > I've successfully repaired a fs with the superblock backup at 32. Now how > do I copy that backup to the default superblock location? fsck_ffs does > NOT automatically do this. It does. With fsck -b 32 you use the alternate super block to repair the filesystem just in case the superblock in at the usual place is damaged. After that the filesystem is completely repaired ... Of course the previously damages superblock ... fsck does the same things only that you choosed the first copy of the superblock, that is always on block 32. The next copy depends on the size and geometry of the filesystem and is not so easy predictable like the "32" which is always present .... -- Andreas Klemm /\/\/\/\/\/\/\/\/\/\/\ http://www.64bits.de < Powered by FreeBSD > http://www.apsfilter.org/ \ www.FreeBSD.org / http://people.FreeBSD.ORG/~andreas \/\/\/\/\/\/\/\/\/\/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message