From owner-freebsd-questions@FreeBSD.ORG Tue Feb 1 06:04:16 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 49B0216A4CF for ; Tue, 1 Feb 2005 06:04:16 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C40F43D46 for ; Tue, 1 Feb 2005 06:04:14 +0000 (GMT) (envelope-from rakhesh.s@gmail.com) Received: by wproxy.gmail.com with SMTP id 68so36170wri for ; Mon, 31 Jan 2005 22:04:12 -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=JdAHL0VA+44IBzz3zgSR09Z4XlZuTYdcLaxvQglbGdZojCrw8fCNs+jqNApMNwLIEcyXtdiqf3l7r5tFinOyvghLgalNPBObmPyqmiXkaq8SPSiJ6BToOFEGoDVZVH3CgQotva71dJe9xzzpPqVsAkL7gd5eMMNbcOzK4iI7dqk= Received: by 10.54.31.62 with SMTP id e62mr241168wre; Mon, 31 Jan 2005 22:04:12 -0800 (PST) Received: by 10.54.30.9 with HTTP; Mon, 31 Jan 2005 22:04:12 -0800 (PST) Message-ID: <38b3f6e405013122047a2b8206@mail.gmail.com> Date: Tue, 1 Feb 2005 10:04:12 +0400 From: Rakhesh Sasidharan To: Mark Ovens In-Reply-To: <41FE578F.60706@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <38b3f6e40501292247696b96b@mail.gmail.com> <38b3f6e4050130033551e43818@mail.gmail.com> <20050130120618.GA21695@alzatex.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> cc: freebsd-questions@freebsd.org 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 06:04:16 -0000 On Mon, 31 Jan 2005 16:06:39 +0000, Mark Ovens wrote: > Hehe! I did it the hard way; I manually recreated the partition table - > 3 partitions! In fact.....[roots around in drawer]......yes, still got > the printout of the spreadsheet I used to calculated the start and end > CHS values - don't know why, the disk was replaced ages ago :-) Hehe! How did u manually recreate the partition table? U had the sizes and sectors etc stored somewhere? On my previous machine, I used to have fdisk listings of all my disks as a printout -- coz I've done this kind of goofups many a times, and so usually have been careful to keep a listing of the sector values etc. But this time, I was on my parents' machine, and since I hadn't really started using it big time, I was careless enough not to take a precaution like this. (But I guess I was not thaaat careless enough to not take backups either, hehe!) I was lucky to find this demo program called Active Partition UnEraser or something. Being demo, it would only show me the starting and ending sectors of all the partitions -- but that was fine with me coz once I got those values, it was just a matter of noting them down and then booting into Linux (coz that's what I had apart from FreeBSD) and recreating the tables using its fdisk program. :)) > IRCC, boot0 is the MBR and boot1 is the boot sector (of the FreeBSD > partition (slice)) and they only ontain info about the local disk, i.e. > _relative_ info in effect, so if FreeBSD is on your second disk and you > copy boot1 to C:\BOOTSECT.BSD and add an entry for it in BOOT.INI then > NTLDR has know way of knowing that it refers to the second HDD and so > can't boot because the info doesn't match the layout of the first HDD. > Remember boot0 and boot1 are restricted to 512bytes - one sector. That > is the reason as far as remember. Oh yeah ... doh! Silly me! Ofcourse boot1 contains the info relative to the FreeBSD disk, so copying it across to C:\BOOTSECT.BSD wont help! Silly me! :)) So that's why copying boot1 and loader didn't help -- coz they were all relative to the FreeBSD disk. And copying boot0 too didnt help coz of the MBR re-writing thingy. :p What magic does BootPart do, I still wonder! I mean, if its just extracting the bootsectors as the program says, then an alternative way of extracting (like "dd" etc) too should work! But they dont -- meaning, BootPart does more than just extracting, I guess. -- -- Rakhesh rax@rakhesh.com