From owner-freebsd-questions@FreeBSD.ORG Wed May 30 02:47:39 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 567DE16A41F for ; Wed, 30 May 2007 02:47:39 +0000 (UTC) (envelope-from sacchi@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id C049513C447 for ; Wed, 30 May 2007 02:47:38 +0000 (UTC) (envelope-from sacchi@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so87775uge for ; Tue, 29 May 2007 19:47:37 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=LqGjCpGrpO9Sp2L78o94+RgmjVhg12oWIOiZnEu2kOIMm80G/JHrUgMQosqn6BkuneBQK3l6+zc7BwFIIwvG+YEBuKH75hUK3jzJSr8Li98SvLATzcw0uYWbEbSQh8Yt3+utuW8sHj2MbJ8tTrAJCQbn9TZNpShNFadtczRdC5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=KEt0D2nfJuyHsj8DpKcdm3j/h51VpqN5034H0JRC3XlrrXfzpwlGAmWgt1ve+zRXOfc7mZeoRIfGksFYbTAO76VvaVVeABqmRmwXfRTJhNshdjVygPY1g8yekV6aHsil0vxrUibxdERQNj84Y78N+AlYdf1goxsLFrxWpLRdfgA= Received: by 10.78.153.17 with SMTP id a17mr2133393hue.1180493257619; Tue, 29 May 2007 19:47:37 -0700 (PDT) Received: by 10.78.157.3 with HTTP; Tue, 29 May 2007 19:47:37 -0700 (PDT) Message-ID: Date: Wed, 30 May 2007 08:17:37 +0530 From: sac Sender: sacchi@gmail.com To: freebsd-questions@freebsd.org In-Reply-To: <20070530020933.GA22090@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45ABA6D0-A4FF-4C29-8709-7A1FD41D8DA5@suddenlink.net> <20070530020933.GA22090@dan.emsphone.com> X-Google-Sender-Auth: 73110bd4915793ca Cc: Richard Knebel Subject: Re: grub 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: Wed, 30 May 2007 02:47:39 -0000 On 5/30/07, Dan Nelson wrote: > In the last episode (May 29), Richard Knebel said: > > I had freebsd installed on my 1st hardrive withour difficuties. I > > then installed Debian Linux on my 2nd hard drive and the grub > > bootloader overwrote my mbr and now I can only boot debian. How can > > I get my freebsd back ? > > Assuming grub is functional, you might want to just keep it and add > another entry like this: > > title FreeBSD > root (hd1,1,a) > kernel /boot/loader > savedefault > > replacing (hd1,1,a) with whatever "find /boot/loader" at the grub CLI > returns. If your grub doesn't have UFS support, then the find and > kernel commands won't work, and you'll have to chainload to the FreeBSD > slice's bootblock instead of using the "kernel" command. > > If you really want booteasy back, boot into FreeBSD and run "boot0cfg > -B /dev/ad0" (or whatever your 1st hardrive's device is) > > -- > Dan Nelson > dnelson@allantgroup.com Boot into your linux box, edit /boot/grub/menu.lst And add the following lines: title FreeBSD root (hd0,1) # this changes based on where on the partition/drive the FreeBSD is installed. chainloader +1 savedefault run, # grub-install /dev/hda # sda if sata disk reboot. this should help to solve your problem