Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 21:46:51 +0200 (CEST)
From:      Salvo Bartolotta <bartequi@neomedia.it>
To:        "Scot W. Hetzel" <hetzels@westbend.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Restore Partition table
Message-ID:  <988141611.3ae5d82b2f4ff@webmail.neomedia.it>

next in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?988141611.3ae5d82b2f4ff>