From owner-freebsd-hackers Sun Dec 15 0:45:34 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 DA57937B401 for ; Sun, 15 Dec 2002 00:45:32 -0800 (PST) Received: from grsu.by (grsu.by [194.158.202.115]) by mx1.FreeBSD.org (Postfix) with SMTP id 210B343E4A for ; Sun, 15 Dec 2002 00:45:31 -0800 (PST) (envelope-from grog@grsu.by) Received: (qmail 39703 invoked from network); 15 Dec 2002 08:42:09 -0000 Received: from unknown (HELO grsu.by) (grog@195.50.13.200) by grsu.by with SMTP; 15 Dec 2002 08:42:09 -0000 Message-ID: <3DFB9DB0.1020708@grsu.by> Date: Sat, 14 Dec 2002 23:08:00 +0200 From: Yury Tarasievich User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20020829 X-Accept-Language: be, en MIME-Version: 1.0 To: freebsd-hackers Subject: Re: Restoring superblock backup? References: <20021214125450.GA97486@titan.klemm.apsfilter.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Andreas Klemm wrote: >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 .... > > If FS boundaries are right, one can always try newfs -N, then fsck with -b. I tried this once and succeeded using superblock copy being really more distant from FS start. > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message