From owner-freebsd-hackers Sun Dec 15 1:14:13 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 7554637B401 for ; Sun, 15 Dec 2002 01:14:12 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id BF25E43E4A for ; Sun, 15 Dec 2002 01:14:11 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 43407 invoked by uid 1000); 15 Dec 2002 09:14:14 -0000 Date: Sun, 15 Dec 2002 01:14:14 -0800 (PST) From: Nate Lawson To: Yury Tarasievich Cc: freebsd-hackers Subject: Re: Restoring superblock backup? In-Reply-To: <3DFB9DB0.1020708@grsu.by> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Sat, 14 Dec 2002, Yury Tarasievich 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. > > 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. I appreciate the help but you're both answering the wrong question. Go re-read my question above again. The current workaround (as given by mckusick@) is: --- > It used to be that when you ran with an alternate superblock, the > last question asked by fsck is whether you wish to update the > standard superblock. Answering yes would do that update for you. > As it appears that that feature got dropped, you can do the copy > manually using: > > dd if= skip=32 of= seek=16 bs=512 count=16 --- -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message