installing boot0 via dd

Bjoern Koenig bkoenig at cs.tu-berlin.de
Tue May 31 02:10:01 PDT 2005


FreeBSD MailingLists wrote:

> Here is what I am thinking...
> 1) go to a different freebsd box with boot0 already installed.
> 2) use dd to grab a image file of the MBR
> 3) boot into knoppix on the machine (i already have it installed on the HDD)
> 4) use dd to load the image file to the MBR
> 
> can someone tell me if the following commands are correct for grabbing
> and reloading the MBR?
> 1) on Freebsd:  dd if=/dev/ad0 of=boot0file bs=1b count=1
> 2) on knoppix:  dd if=boot0file of=/dev/hda bs=1b count=1

This might work, but keep in mind that you would destroy an existing 
partition table on the target hard disk. The loader program has only a 
size of 446 Bytes instead of 512 Bytes; the remaining 64+2 Bytes are for 
the partition table and the signature (0x55AA).

Björn


More information about the freebsd-questions mailing list