From owner-freebsd-questions@FreeBSD.ORG Sat Jul 3 22:35:35 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 5C57F16A4CE for ; Sat, 3 Jul 2004 22:35:35 +0000 (GMT) Received: from outmx017.isp.belgacom.be (outmx017.isp.belgacom.be [195.238.2.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9072D43D41 for ; Sat, 3 Jul 2004 22:35:34 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx017.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i63MZPWM009929 for ; Sun, 4 Jul 2004 00:35:25 +0200 (envelope-from ) Received: from lori.mine.nu (184-28.244.81.adsl.skynet.be [81.244.28.184]) with ESMTP id i63MZIM8009873; Sun, 4 Jul 2004 00:35:18 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id 6789770A; Sun, 4 Jul 2004 00:02:34 +0200 (CEST) Date: Sun, 4 Jul 2004 00:02:34 +0200 From: Geert Hendrickx To: Bruce Hunter Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1088890534.32211.3.camel@solid.solisixoffice.com> User-Agent: Mutt/1.4.2i X-GPG-Key: http://www.win.ua.ac.be/~s005085/gnupgkey.txt X-GPG-Key-ID: 1024D/766C1E92 X-Accept-Language: nl,en cc: freebsd-questions@freebsd.org 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 22:35:35 -0000 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