From owner-freebsd-questions@FreeBSD.ORG Wed Feb 2 09:48:51 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 88EA616A4CE; Wed, 2 Feb 2005 09:48:51 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2686A43D39; Wed, 2 Feb 2005 09:48:50 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j129ml8G018431 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Feb 2005 01:48:48 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j129mlJY018429; Wed, 2 Feb 2005 01:48:47 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Wed, 2 Feb 2005 01:48:47 -0800 From: "Loren M. Lang" To: rax@rakhesh.com Message-ID: <20050202094847.GP8619@alzatex.com> References: <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> <38b3f6e40502010704292f0b6a@mail.gmail.com> <38b3f6e405020107327b94bfd3@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <38b3f6e405020107327b94bfd3@mail.gmail.com> User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: "Loren M. Lang" 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 09:48:51 -0000 On Tue, Feb 01, 2005 at 07:32:07PM +0400, Rakhesh Sasidharan wrote: > On Tue, 1 Feb 2005 19:04:07 +0400, Rakhesh Sasidharan > wrote: > > 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 > > I just tried these again. Same results as when I had used the "bs=512" > option. Extracting "boot0.img" gets me back to the NTLDR screen; > extracting "boot1.img" gives me a "Boot Error" message. > > But what you said above gave me an idea. Possibly BootPart modifies > the extracted bootsectors specially, changing the special parameters > to enable booting of the second disk from the first? Its a thought ... > maybe the way these files are written to the disk (from where dd > extracts them), the special parameters are not such that they can be > booted from the first disk. But when BootPart extracts the sectors, it > modifies these parameters, enabling the booting. What say? bs=512 is the default. The typical sector size of disk drive is 512 bytes. This is so engrained right now that even flash memory sticks have to emulate 512 byte sectors when there is nothing that actually mandates that for flash chips. Unless BootPart specifically know about how the freebsd boot loaders work and how to reconize them, I doubt that it's modifying those parameters. Now the last 66 bytes of the MBR stores the partition table of the hard drive, it's possible that BootPart might try to modify that as it's not part of the boot loader, but the boot loader uses that information. > > -- > -- Rakhesh > rax@rakhesh.com -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C