Date: Sat, 03 Jul 2004 19:07:49 -0400 From: Bruce Hunter <freebsd@solisix.com> To: Geert Hendrickx <geert.hendrickx@ua.ac.be>, freebsd-questions@freebsd.org Subject: Re: Grub installation from the ports collection vs. Freebsd boot loader Message-ID: <1088896068.670.1.camel@solid.solisixoffice.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1088896068.670.1.camel>