Results 1 to 7 of 7
I know people have asked this numerous times before, but I can't find the posts, even with the search page. It never works for me. Oh well. Lock this then.
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-09-2005 #1Linux Enthusiast
- Join Date
- Aug 2005
- Posts
- 542
Dual-Booting FreeBSD with Linux
I know people have asked this numerous times before, but I can't find the posts, even with the search page. It never works for me. Oh well. Lock this then.
Anyway. I need to know how to make GRUB see FreeBSD 4.11 and boot to it so I can have the option to boot to either Linux, FreeBSD, or Windows. I've tried this before but it never works: either the entry doesn't show up at all or the entry shows up but I get a funky error from BSD. I'm sure somebody out there has gotten this to work. Explain as much as possible as I'm kinda clumsy when editing read-only configuration files. I've looked at the GRUB documentation but can't quite figure it out.
- 10-09-2005 #2Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
Tip: google "grub freebsd"
this is the first hit:
http://geodsoft.com/howto/dualboot/grub.htm#freebsd
So you change the "hdx,x" part to suit your freebsd partition in grub language. The "a" is used to indicate the root partition in the freebsd "slice". Simply add this to your existing menu.lst, which I assume allready has a windows and linux entry.
- 10-09-2005 #3
I also run FreeBSD 4.11, but it's on a different box than my SuSE box.
What grub entries have you tried for FreeBSD so far? The grub manual says:
http://www.gnu.org/software/grub/man...e/FreeBSD.html
I am presuming that hd0,a refers to first physical drive, first partition. So which disk/partition is your FreeBSD / filesystem on? And did you create a separate partition for /boot?... we'd recommend loading the very flexible loader /boot/loader instead. See this example:
grub> root (hd0,a)
grub> kernel /boot/loader
grub> boot
- 10-09-2005 #4Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
I think it is like (hdX,Y,a) where the the X indicates which drive, Y indicates which "slice"/PC-partition and "a" indicates the root BSD-partition (a is always root, b is always swap, c is the whole drive, d,e,f... are the other partitions you sat up during install)
- 10-09-2005 #5
That makes sense. The grub docs may be out of date.
And you're right, "slice" is the correct term in BSD world.
- 10-11-2005 #6Linux Enthusiast
- Join Date
- Aug 2005
- Posts
- 542
There's only one BSD partition on my machine. It's hda2 (second partition, windows is the first.)
Originally Posted by anomie
- 10-13-2005 #7Just Joined!
- Join Date
- Aug 2005
- Posts
- 83
Just use the same code you use to dual-boot Windows and Linux. Simple as that.
Your partition would be:
Because in UNIX, 0 = 1 in alot of things. So hd(0,0) would be equal to /dev/hda1Code:(hd0,1)
So the code would be something like this:
Code:rootnoverify (hd0,1) chainloader +1 boot


Reply With Quote
