Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-15-2005, 10:42 AM   #1
LQ Newbie
Registered: May 2005
Posts: 4

Rep: Reputation: 0
LILO and kernel panic

Previously, I was dual booting WinXP and SuSE 9.0 Pro, but recently, I've been trying out some othe Linux distributions in the place where Windows used to be. I just installed Slackware 10.1, and I'm having trouble booting to SuSE. I haven't touched the SuSE install, so it should (better) still be valid; in fact, a few days ago when Ubuntu was installed, GRUB would boot both Ubuntu and SuSE correctly.

Slackware installed LILO as the bootloader. LILO boots slackware fine, and will start booting SuSE, but part way through, I get an error along the lines of "Kernel Panic: No init mode found. Try passing "init=" to the kernel." Here's how my drives are set up:

hda1: / for Slackware 10.1. There are no other partitions on hda.
hdb1: /boot for SuSE 9.0 Pro
hdb2: NTFS partition with some documents from Windows on it
hdb3: swap (used by both Slackware and SuSE)
hdb4: / for SuSE

Here are the relevant sections menu.lst from a grub installation that worked (it correctly booted SuSE):
color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd1,0)/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title Linux2.4.21
    kernel (hd1,0)/vmlinuz-2.4.21-286-default root=/dev/hdb4 vga=0x31a splash=si
lent desktop hdd=ide-scsi hddlun=0 showopts
    initrd (hd1,0)/initrd-2.4.21-286-default
And here is my current lilo.conf file (I've modified the SuSE section from how Slackware had set it up, in an attempt to fix the problem on my own, but I failed):

# Modified by YaST2. Last modification on Tue Mar 29 02:04:56 2005

# LILO configuration file
# generated by 'liloconfig'
# Start LILO global section
boot = /dev/hda
#compact        # faster, but won't work on all systems.
timeout = 50
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0     # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hda1
  label = Slackware
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

# Linux bootable partition config begins
image = /boot/vmlinuz-2.4.21-286-default
initrd= /boot/initrd-2.4.21-286-default
  root = /dev/hdb1
  append="splash=silent desktop hdd=ide-scsi hddlun=0 showopts"
  label = SuSE
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
I believe I've provided all of the relevant information, but if there's something I missed, let me know and I'll get you the output. Thank you.
Old 05-15-2005, 01:05 PM   #2
Registered: Jul 2004
Location: Houston Tx
Distribution: kubuntu, Debian, Suse 10.2
Posts: 31

Rep: Reputation: 15
Shouldn't you have
root = /dev/hdb4
in lilo.conf instead of root = /dev/hdb1?
Old 05-15-2005, 01:38 PM   #3
LQ Newbie
Registered: May 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Originally posted by mike33
Shouldn't you have
root = /dev/hdb4
in lilo.conf instead of root = /dev/hdb1?
I just gave that a try, and no luck - I got the same errors as before. Also, when I run lilo as root with that lilo.conf, I get this as output:

root@matthew:~# lilo
Added Slackware *
Fatal: open /boot/vmlinuz-2.4.21-286-default: No such file or directory
Old 05-16-2005, 06:51 PM   #4
LQ Newbie
Registered: May 2005
Posts: 4

Original Poster
Rep: Reputation: 0
I've tried several other things, and I'm still getting the same message. Any ideas?
Old 05-16-2005, 08:22 PM   #5
Registered: Mar 2004
Location: Jakarta
Posts: 164

Rep: Reputation: 30
it seems your slackware's /sbin/lilo just can't recognize your
SUSE's kernel image, you just mentioned /boot/blablabla
your system is rooting on your slackware root partition... that's the problem... it's checking on your slakcware /boot/ folder , not SUSE's

I've never tried this before, but try to copy your SUSE kernel image,+ meybe any other boot files needed, to your slackware /boot/ folder , and then run /sbin/lilo again.

hope it helps .. never used linux vs linux dual boot before...
Old 05-23-2005, 06:24 AM   #6
LQ Newbie
Registered: Feb 2005
Posts: 8

Rep: Reputation: 0
try to remake the initrd file with the command mkinitrd. Rename the "/boot/initrd-2.4.21-286-default" to "/boot/initrd-2.4.21-286-defaultold" (backup). Get to a shell with /dev/hdb1 as root and type:

mkinitrd /boot/initrd-2.4.21-286-default kernelversion
You might neet to do:

in order to finish it off ( am not sure if this is requiered, it is probably not, but better safe than sorry)

that might help.

you might also want to try to use

and try to install lilo again.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic after lilo update aje Slackware 4 09-03-2005 01:39 PM
Kernel Panic: It won't mount the root filesystem (2.6.8 and 2.6.9) and LILO hates me edman007 Linux - General 4 11-13-2004 05:41 PM
LILO-related Kernel Panic on Boot sarboras Slackware - Installation 7 04-28-2004 04:28 PM
Kernel Panic with LiLo Rabon Linux - General 4 01-31-2004 04:52 AM
Lilo / Kernel Panic problem oulevon Linux - General 1 11-20-2002 08:53 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration