LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-11-2003, 05:31 AM   #1
DooFDooF_music_
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Rep: Reputation: 15
Cool Kernel panic!!!!!


hi all.

i get this error when i boot slack normaly.

kernel panic: no init found. try passing init=option to the kernel.

i can boot from floppy so there must be some way to fix it.

passing options to the kernel...how do i do that? i edited lilo in mandrake to give slack as a boot option so not to fudge my other os's.

any help please

thank's
 
Old 10-11-2003, 05:39 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
There must be something wrong in the lilo.conf. Could you please cpy it and write which partition is used by which system (especially, which one is used with Slack)?
 
Old 10-11-2003, 05:46 AM   #3
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
copy your
lilo.conf
output of 'fdisk -l'
and /etc/fstab(just copy the relevent parts)
 
Old 10-11-2003, 06:20 AM   #4
DooFDooF_music_
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
not sure what u meant by relevent parts so forgive the huge post

Boot=/dev/hda
map=/boot/map
vga=normal
default=”linux”
keytable=/boot/us.klt
prompt
nowarn
timeout = 100
message=/boot/message
menu-sheme=wb:bw:wb:bw
image=/boot/vmlinuz
label=”linux”
foot/dev/hda5
initrd=/boot/initrd.img
append=”quiet devfs=mount hdd=ide-scsi acpi=off”
vga=788
read-only
other=/dev/hda1
label=”windblows”
table=/dev/hda
other=/dev/fd0
label=”floppy”
unsafe
image=/boot/vmlinuz
label=”failsafe”
root=/dev/hda5
initrd=/boot/initrd.img
append=”failsafe devfs=nomount hdd=ide-scsi acpi=off”
read-only
image=/boot/vmlinuz
label=”slack”
root=/dev/hda7
initrd=/boot/initrd-2.4.21-0.13mdk.img
read-only
 
Old 10-11-2003, 06:54 AM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It looks you boot Mandrake kernel telling it to use Slack's partition... You need to mount the Slack partiton in Mandrake:
mkdir /mnt/slack
mount /dec/hda7 /mnt/slack
then edit the slack part of lilo.conf:
Code:
image=/mnt/slack/boot/vmlinuz
label=”slack”
root=/dev/hda7
initrd=/mnt/slack/boot/initrd-?????.img
read-only
Note that you need to check if vmlinuz is the right name for your kernel in Slack and get the right name of Slack's initrd. When it's done, save lilo.conf and run 'lilo'. Slack should be able to boot now.
 
Old 10-11-2003, 07:14 AM   #6
DooFDooF_music_
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
ok just installed slack and made a custom lilo install and it workes great!
now i need to know if the mandrake part is correct before i try and boot mandrake. this is where i am a bit confused.

this is how mandrake looks when installed stock.

image=/boot/vmlinuz
root=/dev/hda5
initrd=/boot/initrd.img

this is my new current slack lilo.conf (installed from slack) with mandrake added during an expert lilo install.

label ="mandrake"
image = /boot/vmlinuz
root = /dev/hda5

but that is exactly the same as how slack boots except with root = /dev/hda7 (the slack partition) and label = slack.

so i am thinking change my slack lilo.conf lines to this.

label = "mandrake"
image = /dev/hda5/boot/vmlunuz
initrd = /dev/hda5/boot/initrd.img
root = /dev/hda5

would that be correct?

Last edited by DooFDooF_music_; 10-12-2003 at 12:04 AM.
 
Old 10-12-2003, 12:09 AM   #7
DooFDooF_music_
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
erm
 
Old 10-12-2003, 12:19 AM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
almost. In slack, make a new directory:

mkdir /mnt/mdk

then mount the / partition of mandrake:
mount /dev/hda5 /mnt/mdk

then edit lilo.conf:
label = "mandrake"
image =/mnt/mdk/boot/vmlinuz
initrd = /mnt/mdk/boot/initrd.img
root = /dev/hda5

run lilo:
/sbin/lilo -v

You do NOT need to edit /etc/fstab (in case you thought you need to do it )
 
Old 10-12-2003, 12:57 AM   #9
DooFDooF_music_
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
very nice!! worked great! i guess mara thought i knew what i was doing...lol

can i use this to add anything else? i am about to install knoppix 3.3 do a knx-hdinstall and add these lines to my lilo.conf.

label = "knoppix" (can i put 3.3...coz i have 3.2 as well)
image = /mnt/knx/boot/vmlinblahblah
initrd = /mnt/knx/boot/if_it_has_one.img
root = /dev/hda8

then run /sbin/lilo -v. i will have mounted /dev/hda8 and created the dir /mnt/knx.

is this right it seems to be.

thanks for all of your help.
 
Old 10-12-2003, 01:03 AM   #10
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
yup. looks right. And you can add any number of distros this way. Just make sure that all the root partiton of all the distros mentioned in lilo.conf are mounted at the appropriate places when you run lilo. Taht is, you will also need to mount /dev/hda7 to /mnt/mdk in this case.
btw, I'm pretty sure knoppix does not have a initrd - there is a file named initrd.gz or something like that in its boot directory but ignore it.

Last edited by quatsch; 10-12-2003 at 01:05 AM.
 
Old 10-12-2003, 02:51 AM   #11
DooFDooF_music_
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
ok.

i did it exactly as writen above but i get this error

kernel panic: VFS: unable to mount root fs on 03:08.

whats gone on there i did everything i did with mandrake?

btw. if it helps /dev/hda8 is reiserfs

Last edited by DooFDooF_music_; 10-12-2003 at 02:57 AM.
 
Old 10-12-2003, 04:42 AM   #12
DooFDooF_music_
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
i think the problem is reiserfs i will check it and post.
 
Old 10-12-2003, 05:37 AM   #13
DooFDooF_music_
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
hep!!!

reiserfs was the outright no doubt problem. i know this because i reinstalled knoppix using a different fs and guess what? i did not even have to edit the lilo.conf again. i rebooted and went straight to knoppix hit enter and BOOM there it is.

Last edited by DooFDooF_music_; 10-12-2003 at 10:40 PM.
 
Old 10-12-2003, 10:07 AM   #14
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
the reason is that the filesystem of the root partition must be supported by the kernel (compiled into it) and the knoppix kernel probably doesn't have reiserFS support compiled in.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:04 PM.

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