LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 02-11-2009, 08:39 PM   #1
parent's_basement
Member
 
Registered: Dec 2006
Location: Berkeley, CA. Over-priced apartment
Distribution: Debian/XFCE/Cinnamon
Posts: 121

Rep: Reputation: 17
FreeBSD in Grub


Hello,

I have two hard drives on my system. One has Debian and the other I just insstalled FreeBSD 7.1. My boot manager is Grub and I need to know how to create the entry for FreeBSD. I know the syntax is as shown below, but not sure about the "root" line. I've included the output from debian and fdisk.

Thanks,

ab


title FreeBSD 7.1- Release
root (hda,1)
savedefault
makeactive
chainloader +1

###################################################################

fdisk -l:

Disk /dev/hde: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0f8000b2

Device Boot Start End Blocks Id System
/dev/hde1 1 122 979933+ 83 Linux
/dev/hde2 123 487 2931862+ 82 Linux swap / Solaris
/dev/hde3 * 488 548 489982+ 83 Linux
/dev/hde4 549 9729 73746382+ 5 Extended
/dev/hde5 549 4195 29294496 83 Linux
/dev/hde6 4196 9058 39062016 83 Linux
/dev/hde7 9059 9484 3421813+ 83 Linux
/dev/hde8 9485 9729 1967931 83 Linux

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0f8004b1

Device Boot Start End Blocks Id System
/dev/hda1 1 4865 39078081 a5 FreeBSD

Last edited by parent's_basement; 02-11-2009 at 09:04 PM.
 
Old 02-11-2009, 10:04 PM   #2
parent's_basement
Member
 
Registered: Dec 2006
Location: Berkeley, CA. Over-priced apartment
Distribution: Debian/XFCE/Cinnamon
Posts: 121

Original Poster
Rep: Reputation: 17
Solved:

I used this in Debian grub:

title FreeBSD 7.1- Release
root (hd0,a)
kernel /boot/loader
savedefault
makeactive
chainloader +1


I actually reinstalled FreeBSD and made sure that in the first fdisk screen, I set the FreeBSD line as bootable and am now able to boot into FreeBSD. Probably didn't originally set it as bootable.

-pb
 
Old 02-12-2009, 03:49 AM   #3
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Nothing has to be marked bootable in the partition table for GRUB or LILO to boot it.
 
Old 02-12-2009, 09:51 AM   #4
parent's_basement
Member
 
Registered: Dec 2006
Location: Berkeley, CA. Over-priced apartment
Distribution: Debian/XFCE/Cinnamon
Posts: 121

Original Poster
Rep: Reputation: 17
Interesting. Why is "set bootable" option offered then?

Thanks,

pb
 
Old 02-20-2009, 01:57 AM   #5
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
The set bootable option is for the freebsd bootloader.
 
Old 02-20-2009, 05:47 AM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
The set bootable option is a generic flag that other bootloaders can use or not. The DOS bootloader it was written for does use it.
 
  


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 to see FreeBSD with Grub aquaboot *BSD 1 04-27-2008 10:56 PM
FreeBSD and GRUB danielanson *BSD 4 07-24-2005 12:04 PM
Grub Bootloader not seeing FreeBSD cmf5150 Linux - Newbie 3 01-29-2004 08:59 PM
GRUB can't boot FreeBSD 5.1 bhaskie *BSD 4 01-17-2004 03:31 PM
Booting FreeBSD from GRUB KungFuHamster *BSD 1 04-06-2003 03:06 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 12:57 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