LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   How to "dual boot" linux (debian) and Freebsd using Grub? (http://www.linuxquestions.org/questions/debian-26/how-to-dual-boot-linux-debian-and-freebsd-using-grub-333815/)

hkl8324 06-15-2005 08:47 AM

How to "dual boot" linux (debian) and Freebsd using Grub?
 
how to edit the grub/menu.lst file?

i want to give FreeBSD a try..:D

ewt3y 06-15-2005 09:17 AM

the file is located somewhere in /boot folder maybe
add these lines to anywhere you want in menu.lst:
title ewt3y kernel (hd0,6)/boot/freebsd root=/dev/hda7 devfs=mount acpi=ht resume=/dev/hda6 splash=silent
initrd (hd0,6)/boot/initrd-2.6.3-7mdk.img
I know i made mistake, any one help us ? we are newbies

hkl8324 06-15-2005 10:15 AM

Quote:

Originally posted by ewt3y
the file is located somewhere in /boot folder maybe
add these lines to anywhere you want in menu.lst:
title ewt3y kernel (hd0,6)/boot/freebsd root=/dev/hda7 devfs=mount acpi=ht resume=/dev/hda6 splash=silent
initrd (hd0,6)/boot/initrd-2.6.3-7mdk.img
I know i made mistake, any one help us ? we are newbies

initrd 2.6.3?

i am sure that is linux kernel...........:D

actually i know hot to add linux's entry there...:D


hkl8324 06-15-2005 10:42 AM

after searching google....

the command is so simple....as

title FreeBSD 4.4 #1
root (hd0,2,a)
kernel /boot/loader
title FreeBSD 4.4 #2
root (hd0,3,a)
kernel /boot/loader

i find it here

:D

J_K9 06-15-2005 03:32 PM

Wait....do you already have a free partition, or are you going to resize your linux one/add another hard drive? If so, you'll need to replace the "root (hdx,y,a)" with your hard drive and partition number! If you only have one hard drive, then it'll be "root (hd0,y,a)" (I'm not sure about the "a" because I've never used FreeBSD before). The "y" in what I have written is the partition number, which AFAIK can be found by typing in "fdisk -l" into a console window (the partition will only be visible if you've already made it). As far as resizing your linux partition goes, I don't actually have a clue, though I know it can be done...could I suggest you ask a moderator to move this to a thread like "Linux - General" where your question will be answered more fully than I can?

[EDIT]

Not sure if you know, but you should type it (what you wrote in your last post with the few corrections I have mentioned) into /boot/grub/grub.conf, which you want to open with any text editor. Best of luck,

J_K9


All times are GMT -5. The time now is 10:58 AM.