LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-29-2006, 07:20 AM   #1
telepuzikk
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
kernel panic while booting


Hi all. I need your help!
Some days ago I tried to compile new 2.6.17 kernel. But I can`t boot it. There is a message while booting: "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block (3,3)".
I`ve started to search for help in google and discovered that in that cases people tell to turn on Reiserfs in the kernel. I don't have any Reiserfs partition, but I did it. My problem was not solved, but I`ve got a new message before kernel panic: "No filesystem could mount root, tried: reiserfs, ext3, ext2, ntfs".
Then I`ve discovered that IDE support was configured as a module. I`ve recompiled a kermel with normal IDE support, but the problem wasn`t solved. The errors are the same.
Lilo.conf is ok (I think), because old kernel boots fine.
I hope somebody would help me. Thanks and sorry for my English if I`ve made some errors.
 
Old 07-29-2006, 08:11 AM   #2
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
perhaps you need to update your initrd. on your linux source directory, e.g. /usr/src/linux, do 'mkinitrd -o /boot/initrd kernelversion'. where kernelversion is the version of the new kernel you compiled. only do this after you compiled the kernel or if you haven't yet done 'make clean'.

you must also check that initrd in the boot config points to the new initrd file. e.g initrd = /boot/initrd
 
Old 07-29-2006, 10:40 AM   #3
telepuzikk
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
I`ve already done mkinitrd -o /boot/initrd.img-2.6.17my and added the following string in /etc/lilo.conf. But there`s no result.
 
Old 07-29-2006, 11:09 AM   #4
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
you should run lilo after the configuration.
 
Old 07-29-2006, 12:33 PM   #5
telepuzikk
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
That`s ok now. The problem was in initrd. I`ve tried to boot without it and now the kernel loads fine. But now I don`t know, how to load modules. As I understand, mkinitrc have made initrd with errors. So, what should I do now to make it properly?
 
Old 07-29-2006, 05:02 PM   #6
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
i don't know what went wrong with your setup but i'll just give you a list of commands to redo the installation of the new kernel.

Code:
cd /usr/src/linux-2.6.17
make clean
make oldconfig OR zcat /proc/config.gz > .config
make menuconfig  # make sure that no drivers are missing
make
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.17
cp .config /boot/config-2.6.17
cp System.map /boot/System.map-2.6.17
cd /boot
ln vmlinuz-2.6.17 vmlinuz -sf
ln System.map-2.6.17 System.map -sf
ln config-2.6.17 config -sf
depmod -ae

<modify lilo>
image = /boot/vmlinuz-2.6.17
   label = Linux
   root = /dev/hda1
   append = 
   read-only

lilo
if you need to run an initrd:

Code:
cd /usr/src/linux-2.6.17
make clean
make oldconfig OR zcat /proc/config.gz > .config
make menuconfig  # make sure that no drivers are missing
make
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.17
mkinitrd -o /boot/initrd.img-2.6.17 2.6.17
ln vmlinuz-2.6.17 vmlinuz -sf
ln System.map-2.6.17 System.map -sf
ln config-2.6.17 config -sf
depmod -ae

<modify lilo>
image = /boot/vmlinuz-2.6.17
   label = Linux
   initrd = /boot/initrd.img-2.6.17
   root = /dev/ram0
   append = 
   read-only

lilo
Edit: added "append = "

The only problem you have is that the kernel can't find its proper modules. If you're not using initrd before, perhaps you just forgot to do 'make modules_install'.

Last edited by konsolebox; 07-29-2006 at 05:13 PM.
 
Old 07-30-2006, 05:50 AM   #7
telepuzikk
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Yes. I made kernel in the way that you described. I can boot without a string about initrd in lilo.conf. But there are no modules, so I need to use initrd. To make it I used mkinitrd -o /boot/initrd.img-2.6.17.6 2.6.17.6. Then I`ve added the string in lilo.conf: initrd=/boot/initrd.img-2.6.17.6. Then I`ve entered "lilo" in command line. And as the result I see the error about kernel panic while booting and it doesn`t boot!!!!!!!!!! I don`t know, what to do. The command "make modules_install" was entered while kernel compilation. May be one of the modules conflicts with something and doesn`t let booting the system???????

Last edited by telepuzikk; 07-30-2006 at 05:51 AM.
 
Old 07-30-2006, 06:04 AM   #8
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
the problem's far too complicated though it just seems to be a simple error.

ok now i guess you have no other choice but to compile most of the modules (mostly with the ide and fs drivers) as built-in. sorry but i guess that's the only best solution i can tell.

so then you must recompile the kerel with lesser modules then repeat the process again. i don't know but i guess that should solve your problem now.
 
Old 07-30-2006, 08:54 AM   #9
telepuzikk
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks! The problem was solved!!! I`ve just turned on the cramfs support!
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic while booting gangaraju Fedora 7 06-19-2007 10:06 AM
Kernel Panic @booting ! azul79 Linux - General 7 09-06-2004 10:30 AM
Problem booting up new kernel. Kernel panic error... RHLinuxGUY Red Hat 2 04-11-2004 04:59 AM
Kernel panic while booting with 2.6.3 duzhenhuan Debian 2 03-15-2004 06:50 AM
kernel panic when booting 2.4.22 doncrawley Linux - Newbie 1 09-28-2003 11:55 PM


All times are GMT -5. The time now is 02:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration