From owner-freebsd-questions Mon Dec 16 22:36: 7 2002 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 87EE037B401 for ; Mon, 16 Dec 2002 22:36:04 -0800 (PST) Received: from motgate.mot.com (motgate.mot.com [129.188.136.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2487443EC2 for ; Mon, 16 Dec 2002 22:36:03 -0800 (PST) (envelope-from ajs@labs.mot.com) Received: from pobox.mot.com (pobox.mot.com [129.188.137.100]) by motgate.mot.com (Motorola/Motgate) with ESMTP id gBH6ZvPQ027786 for ; Mon, 16 Dec 2002 23:35:57 -0700 (MST) Received: [from il06exr02.mot.com (il06exr02.mot.com [129.188.137.132]) by pobox.mot.com (MOT-pobox 2.0) with ESMTP id XAA26702 for ; Mon, 16 Dec 2002 23:35:57 -0700 (MST)] Received: from pobox.cstl.labs.mot.com (pobox.cstl.labs.mot.com [173.23.1.1]) by il06exr02.mot.com (8.11.6/il06exr02) with ESMTP id gBH6Zrr22971 for ; Tue, 17 Dec 2002 00:35:53 -0600 Received: from labs.mot.com ([173.23.93.76]) by pobox.cstl.labs.mot.com (Netscape Messaging Server 4.15) with ESMTP id H793NV00.T24 for ; Tue, 17 Dec 2002 00:35:55 -0600 Message-ID: <3DFEC5C9.50204@labs.mot.com> Date: Tue, 17 Dec 2002 00:35:53 -0600 From: "Aron Silverton" Reply-To: ajs@labs.mot.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020918 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Subject: FreeBSD 4.7 + WinXP + GRUB problem Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I attempted to set up a notebook with a single drive to dual-boot and now I am having a problem booting into XP. Here's the story: I split a notebook's hard drive in half (10GB each half) and installed XP (NTFS) on the first parition. I installed FreeBSD 4.7-Release on the second half. I was originally unable to boot FreeBSD, but this was because I did not select a boot manager during the install phase. I went back into /stand/sysintall and installed the FreeBSD boot loader. Upon a reboot, I was presented with the F1 ?? F2 FreeBSD menu and was able to boot either OS without any problems. Yeah. I thought that it would be fun to try GRUB, so I did the following: 1. Built the GRUB port 2. Made the directory /boot/grub and moved the stage1, stage2, and *stage1_5 files there from /usr/local/share/grub/i386-freebsd 3. I created a menu.lst file under /boot/grub with the following in it: (only relevant sections shown) title FreeBSD root (hd0,1,a) kernel /boot/loader title WinXP root (hd0,0) makeactive chainloader +1 4. I created a GRUB boot floppy per the instructions in the manual, rebooted, and performed the following steps: grub> find /boot/grub/stage1 (hd0,1,a) grub> root (hd0,1,a) Filesystem type is ffs, partition type 0xa5 grub> setup (hd0,0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/ffs_stage1_5" exists... yes Running "embed /boot/grub/ffs_stage1_5 (hd0,0)... failed (this is not fatal) Running "embed /boot/grub/ffs_stage1_5 (hd0,1,a)... failed (this is not fatal) Running "install /boot/grub/stage1 (hd0,0) /boot/grub/stage2 p /boot/grub/menu.lst "... Succeeded Done. grub> reboot I wasn't sure what to think of the warnings, so I proceeded. After the reboot, I got the same F1, F2 menu that I started with. 5. I used my XP CD to repair the MBR thinking that it was the problem. I ran fixmbr and rebooted. Upon the reboot, I got the GRUB menu. Selecting the FreeBSD option worked fine, but selecting WinXP returned me to the menu. I was able to see a very quick error message saying, "Filesystem type unknown, partition type 0x7" before the menu was redrawn. 6. I rebooted using the GRUB boot floppy, and repeated step 4. This time, I substituted setup(hd0) for (hd0,0). Does that make a difference? I got the same behavior as before - FreeBSD boots, XP does not. I tried writing a new MBR once again, issuing commands from the GRUB prompt, changing root to rootnoverify in the WinXP commands. No good. Any suggestions as to where I went wrong and how I can get my WinXP install back or is it too late for me? If it is too late, should I be able to reinstall XP on the first partition and maintain my FreeBSD install on the second? Thanks, Aron -- Aron J. Silverton Senior Staff Research Engineer Motorola Laboratories, Networks and Infrastructure Research Motorola, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message