From owner-freebsd-current Fri Nov 29 15:51:15 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E279637B401 for ; Fri, 29 Nov 2002 15:51:13 -0800 (PST) Received: from beastie.mckusick.com (beastie.mckusick.com [209.31.233.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8394943EBE for ; Fri, 29 Nov 2002 15:51:13 -0800 (PST) (envelope-from mckusick@beastie.mckusick.com) Received: from beastie.mckusick.com (localhost [127.0.0.1]) by beastie.mckusick.com (8.12.3/8.12.3) with ESMTP id gATNpA59077643; Fri, 29 Nov 2002 15:51:11 -0800 (PST) (envelope-from mckusick@beastie.mckusick.com) Message-Id: <200211292351.gATNpA59077643@beastie.mckusick.com> To: Wesley Morgan Subject: Re: Trashed Disk Labels Cc: current@FreeBSD.ORG In-Reply-To: Your message of "Fri, 29 Nov 2002 14:53:06 EST." <20021129145155.I8411-100000@volatile.chemikals.org> Date: Fri, 29 Nov 2002 15:51:10 -0800 From: Kirk McKusick Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Date: Fri, 29 Nov 2002 14:53:06 -0500 (EST) From: Wesley Morgan To: Kirk McKusick cc: current@FreeBSD.ORG Subject: Re: Trashed Disk Labels X-ASK-Info: Confirmed by User On Fri, 29 Nov 2002, Kirk McKusick wrote: > I have had a report of a disk label getting trashed after booting > up to a kernel with the new UFS2 superblock format. I have just > checked in an update to ufs/ffs/ffs_vfsops.c (version 1.198) that > explicitly checks to make sure that it will not trash your disk > label. I highly recommend that you update to this version, even if > you are only running with UFS1 filesystems. > > Kirk McKusick Great! Any tools available to extract my var/db/pkg dirs from this image of my trashed UFS2 filesystem? :> What seems to work is to boot from CD-ROM, use disklabel -r -w auto to reinstall the default disklabel, then disklabel -B to put back the bootstrap. At that point your existing filesystems should all come back. This of course assumes that you used the orginal default partition sizes. If not, you will need to figure them out and edit up an appropriate disk label. Kirk McKusick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message