From owner-freebsd-current Wed Nov 27 23:53:37 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 7603237B401 for ; Wed, 27 Nov 2002 23:53:35 -0800 (PST) Received: from beastie.mckusick.com (beastie.mckusick.com [209.31.233.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1F8343E4A for ; Wed, 27 Nov 2002 23:53:34 -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 gAS7rX59074517; Wed, 27 Nov 2002 23:53:33 -0800 (PST) (envelope-from mckusick@beastie.mckusick.com) Message-Id: <200211280753.gAS7rX59074517@beastie.mckusick.com> To: Daniel Flickinger Subject: Re: UFS-2 partition destroyed by change Cc: FreeBSD-CURRENT In-Reply-To: Your message of "Thu, 28 Nov 2002 06:01:36 GMT." <20021128060136.znoK8944@hun.org> Date: Wed, 27 Nov 2002 23:53:33 -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 If I understand correctly, you ran a new fsck on a UFS-2 that had not yet been mounted by your new kernel. Thus you had a version of fsck that expected a converted UFS-2 filesystem that you had not yet converted (by mounting with the new kernel). I would have expected it to fail with a bad superblock magic number. Had you mounted it before running the new fsck, all would have been well. I am at a loss to explain why fsck did not gag and refuse to check it though. Kirk McKusick =-=-=-=-= Date: Thu, 28 Nov 2002 06:01:36 +0000 (GMT) From: Daniel Flickinger To: FreeBSD-CURRENT Cc: Kirk McKusick Subject: UFS-2 partition destroyed by change X-ASK-Info: Confirmed by User I only had one UFS-2 partition, the backup root partition on da1a. After McKusick's notice of change: Message-ID: <200211250511.gAP5BU59067794@beastie.mckusick.com> for 26 Nov, I installed the kernel and world sliced at 1200 GMT 27 Nov. As a matter of principle, I _always_ run fsck -y from single user at reboot of a new world (which means every day now) even though I have not had a crash --pardon me for too many years of BSD, but habits stick da1a was shredded; only lost+found: p1:da1a #535-> ll lost+found/ total 8 0 br-xrw--wT 1 root wheel 0, 0 Jan 1 1970 #00455 0 br-xrw--wT 1 root wheel 0, 0 Jan 1 1970 #00561 0 br-xr-xr-x 1 root wheel 0, 0 Jan 1 1970 #00813 0 br-xr-x--t 1 root wheel 0, 0 Jan 1 1970 #00865 8 d-wSr-x--T 2 root wheel 8192 Jan 1 1970 #01031 The directory is empty. No pipers for Last Post, but a rather good sendoff of 80MB to bit heaven. No other partition even whimpered.... and nothing really lost since it was a duplicate of da0a. I was about to convert the remaining 9 partitions to UFS-2 when I read Kirk's notice and decided to wait. I'll rebuild the da1a partition with UFS-2 (new and improved version?) and see what happens tomorrow morning with the 1200 GMT 28 Nov slice. If I do a 'disklabel -B da1' (I have a pair of dangerously dedicated 9G 160 SCSIs), I presume that /boot/mbr is now the correct "new" UFS-2 boot record? My intention is to convert all parititions one-by-one, except da0a, to UFS-2, and then 'boot -s' from da1 and 'dd' da0a since the disks are siamese twins. -- Sanity is the Playground for the Unimaginative To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message