Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.