Date: Tue, 31 May 2005 11:08:30 +0200 From: Bjoern Koenig <bkoenig@cs.tu-berlin.de> To: FreeBSD MailingLists <freebsd.ml@gmail.com> Cc: questions <freebsd-questions@freebsd.org> Subject: Re: installing boot0 via dd Message-ID: <429C298E.1070306@cs.tu-berlin.de> In-Reply-To: <ded8d717050531010831063f06@mail.gmail.com> References: <ded8d717050531010831063f06@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?429C298E.1070306>