From owner-freebsd-questions@FreeBSD.ORG Tue May 31 09:10:01 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 864BA16A41C for ; Tue, 31 May 2005 09:10:01 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from mail.efacilitas.de (efacilitas.de [213.133.110.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26E6143D4C for ; Tue, 31 May 2005 09:10:00 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-39-149.dynamic.qsc.de [212.202.39.149]) by mail.efacilitas.de (Postfix) with ESMTP id 18076123967; Tue, 31 May 2005 11:08:31 +0200 (CEST) Received: from localhost (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id 9699A12B12D; Tue, 31 May 2005 11:08:35 +0200 (CEST) Received: from eurystheus.local ([192.168.1.67]) by localhost (eurystheus.locaL [192.168.1.67]) (amavisd-new, port 10024) with ESMTP id 96402-03; Tue, 31 May 2005 11:08:30 +0200 (CEST) Received: from [192.168.1.67] (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id C523912B033; Tue, 31 May 2005 11:08:30 +0200 (CEST) Message-ID: <429C298E.1070306@cs.tu-berlin.de> Date: Tue, 31 May 2005 11:08:30 +0200 From: Bjoern Koenig User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050517 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD MailingLists References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at example.com Cc: questions Subject: Re: installing boot0 via dd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 09:10:01 -0000 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