LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 03-23-2009, 12:14 AM   #1
mistertylersmith
LQ Newbie
 
Registered: Feb 2009
Location: parents basement
Distribution: Ubuntu 9.04
Posts: 11

Rep: Reputation: 0
XP, Ubuntu, FreeBSD triple boot problem


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
 
Old 03-23-2009, 01:06 AM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
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.
 
Old 03-23-2009, 02:06 AM   #3
harry_uk
Member
 
Registered: Mar 2009
Posts: 36

Rep: Reputation: 16
Just to add to what he said, as an explanation, sda1 is 0 for grub and sda2 is 1 for grub, thats why he types hd0,1

root is the command to set the root partition for grub and asks it to mount it to read.

I really wish you take the time to read this:

http://www.troubleshooters.com/linux/grub/grub.htm

its worth.....
 
Old 03-23-2009, 05:04 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,642

Rep: Reputation: Disabled
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...
 
Old 03-27-2009, 01:33 AM   #5
mistertylersmith
LQ Newbie
 
Registered: Feb 2009
Location: parents basement
Distribution: Ubuntu 9.04
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 04-01-2009, 01:46 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,642

Rep: Reputation: Disabled
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
...
HTH.
 
Old 04-06-2009, 03:45 PM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
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:
Code:
title FreeBSD at sda4
root (hd0,3)
chainloader +1
 
Old 04-27-2009, 03:31 PM   #8
mistertylersmith
LQ Newbie
 
Registered: Feb 2009
Location: parents basement
Distribution: Ubuntu 9.04
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 04-27-2009, 06:13 PM   #9
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,483

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
Quote:
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:

title FreeBSD
root (hd0,3)
chainloader +1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Triple boot - XP, Fedora, Ubuntu Hertzy3 Linux - Software 4 08-08-2008 07:06 AM
Ubuntu+Solaris+Vista triple boot gokurab Ubuntu 1 04-23-2008 03:53 PM
Triple Boot Xp/Ubuntu/Suse laurentduprasboileau Suse/Novell 4 07-24-2007 08:29 PM
Triple boot with XP/Linux Ubuntu on hdd ... katy98 Linux - Newbie 6 10-11-2006 09:02 AM
Triple boot problem XP - Suse - Ubuntu eeenigma Linux - Distributions 5 07-10-2006 07:04 PM


All times are GMT -5. The time now is 05:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration