From owner-freebsd-stable@FreeBSD.ORG Fri Feb 6 15:05:15 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A805316A50F for ; Fri, 6 Feb 2004 15:05:14 -0800 (PST) Received: from smtp.covadmail.net (mx08.covadmail.net [63.65.120.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 3CA2C43D4C for ; Fri, 6 Feb 2004 15:05:11 -0800 (PST) (envelope-from strick@covad.net) Received: (covad.net 939 invoked from network); 6 Feb 2004 23:05:05 -0000 Received: from unknown (HELO mist.nodomain) (strick@covad.net@67.101.100.250) by sun-qmail02 with SMTP; 6 Feb 2004 23:05:05 -0000 Received: from mist.nodomain (localhost [127.0.0.1]) by mist.nodomain (8.12.9p2/8.12.9) with ESMTP id i16N54q3000841; Fri, 6 Feb 2004 15:05:04 -0800 (PST) (envelope-from dan@mist.nodomain) Received: (from dan@localhost) by mist.nodomain (8.12.9p2/8.12.9/Submit) id i16N54W2000840; Fri, 6 Feb 2004 15:05:04 -0800 (PST) (envelope-from dan) Date: Fri, 6 Feb 2004 15:05:04 -0800 (PST) From: Dan Strick Message-Id: <200402062305.i16N54W2000840@mist.nodomain> To: freebsd-stable@freebsd.org cc: basei@matrix.com.br cc: dan@mist.nodomain Subject: Re: FreeBSD BOOT X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 23:05:15 -0000 >> > Hi... i have the FreeBSD and Windows XP in my computer.... my the > windows had removed my FreeBSD boot ... > Anyone know how to boot in freebsd and restore the boot sector? No MBR!!! >> I assume you mean that you first installed FreeBSD in one disk slice (i.e. MBR partition) and then installed WinXP in another slice and after installing WinXP you discovered that your system always boots WinXP and doesn't offer you the option of booting FreeBSD instead. This is because the WinXP installation replaced the FreeBSD bootstrap program in the MBR sector of the disk drive. There is a messy way of configuring XP to give you the option of booting FreeBSD but it is easier to just reinstall the standard FreeBSD master bootstrap program. If you have (or can make) the live file system CD for a recent release of FreeBSD (from the file ...-i386-disc2.iso), boot the installation floppy or CD for that release, go into fixit mode using the live file system CD, and issue the command boot0cfg -B ad0 where "ad0" is the disk on which you installed both FreeBSD and WinXP. If you don't have the live file system CD, instead of going into fixit mode you can select the "custom installation" menu option and then select the menu option for allocating disk space for FreeBSD (i.e. the option for editing MBR partition tables). Select the disk drive on which you previously installed FreeBSD and WinXP. Verify that the MBR partition table that it fetches from the disk drive is correct and issue the undocumented "W" command. Then exit the installation procedure without doing an installation and reboot. Dan Strick strick@covad.net