From owner-freebsd-hackers Sat Feb 22 14:21:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA23038 for hackers-outgoing; Sat, 22 Feb 1997 14:21:42 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA23028 for ; Sat, 22 Feb 1997 14:21:31 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA06610; Sat, 22 Feb 1997 23:20:56 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id XAA00876; Sat, 22 Feb 1997 23:05:24 +0100 (MET) Message-ID: Date: Sat, 22 Feb 1997 23:05:24 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: rhh@ct.picker.com (Randall Hopper) Cc: hackers@FreeBSD.ORG Subject: Re: Help correcting corrupted disklabel References: <19970222153631.23537@ct.picker.com> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <19970222153631.23537@ct.picker.com>; from Randall Hopper on Feb 22, 1997 15:36:31 -0500 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Randall Hopper wrote: > Same deal when using wd1s3 instead. (Since they are probably the same.) > This is a sliced disk with FreeBSD on slices 3 and 4 (wd1a and wd1s3e). wd1s3e is slice 3. Are you sure wd1a is another slice? I doubt, but you didn't show us the fdisk output. > I know the partition offsets, so what's the safest way to go about diagnosing > and repairing the damage? Write an entry for /etc/disktab, and then disklabel -Brw wd1s3 > Does this indicate my bootblock is hosed? Or disklabel? The disklabel is embedded in the (BSD) bootblocks. The above command will rewrite them. Let's hope you didn't damage the filesystem structure itself, in this case, you should get away with the above. I'm not sure whether `disklabel auto' will work for sliced disks, if so, you can alternatively do: disklabel -Brw wd1s3 auto disklabel -e wd1s3 # edit partition info -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)