LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2004, 07:31 PM   #1
cmf5150
LQ Newbie
 
Registered: Jul 2003
Location: Fairfield, NY
Distribution: Mac OS X, Red Hat/Fedora
Posts: 18

Rep: Reputation: 0
Question Grub Bootloader not seeing FreeBSD


I installed Fedora on my primary HD. So Fedora and it's Grub bootloader are on hda. I recently installed a second drive, hdb, and installed FreeBSD 4.9 on it. I just did a basic install and would not be opposed to wiping it and reinstalling FreeBSD. When I installed FreeBSD, at the section where it asks to install a bootloader, I chose to leave the master boot record untouched. I went through the install and rebooted. Grub came up and only Fedora showed up. Is there some way I can fix this? Can I modify something on the Fedora side, or do I need to reinstall FreeBSD?

 
Old 01-29-2004, 07:44 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
You just need to add the details of the FreeBSD install to the Grub menu file. For Fedora look under /etc/grub.conf or /etc/grubconf. These are actually just sim links too /boot/grub/menu.list

The lines you need to add to the botton of the file would be something like

#Booting FreeBSD
title FreeBSD
root (hd1,a)
kernel /boot/loader

This is assuming that FreeBSD main kernel and booting is on the first partition of the new disk.
 
Old 01-29-2004, 08:34 PM   #3
cmf5150
LQ Newbie
 
Registered: Jul 2003
Location: Fairfield, NY
Distribution: Mac OS X, Red Hat/Fedora
Posts: 18

Original Poster
Rep: Reputation: 0
Unhappy

Grub did not like (hd1,a)

I believe that the kernel & booting is on the first partition of the new disk, but I'm not too sure. I did all defaults during the FreeBSD install, which is either the first or second partition. Then again, I'm not 100% sure.

And the kernel /boot/loader line, is that what I enter in, or do I need to replace "boot" and "loader" with actual file names?
 
Old 01-29-2004, 08:59 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
I don't use FreeBSD myself, but /boot/loader Is supposed to be a file that already has the correct command line for kernel booting set as FreeBSD alters a lot.

instead of (hd1,a) try (hd1,0,a). BSD uses slices and partitions which can make it tricky to get right. You may be better off on the grub command line so you can find the right setting. In linux bring up a console and su to root. The simply type grub, it will take a while to load as it examines your disks, be patient.

When the grub promt appears type
root (hd1,0,a)
find /boot/loader

If this is the correct place it will find the loader if not, you can experiment with other roots till you get the right one. One you found it quit grub. and enter the correct root in your menu.list.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
FreeBSD bootloader? Matt Barnes *BSD 4 12-06-2004 06:34 PM
FreeBSD bootloader shahriar *BSD 9 02-14-2004 06:16 AM
A question concerning the FreeBSD Bootloader Seph64 *BSD 2 11-14-2003 04:24 PM
Install FreeBSD and bootloader thanhnx *BSD 5 03-17-2003 05:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration