Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 have XP and Ubuntu installed fine and I use Grub. I installed Free BSD on its own 150gig partition, install went fine but when I rebooted my comp it booted straight to FreeBSD skipped Grub and all... ideas?
-T
You need to rerun grub to get the menu back as the FreeBSD installer installed it's own boot information in the MBR overwriting grub stuff. Boot into a live session with the Ubuntu CD and get to a prompt. Type: sudo fdisk -l to get a list of partitions.
EXAMPLE (assuming you only have one drive):
If the Ubuntu / or /boot partition is /dev/sda2, run these four commands to reinstall grub in the MBR:
Code:
sudo grub
root (hd0,1)
setup (hd0)
quit
Grub counts from 0, the second partition is hd1 in grub dialect.
This is no guarantee that the BSD partition will be in the menu, but this should get your XP and Ubuntu back for now.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,588
Rep:
While you are fiddling with the boot loaders...
I use FreBSD 6.0 and its documentation explicitly states that one should use the FreeBSD boot loader and nothing else (because the interface (?) is prone to change or some such). So I installed the FreeBSD boot loader into /boot and chainload it from GRUB. Never had any problems with that. But I don't know about the latest version of FreeBSD...
Alright. I successfully installed freeBSD without messing up my xp/ubuntu grub configuration. My next step which I need help with is editing my grublist file to recognize freebsd. One thing tho, I used freeBSD's file structure.. does that matter?
heres how my partitions are set up
xp: sda1 ntfs
ubuntu:
/ sda2 ext3
sda3 extended
/home sda5 ext3 logical
swap sda6
freebsd: sda4 "unknown" flag=boot
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,588
Rep:
Okay, it was simply too long ago, I'm not really sure that the boot loader is in /boot or in the beginning of the slice. Here is my stanza from GRUB's menu.lst:
Code:
...
###Don't change this comment - YaST2 identifier: Original name: FreeBSD###
title FreeBSD 6.0
rootnoverify (hd0,2)
makeactive
chainloader (hd0,2)+1
...
Assuming you managed to put the BSD bootloader in the boot record of sda4 (the logical place for it), then you need to invoke it from GRUB using the (GRUB) chainloader command:
ok, so during the freebsd install process it asks you if you want to install 1) the freebsd boot manager 2) a standard boot manager or 3) no boot manager (leave the MBR alone). I installed using option #3. I already have XP and Ubuntu on their own partitions and am using grub located on the linux partition. Did I select the correct option (to not alter the MBR)? I have
Code:
title FreeBSD
root (hd0,3,a)
kernel /boot/loader
as my grub entry for fbsd, but I get an error that says it doesnt recognize the device.. is there something else I have to add to this?
thanks
T
I already have XP and Ubuntu on their own partitions and am using grub located on the linux partition. Did I select the correct option (to not alter the MBR)?
If you want to use Grub/Ubuntu bootloader it's correct.
Don't think the entry you have for BSD will work in Grub menu.lst. Try:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.