LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Booting? (https://www.linuxquestions.org/questions/slackware-14/booting-563237/)

Frank Soranno 06-20-2007 11:33 AM

Booting?
 
Just install debian etch on hd1 with Slackware 12 on hd3 which I already had running with lilo bootloader, I selected Grub on debian to use for bootload, Now debian grub has 4 titles slackware /hd3 for booting and I tried to boot from the first one and got kernel panic.
Looked into grub menu and found that each of the slackware hd3 have different kernel /boot/vmlinuz. Ok which kernel is the right one?

# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda3.
title Slackware Linux (Slackware 12.0.0) (on /dev/hda3)
root (hd0,2)
kernel /boot/vmlinuz-generic-2.6.21.5 root=/dev/hda3
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda3.
title Slackware Linux (Slackware 12.0.0) (on /dev/hda3)
root (hd0,2)
kernel /boot/vmlinuz-generic-smp-2.6.21.5-smp root=/dev/hda3
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda3.
title Slackware Linux (Slackware 12.0.0) (on /dev/hda3)
root (hd0,2)
kernel /boot/vmlinuz-huge-2.6.21.5 root=/dev/hda3
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda3.
title Slackware Linux (Slackware 12.0.0) (on /dev/hda3)
root (hd0,2)
kernel /boot/vmlinuz-huge-smp-2.6.21.5-smp root=/dev/hda3
savedefault
boot

frank@debian:~$

H_TeXMeX_H 06-20-2007 12:20 PM

That config is wrong, I would read /boot/grub/grub.txt, especially this part:

Code:

Examples of the difference between Linux and GRUB device names.

Linux IDE:        GRUB IDE:        Linux SCSI:        GRUB SCSI:
/dev/hda1      (hd0,0)                /dev/sda1      (hd0,0)
/dev/hda2      (hd0,1)                /dev/sda2      (hd0,1)
/dev/hda3      (hd0,2)                /dev/sda3      (hd0,2)
/dev/hda4      (hd0,3)                /dev/sda4      (hd0,3)
/dev/hdb1      (hd1,0)                /dev/sdb1      (hd1,0)
/dev/hdb2      (hd1,1)                /dev/sdb2      (hd1,1)
/dev/hdb3      (hd1,2)                /dev/sdb3      (hd1,2)
/dev/hdb4      (hd1,3)                /dev/sdb4      (hd1,3)

you have 'root (hd0,2)' for all your options, that cannot be right.

bioe007 06-20-2007 01:06 PM

Quote:

Originally Posted by H_TeXMeX_H
you have 'root (hd0,2)' for all your options, that cannot be right.

can't it be correct if his /boot is on the third HD partition?

i think first you need to give more info about how you set up your HD? is there a separate partition for /boot that is shared by debian and slackware? or is there a /boot directory on each distro's partition?

i.e. if your slackware /boot is on /dev/hda3 then i think your grub/menu.lst should read:

Code:

# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda3.
title Slackware Linux (Slackware 12.0.0) (on /dev/hda3)
root (hd0,4)
kernel /boot/vmlinuz-generic-2.6.21.5 root=/dev/hda3
savedefault
boot

but if you have a /boot partition shared amongst them at /dev/hda2 then:
Code:

# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda3.
title Slackware Linux (Slackware 12.0.0) (on /dev/hda3)
root (hd0,3)
kernel vmlinuz-generic-2.6.21.5 root=/dev/hda3
savedefault
boot


Frank Soranno 06-20-2007 02:28 PM

Tried booth and got kernel panic?

H_TeXMeX_H 06-20-2007 02:46 PM

Can you post what you have on each partition. I assumed they would all be separate, each with its own /boot directory. You need to say how it is arranged, what is on each partition ?

Frank Soranno 06-20-2007 03:11 PM

Finally got with the help of devils_casper


"just put vmlinuz only".
Code:

title Slackware Linux root (hd0,2)
kernel /boot/vmlinuz ro root=/dev/hda3
savedefault
boot
This works. Thank you.


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