From owner-freebsd-questions@FreeBSD.ORG Tue Apr 11 00:06:13 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 A54C616A400 for ; Tue, 11 Apr 2006 00:06:13 +0000 (UTC) (envelope-from huyslogic@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED00E43D46 for ; Tue, 11 Apr 2006 00:06:12 +0000 (GMT) (envelope-from huyslogic@gmail.com) Received: by uproxy.gmail.com with SMTP id m3so688842ugc for ; Mon, 10 Apr 2006 17:06:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=cgpXt7RhPx8gg3g8qVHTvLz2/w0+7eUBZm1VVgjxwjWy4SYxX9JrAQybJeZcXD6L6kWETQJl82NvveLCFRaa4Bg5Mlx8EwcALM8wKIImxfvEb/JRLqcxtXvF2xdMgwPvv80VzGPDgtZf6JqbTAvnHgZRqDGhNC9kkLTUGbeiyK0= Received: by 10.78.18.3 with SMTP id 3mr91674hur; Mon, 10 Apr 2006 17:06:11 -0700 (PDT) Received: by 10.78.31.20 with HTTP; Mon, 10 Apr 2006 17:06:11 -0700 (PDT) Message-ID: <1cac28080604101706p6946cad6ka0649e3750494020@mail.gmail.com> Date: Mon, 10 Apr 2006 20:06:11 -0400 From: "Huy Ton That" To: "Doug Poland" In-Reply-To: <20060410235508.GA742@polands.org> MIME-Version: 1.0 References: <20060410235508.GA742@polands.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:06:13 -0000 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. 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 PDC20378 runs two drives in a RAID0 configuration booting FreeBSD > 6.0-STABLE. The entire drive (ar0) is dedicated to FreeBSD and I have > the boot-manager installed. The ICH5R also runs two drives in a > RAID0 for Windows XP. I allocated roughly 25% of the drive (ar1) to > Windows NTFS (ar1s1) and left the remaining disk open. > > Now that 6.x supports the ICH5R I decided to use the leftover disk (ar1) > for a FreeBSD slice. I used sysinstall's fdisk to create the slice in > the unused portion of the disk. I successfully committed the changes. I > then used # newfs /dev/ar1s2 to create a file-system and it went fine. > > The problem is, now, when I attempt to boot off the Intel controller, I > get a FreeBSD boot load failure: > > --- > > Invalid Partition > Invalid Partition > > No /boot/loader > > FreeBSD/i386 boot > Default: 0:ad(0,a)/boot/kernel/kernel > boot: > > Invalid partition > No /boot/kernel/kernel > > FreeBSD/i386 boot > Default: 0:ad(0,a)/boot/kernel/kernel > boot: > > --- > > 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=3D/dev/ad0 of=3D/mnt/nfs/tmp/XP.mbr bs=3D512 count=3D7= 9 > hosedbox# dd if=3D/mnt/nfs/tmp/XP.mbr of=3D/dev/ar1 bs=3D512 count=3D7= 9 > > and write that over my bad MBR. Does that make sense? Is there a > "better" way? > > > -- > Regards, > Doug > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >