LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Quadruple boot (https://www.linuxquestions.org/questions/linux-newbie-8/quadruple-boot-334814/)

dinolinux 06-18-2005 03:37 AM

Quadruple boot
 
Hi!

I have a computer with 4 OS'es (Debian 3.1, Fedora 4, Windows XP and LFS 6.0). Everything is going fine, but GRUB which I installed from Fedora doesn't boot anything else than Fedora. When I choose Debian, it says something like "file not found". I have added Debian to fstab, rewritten grub.conf (to boot the kernel) but it still won't work!

Any ideas???
Thanks!

marghorp 06-18-2005 04:37 AM

Can you post a fdisk output and the grub.conf file here.?

dinolinux 06-18-2005 04:50 AM

Here's my grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/hda2
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,1)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img
title Debian 3.1 (Sarge)
root (hd1,0)
kernel /media/debian/boot/vmlinuz-2.4.27-2-386
initrd /media/debian/boot/initrd.img-2.4.27-2-386
title Windows XP
rootnoverify (hd0,0)
chainloader +1
title LFS
root (hd0,3)
kernel /media/lfs/boot/lfskernel-2.6.8.1

dinolinux 06-18-2005 06:15 AM

Fdisk /dev/hda

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

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2484 19952698+ 7 HPFS/NTFS
/dev/hda2 2485 8712 50026410 83 Linux
/dev/hda4 * 8713 9729 8169052+ 83 Linux


fdisk /dev/hdc

Disk /dev/hdc: 20.5 GB, 20520493056 bytes
255 heads, 63 sectors/track, 2494 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 2432 19535008+ 83 Linux
/dev/hdc2 2433 2494 498015 82 Linux swap / Solaris

2damncommon 06-18-2005 11:50 AM

title Windows XP
rootnoverify (hd0,0)

Windows XP on the first partition of the primary master.

title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,1)

Fedora on the second partition of the primary master.

fdisk shows two other Linux partitions. /dev/hda4 & /dev/hdc1
hda4 would be (hd0,3)
hdc1 would be (hd2,0)

But your Grub entry is
title Debian 3.1 (Sarge)
root (hd1,0)

Debian on the first partition of the primary slave. You did not list a primary slave. Only a secondary master (hdc).

I'm new to GRUB, that's what I see.

dinolinux 06-19-2005 03:49 AM

Hi!

This is what I get when I boot the Debian entry on hd2,0

Code:

Booting command-list

root (hd2,0)
Error 21: Selected disk does not exist

Press any key to continue...

And this is what I get when I boot the Debian entry from hd1,0

Code:

Booting command-list

root (hd 1,0)
Filesystem is ext2fs, partitiontype 0x83
kernel /media/debian/boot/vmlinuz-2.4.27-2-386

Error 15: File not found
Press any key to continue...

Any ideas???
:confused:
:Pengy:

kimx 06-19-2005 04:08 AM

Perhaps you could try this:
Code:

root(hd1,0)
kernel /boot/vmlinuz-2.4.27-2-386

since you've just told grub that you debian partition is root

dinolinux 06-19-2005 05:21 AM

Hi!

Now I've sorted out the boot process, but when the kernel boots I get this message:

Code:

Journalled Block Device driver loaded
pivot_root: No such file or directory
/sbin/init 432: Cannot open dev/console: No such file or directory

And then I get the famous line:
Code:

Kernel panic: Attempted to kill init

2damncommon 06-19-2005 11:42 AM

Quote:

root (hd2,0)
Error 21: Selected disk does not exist
So GRUB counts only installed drives. Rereading the GRUB docs quickly I don't really see that stated.
Obviously it is so.
Sorry about the goose chase.

james.farrow 06-20-2005 05:16 AM

I have a multiboot PC with FreeBSD, Centos4, Fedora 3, and XP.
grub is the bootloader installed by Centos 4.
At the kernel line on Fedora 3 I added ro root=/dev/hda*
Where * is the / partition for that distro ie root=/dev/hda8.
It works for me no problems.


All times are GMT -5. The time now is 11:34 AM.