From owner-freebsd-current Wed Mar 5 12:13:12 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44C0D37B406 for ; Wed, 5 Mar 2003 12:13:10 -0800 (PST) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6920A43F93 for ; Wed, 5 Mar 2003 12:13:09 -0800 (PST) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP id MUA74016; Wed, 05 Mar 2003 12:13:07 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 63A8D5D04; Wed, 5 Mar 2003 12:13:07 -0800 (PST) To: Dimitar.Peikov@borg.de Cc: freebsd-current@freebsd.org Subject: Re: boot0cfg In-reply-to: Your message of "Wed, 05 Mar 2003 09:25:53 +0200." Date: Wed, 05 Mar 2003 12:13:07 -0800 From: "Kevin Oberman" Message-Id: <20030305201307.63A8D5D04@ptavv.es.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: Dimitar.Peikov@borg.de > Date: Wed, 5 Mar 2003 09:25:53 +0200 > Sender: owner-freebsd-current@FreeBSD.ORG > > > Last weekend I had to reinstall Windows XP on my PC and certainly I lost > boot manager. After booting from CD and mounting as root ad0 device, I > replaced boot0 record > using the following command line : > > # boot0cfg -Bv -s 1 -t 91 ad0 > > On my PC I have 14G Windows XP partition(primary partition), 7G Linux (2 > extended partitions) and 7G FreeBSD 5.0 - Current (primary partition). On > second disk I have Windows 98. > > After installing I see something like this : > > F1 - ??? > F3 - FreeBSD > F5 - Disk 2 > > It is strange that only F1 works (start Windows XP), while F3 play some > sound. Pressing F5 starts Windows XP, but it could be because Windows on > my second disk. > > Yes I know that there are other boot managers like GRUB, but it is another > beer. > > I haven't enough time to investigate where the problem is (boot0 code), > but this evening I should. The problem is that the boot block installed by default is limited to booting systems located in the first 1023 cylinders of the disk and XP is so big that the second partition is now often past that point. Any reasonably modern BIOS will support a slightly different boot record which can boot a partition anywhere on disk. The hitch is that this boot block will not work at all on some older systems. To use this more modern boot block, add '-o packet' to the boot0cfg command. This is in the man page, but the man page does not make it clear what the real significance of this option is. I think it should be referenced VERY clearly in the description section of the man page. For any system less than about 4 year old and may older systems, you really want to use this option. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message