From owner-freebsd-questions@FreeBSD.ORG Tue Apr 11 00:53:43 2006 Return-Path: X-Original-To: questions@freebsd.org 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 B770F16A400 for ; Tue, 11 Apr 2006 00:53:43 +0000 (UTC) (envelope-from djp@polands.org) Received: from corinth.polands.org (CPE-72-129-222-120.new.res.rr.com [72.129.222.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D42043D48 for ; Tue, 11 Apr 2006 00:53:42 +0000 (GMT) (envelope-from djp@polands.org) Received: from ammon.polands.org (ammon.polands.org [172.16.1.7]) by corinth.polands.org (8.13.4/8.13.4) with ESMTP id k3B0rff7083937; Mon, 10 Apr 2006 19:53:41 -0500 (CDT) (envelope-from djp@polands.org) Received: from ammon.polands.org (localhost [127.0.0.1]) by ammon.polands.org (8.13.4/8.13.4) with ESMTP id k3B0rf4i058046; Mon, 10 Apr 2006 19:53:41 -0500 (CDT) (envelope-from djp@ammon.polands.org) Received: (from djp@localhost) by ammon.polands.org (8.13.4/8.13.4/Submit) id k3B0rePj058045; Mon, 10 Apr 2006 19:53:40 -0500 (CDT) (envelope-from djp) Date: Mon, 10 Apr 2006 19:53:40 -0500 From: Doug Poland To: Huy Ton That Message-ID: <20060411005340.GA58019@polands.org> References: <20060410235508.GA742@polands.org> <1cac28080604101706p6946cad6ka0649e3750494020@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1cac28080604101706p6946cad6ka0649e3750494020@mail.gmail.com> User-Agent: Mutt/1.5.11 X-Virus-Scanned: ClamAV 0.87/1389/Mon Apr 10 07:58:55 2006 on corinth.polands.org X-Virus-Status: Clean Cc: questions@freebsd.org Subject: Re: Hosed my MBR? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 00:53:43 -0000 On Mon, Apr 10, 2006 at 08:06:11PM -0400, Huy Ton That wrote: > On 4/10/06, Doug Poland wrote: > > > > Hello, > > > > I'm in a bit of a mess here. I've got an Asus P4C800-E Deluxe > > motherboard with two on-board SATA RAID controllers, an Intel MatrixRAID > > (ICH5R) and Promise Fasttrak (PDC20378). My BIOS allows me to boot > > from either the Promise or the Intel controller. > > > > ... > > > > The problem is, now, when I attempt to boot off the Intel controller, I > > get a FreeBSD boot load failure: > > > > Invalid Partition > > Invalid Partition > > > > So it would seem I hosed my MBR. The question is, how did I do it and > > how do I fix it? I would think that when I choose to leave the MBR > > untouched in sysinstall, that it would do just that. > > > > I cannot use the old DOS boot floppy trick of: fdisk /MBR as DOS will > > not recognize my Intel controller. Windows installation media is > > equally clueless. I want to be very careful here so as not to render my > > entire system useless. A thought occurred to me that I might be able to > > get a MBR from another Windows box > > > > freesbie# dd if=/dev/ad0 of=/mnt/nfs/tmp/XP.mbr bs=512 count=79 > > hosedbox# dd if=/mnt/nfs/tmp/XP.mbr of=/dev/ar1 bs=512 count=79 > > > > and write that over my bad MBR. Does that make sense? Is there a > > "better" way? > > > > Boot off the WinXP disc & enter the repair utility (console). > > You can type 'help' for all the commands. > > There's a command called fixmbr; I think this is what you are looking for. > Now this is getting OT, but recovery console doesn't show my drive. How do I know that it will fix the "correct" MBR? Don't I have two MBR's? one on each controller? -- Regards, Doug