From owner-freebsd-questions Tue Apr 24 12:47: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from aragorn.neomedia.it (aragorn.neomedia.it [195.103.207.6]) by hub.freebsd.org (Postfix) with ESMTP id 9BE9537B424 for ; Tue, 24 Apr 2001 12:46:57 -0700 (PDT) (envelope-from bartequi@neomedia.it) Received: (from httpd@localhost) by aragorn.neomedia.it (8.10.1/8.10.1) id f3OJkpI07407; Tue, 24 Apr 2001 21:46:51 +0200 (CEST) To: "Scot W. Hetzel" Subject: Re: Restore Partition table Message-ID: <988141611.3ae5d82b2f4ff@webmail.neomedia.it> Date: Tue, 24 Apr 2001 21:46:51 +0200 (CEST) From: Salvo Bartolotta Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.4-cvs X-WebMail-Company: Neomedia s.a.s. X-Originating-IP: 62.98.154.242 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I figured out a way to recover the drive: > 1. You will need the following: > 1 spare hard drive (daX) (same model and size as the one your restoring > (daY)) > Information on the size of each partition (root, swap, var, usr) that > was on the drive (daY) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AFAIK, the "highlighted" information on FreeBSD partitions "root", "swap", "var" "usr" (or MS-DOS "subpartitions" if you like) lives in the FreeBSD slice^H^H^H^Hdisklabel; the FreeBSD bootstrap & disklabel live at the beginning of the FreeBSD slice, NOT in the MBR. ---------------------------------------- MASTER BOOT RECORD: Boot Code (MS-DOS) Partition Table (64 bytes; starting at byte 447) ---------------------------------------- Is a spare identical HD necessary? How about: *) backing up the disk MBR to a file (via dd); *) editing the partition table of the disk via fdisk iff (=if and only if) you have exact information on the FreeBSD slice in question. If you can by no means recover the MS-DOS partition table information, don't edit the partition table; just try gpart. Despite the warning in its man pages, gpart seems to do great guesswork^W^W a great job. Am I missing something? -- Salvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message