LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Dual-Booting Troubles (Fedora + Dream Linux) (https://www.linuxquestions.org/questions/linux-newbie-8/linux-dual-booting-troubles-fedora-dream-linux-547319/)

soulexposed 04-19-2007 09:07 AM

Linux Dual-Booting Troubles (Fedora + Dream Linux)
 
Hello all,

I've been trying to get a dual boot setup between two Linux distros for the past few days, to no avail. I have one sata drive which I am partitioning multiple times. Right now, it looks like:
1st parition: 15 gigs ext3, Fedora Core
2nd parition: 5 gigs swap (for Fedora Core)
3rd partition: 15 gigs ext3 Dream Linux
4th parition 5 gigs swap (for Dream Linux)

The first OS installed is Fedora Core 6. After that, I tried installing Dream Linux 2.2 several different ways (letting it write GRUB to the MBR, letting it write GRUB to the /root partition, not letting it write GRUB at all) and I can't figure out how to get them both working. From Fedora, my grub.conf file looks like this:
Code:

default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.20-1.2944.fc6)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.20-1.2944.fc6 ro root=LABEL=/1 rhgb quiet
    initrd /boot/initrd-2.6.20-1.2944.fc6.img
title Fedora Core (2.6.18-1.2798.fc6)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/1 rhgb quiet
    initrd /boot/initrd-2.6.18-1.2798.fc6.img
title Dream Linux (2.6.18.1-kanotix-1)
    root (hd0,2)
    kernel /vmlinuz-2.6.18.1-kanotix-1 root/dev/sda3 vga=0x317 vga=791 splash=sile$initrd = /initrd

When I attempt to choose Dream Linux from the Grub menu I get the following error:
Code:

root (hd0,2)
 Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.18.1-kanotix-1 root/dev/sda3 vga=0x317 vga=791 splash=sile$initrd = /initrd

Error 15: File not found

I've looked at these forums and various other places but I just can't figure out what's going on. Any of you have more experience with this?

rocket357 04-20-2007 01:44 AM

Look at your Dream Linux code:

Code:

title Dream Linux (2.6.18.1-kanotix-1)
    root (hd0,2)
    kernel /vmlinuz-2.6.18.1-kanotix-1 root/dev/sda3 vga=0x317 vga=791 splash=sile$initrd = /initrd

According to your post, root(hd0,2) is correct. The "file not found" error is relating to the next line...You've not broken Dream Linux up into various partitions (i.e. /, /boot, /usr, /home, etc...), so you need to include /boot in your kernel path so GRUB can find the kernel (you're currently looking in the root directory).

Also, you need root=/dev/sda3 and initrd needs to be on its own line...(and I took out the splash parameter...add it back in once you verify that you can boot both systems)

Here's the result:

Code:

title Dream Linux (2.6.18.1-kanotix-1)
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.18.1-kanotix-1 root=/dev/sda3 vga=0x317 vga=791
    initrd /boot/initrd

This assumes your kernel and initrd are indeed within the /boot subdirectory of your Dream Linux partition...(and are named exactly what's listed there)

soulexposed 04-20-2007 07:49 AM

Success! Thank you very much for your help! :D

rocket357 04-20-2007 09:15 AM

Glad I could help...


All times are GMT -5. The time now is 02:06 PM.