From owner-freebsd-questions Thu Jan 30 23:12:57 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA08887 for questions-outgoing; Thu, 30 Jan 1997 23:12:57 -0800 (PST) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA08880 for ; Thu, 30 Jan 1997 23:12:50 -0800 (PST) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id IAA19990; Fri, 31 Jan 1997 08:12:54 +0100 (MET) Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.8.4/8.6.9) id IAA15260; Fri, 31 Jan 1997 08:15:04 +0100 (MET) From: Christoph Kukulies Message-Id: <199701310715.IAA15260@gilberto.physik.rwth-aachen.de> Subject: Re: how to fixit In-Reply-To: <9701310112.AA15407@fyeung8.netific.com> from Francis Yeung at "Jan 30, 97 05:12:59 pm" To: fyeung@fyeung8.netific.com (Francis Yeung) Date: Fri, 31 Jan 1997 08:15:04 +0100 (MET) Cc: questions@freebsd.org Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Greetings, > > During upgrade from 2.1.5 to 2.1.6, I made a dum mistake > in doing sync/sync/reboot after I merged my old /etc/ files into the > upgraded /etc directory instead of doing an exit. > > The disk partitions got yanked and the disk can not be booted > anymore because of invalid partition. > > Using the "fixit" floppy, "disklabel -r wd0" indicates that > the label is invalid. There is no vi in the "fixit" floppy. > > > What will be my best shot in recovering the disklabel (slices/ > partitions etc) ? Or anything from the disk. > > Thank you for your help. > > Francis I once had a similar problem and wrote a little program that scans the disk for disklabel entries resp. start of a filesystem. Running it over a disk gives the offset of possible former FS starting blocks. You can then dd skip=... if=/dev/rwd0a of=part1 coun=... and make a /dev/vn0 of that file. This requires to have the disk attached to another system where upi have plenty of space and would be difficult to do with a fixit.flp. If you want I can sent you this little program. It's a dirty hack though... > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de