From owner-freebsd-questions@FreeBSD.ORG Sat Jul 3 23:08:18 2004 Return-Path: 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 EF90B16A4CE for ; Sat, 3 Jul 2004 23:08:18 +0000 (GMT) Received: from dime54.dizinc.com (dime54.dizinc.com [66.194.239.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D20D43D55 for ; Sat, 3 Jul 2004 23:08:18 +0000 (GMT) (envelope-from freebsd@solisix.com) Received: from c-67-172-98-39.client.comcast.net ([67.172.98.39] helo=[192.168.1.13]) by dime54.dizinc.com with esmtp (Exim 4.34) id 1BgtcG-0005JR-Sc; Sat, 03 Jul 2004 19:08:17 -0400 From: Bruce Hunter To: Geert Hendrickx , freebsd-questions@freebsd.org In-Reply-To: <20040703220234.GA2493@lori.mine.nu> References: <1088881267.32068.16.camel@solid.solisixoffice.com> <20040703201710.GA2228@lori.mine.nu> <1088890534.32211.3.camel@solid.solisixoffice.com> <20040703220234.GA2493@lori.mine.nu> Content-Type: text/plain Organization: Solisix Software Message-Id: <1088896068.670.1.camel@solid.solisixoffice.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 03 Jul 2004 19:07:49 -0400 Content-Transfer-Encoding: 7bit X-PopBeforeSMTPSenders: bhunter@solisix.com,freebsd@solisix.com X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - dime54.dizinc.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - solisix.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: Grub installation from the ports collection vs. Freebsd boot loader X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2004 23:08:19 -0000 On Sat, 2004-07-03 at 18:02, Geert Hendrickx wrote: > On Sat, Jul 03, 2004 at 05:35:35PM -0400, Bruce Hunter wrote: > > On Sat, 2004-07-03 at 16:17, Geert Hendrickx wrote: > > > > title FreeBSD 5.2.1 > > > > root (hd0,2,a) > > > > kernel /boot/loader > > > > > > Sorry, this should be (hd0,1,a) ! The first slice (windows) is (hd0,0) > > > and the second is (hd0,1), and you want the root-partition within that > > > (hd0,1,a). > > > > > > GH > > > _______________________________________________ > > > > > > I have read a few instructions from info grub. I am a little confuzed. > > There are so many different ways to do this. One way is grub-install > > /dev/hd0 or stages. > > > > except hd0 is not a device under freebsd. I am trying to install it to > > the mbr. At least I think that's where I should install it. > > > > i believe ad0s1 is windows and ad0s2 is freebsd > > ----------------------------------------------------------------------- > > flipnode@solid# grub-install /dev/ad0/ > > Probing devices to guess BIOS drives. This may take a long time. > > /dev/ad0/: Not found or not a block device. > > flipnode@solid# grub-install /dev/hd0 > > /dev/hd0: Not found or not a block device. > > flipnode@solid# grub-install /dev/ad0 > > /dev/ad0 does not have any corresponding BIOS drive. > > flipnode@solid# grub-install /dev/ad0s1 > > /dev/ad0s1 does not have any corresponding BIOS drive. > > flipnode@solid# grub-install /dev/ad0s1 > > /dev/ad0s1 does not have any corresponding BIOS drive. > > flipnode@solid# grub-install /dev/ad0s2 > > /dev/ad0s2 does not have any corresponding BIOS drive. > > > > ---------------------------------------------------------------------- > > just a little confuzed.. :o/ > > > > Bruce > > > > The easiest way (in my opinion) to install Grub is with the interactive > tool. Just run "grub" from the commandline, and you'll be dropped in > the same interactive environment you will enter upon booting when you > have no grub.conf (or grub cannot find it). The commands you can enter > here, are the same as in the grub.conf. > > The first thing you have to do is copy the stagefiles from > /usr/local/share/grub/i386-freebsd/ to a directory called /boot in > either of your partitions (Grub can read many filesystems, including > UFS, FAT and NTFS). Also put your grub.conf in that directory. Then > start "grub" from the commandline, so you'll get the Grub-prompt. > If your boot-directory is on your Windows-drive (C:\BOOT), then you must > enter "root (hd0,0)" (the Windows-slice), if it is on FreeBSD, then use > "root (hd0,1,a)" (your root-partition on FreeBSD). Grub will then check > if the necessary files are there, and tell you if not. > > If the files are indeed there, you can install the stage1 into the MBR > with "setup (hd0)". Stage1 is just a pointer to stage2 (which actually > contains Grub), but that one is too big to fit inside the MBR, so it > must be on one of your filesystems (in the /boot directory, so that the > stage1 can find it). > > You could also install Grub into a partition (e.g. "setup (hd0,1)"), but > that way Grub will not show up at boot, only when you explicitly > chainload that partition (using another bootloader e.g. FreeBSD's). > > P.S. 1: the grub.conf file is completely optional, so Grub will not > complain if it's not there, you will simply be dropped at the Grub- > commandline at your next reboot. There you could enter the exact same > commands as in the config-file, e.g. "root (hd0,1,a)" and "kernel > /boot/loader" to boot FreeBSD. But you'll have to confirm with the > command "boot". > > P.S. 2: The Grub-commandline provides tab-completion for both devices > and files. So, to see all your partitions (and their filesystem-types), > you could enter ( + Tab. > > GH Thanks for the help, I think I will be able to get it working now, after that information. The only question I have or comment is. Shouldn't I have the stages and grub.conf in /boot/grub ? You said /boot. Just wondering which it is. Thanks again.. Bruce