From owner-freebsd-questions@FreeBSD.ORG Sat Sep 30 21:41:50 2006 Return-Path: X-Original-To: freebsd-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 DC76016A403 for ; Sat, 30 Sep 2006 21:41:50 +0000 (UTC) (envelope-from backyard1454-bsd@yahoo.com) Received: from web83110.mail.mud.yahoo.com (web83110.mail.mud.yahoo.com [216.252.101.39]) by mx1.FreeBSD.org (Postfix) with SMTP id 24A2943D46 for ; Sat, 30 Sep 2006 21:41:50 +0000 (GMT) (envelope-from backyard1454-bsd@yahoo.com) Received: (qmail 43210 invoked by uid 60001); 30 Sep 2006 21:41:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AgHYVF4Sa7ueRTk0GuS/d5/RXA2I3WKtxlJsKnSsceuhLlhLwShTf6H0sCKNs/K99TVX8drKiq6A2xmzmnhc+BxCHdziWNZwr1TJSppgqqLyEsABXQdMeKsuHV4YggY72Qbjagvb7ahHJPGNxgX23Se4DqyXL2ScVqJ4SqhKze8= ; Message-ID: <20060930214149.43208.qmail@web83110.mail.mud.yahoo.com> Received: from [75.11.9.227] by web83110.mail.mud.yahoo.com via HTTP; Sat, 30 Sep 2006 14:41:49 PDT Date: Sat, 30 Sep 2006 14:41:49 -0700 (PDT) From: backyard To: freebsd-questions@freebsd.org In-Reply-To: <89ce7f740609301355q6da91573r34d2f266c52119b9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Restoring FreeBSD grub loader X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: backyard1454-bsd@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Sep 2006 21:41:50 -0000 --- "Ivan \"Rambius\" Ivanov" wrote: > Hello, > > I installed FreeBSD 6.1 on one machine with grub > boot loader. In the > beginning there was only one entry in grub - namely > FreeBSD. Later, I > had to install Windows XP on the machine and of > course, it destroyed > grub and now I cannot boot FreeBSD. > > I tried with booting from the FreeBSD installation > disk choosing Fixit > option, but I could not use successfully > grub-install command. > > My question is: how can I restore the FreeBSD grub > loader? Could you > please give me any hints or advance. Thank you very > much in advance. > > Regards > Ivan > > -- I would suggest you make a grub booting floppy disk then you can escape to command mode once the disk loades and install grub with root (hd0,0,a) # or wherever it is setup (hd0 # again wherever it is assuming you have already placed the grub bootfiles on your hard drive and configured menu.lst you should be all set. I have only encountered one computer this method failed. you could alternatively flip the kernel tunable that allows raw writes to the boot sectors of the disks. I don't recall what it is but I think the grub docs talk about it in the man or info pages. I'm supprised XP messed it up, 2000 seemed to respect existing bootloaders... -brian