From owner-freebsd-questions@FreeBSD.ORG Tue Feb 1 15:04:12 2005 Return-Path: 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 166C616A4CE for ; Tue, 1 Feb 2005 15:04:12 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2683543D2D for ; Tue, 1 Feb 2005 15:04:11 +0000 (GMT) (envelope-from rakhesh.s@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so872227wra for ; Tue, 01 Feb 2005 07:04:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=iPF0o2bGf4vJxDFXQoCjaiP2Q4DR88eH6504R5lYThxv4aG4gtepcl8NFc+p0/wXpqHE9n/zI7RKGwlnHI2cuZyPUmsCteK7/wOu9FVO8cwFJGdyOWKHeHuuBH0LEOaIcwqEGcAXvQS39PLn19dQ1yhdUIZKKqRtPlFQNQjZpxs= Received: by 10.54.33.23 with SMTP id g23mr22629wrg; Tue, 01 Feb 2005 07:04:07 -0800 (PST) Received: by 10.54.30.9 with HTTP; Tue, 1 Feb 2005 07:04:07 -0800 (PST) Message-ID: <38b3f6e40502010704292f0b6a@mail.gmail.com> Date: Tue, 1 Feb 2005 19:04:07 +0400 From: Rakhesh Sasidharan To: "Loren M. Lang" In-Reply-To: <20050201121049.GL8619@alzatex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <38b3f6e4050130033551e43818@mail.gmail.com> <38b3f6e4050130235957c049c2@mail.gmail.com> <41FDEFE7.1090204@freebsd.org> <38b3f6e40501310216de768e@mail.gmail.com> <20050131103523.GC8619@alzatex.com> <41FE17A7.3030006@freebsd.org> <38b3f6e4050131074327d2e583@mail.gmail.com> <41FE578F.60706@freebsd.org> <38b3f6e405013122047a2b8206@mail.gmail.com> <20050201121049.GL8619@alzatex.com> cc: freebsd-questions@freebsd.org cc: Mark Ovens Subject: Re: Booting FreeBSD-5.3 from NTLDR X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: rax@rakhesh.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 15:04:12 -0000 On Tue, 1 Feb 2005 04:10:49 -0800, Loren M. Lang wrote: > I think that you should be able to use boot0 and boot1 as a file once > the apropriate fields are filled in. When boot0 and boot1 are written > to the disk in their special locations, several bytes of each file are > modified to reflex various paramaters like which disk or partition they > should use. You should be able to extract them with dd and boot them > externally from my understanding of it. boot1 is normally written to > the first sector of the partitionthat freebsd is installed on, if that's > the first partition on ur second hard drive then: > > dd if=/dev/ad1s1 of=boot1.img count=1 > > will extract the file to boot1.img might NTLDR should be able to use. > > dd if=/dev/ad1 of=boot0.img count=1 Nopes. This too is something I had tried. Coz I figured if BootPart is simply extracting sectors from the FreeBSD slice, then either of the commands above should do the same trick! But nopes, that too gave me errors. This is what really got me stumped! :(( But hmm, now that I look at ur commands once again, I realize that I had also added an option like "bs=512". As in, what I used was ``dd if=/dev/ad1 of=boot0.img count=1 bs=512''. No specific reason for that extra option, just that that's what I used to extract the bootsectors for Fedora, and I figured its job is to extract just the first 512 bytes (and nothing else). Do you think "bs=512" could be what's making things go wrong for me? -- -- Rakhesh rax@rakhesh.com