LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   How to see FreeBSD with Grub (https://www.linuxquestions.org/questions/%2Absd-17/how-to-see-freebsd-with-grub-638302/)

aquaboot 04-27-2008 10:06 PM

How to see FreeBSD with Grub
 
Note: I also placed this on the debian forum.

Hello,

I have 3 hard drives and installed FreeBSD on one of them today. During install, I chose to leave my Debian grub boot record untouched. I'm having trouble figuring out how to list the BSD drive in grub for boot up (basically what to add for the root line). Here is my menu.lst file now:

## ## End Default Options ##

title Debian GNU/Linux, kernel 2.6.24-1-686
root (hd1,2)
kernel /vmlinuz-2.6.24-1-686 root=/dev/hde1 ro quiet
initrd /initrd.img-2.6.24-1-686

title Debian GNU/Linux, kernel 2.6.24-1-686 (single-user mode)
root (hd1,2)
kernel /vmlinuz-2.6.24-1-686 root=/dev/hde1 ro quiet single
initrd /initrd.img-2.6.24-1-686

title Debian GNU/Linux, kernel 2.6.22-3-686
root (hd1,2)
kernel /vmlinuz-2.6.22-3-686 root=/dev/hde1 ro quiet
initrd /initrd.img-2.6.22-3-686

title Debian GNU/Linux, kernel 2.6.22-3-686 (single-user mode)
root (hd1,2)
kernel /vmlinuz-2.6.22-3-686 root=/dev/hde1 ro quiet single
initrd /initrd.img-2.6.22-3-686

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1

title FreeBSD- 7.0 Release
root (hd2)
savedefault
makeactive
chainloader +1

title Microsoft Windows XP Professional: Necessary Evil
root (hd0,0)
savedefault
makeactive
chainloader +1


Thanks,

ab

aquaboot 04-27-2008 10:56 PM

Ok, after trial and error and many reboots the following entry worked:

title FreeBSD- 7.0 Release
root (hd2,0)
savedefault
makeactive
chainloader +1


Later,

ab


All times are GMT -5. The time now is 06:38 AM.