Kernel panic
Hey, I just compiled and installed kernel 2.6.16-2 and when i went to reboot and start it up lilo just goes blank and nothing happens. Thats fair enough, i assumed i must have messed up something silly in my .config file so i decided i'd just reboot in my old 2.4 kernel and sort it out. I rebooted and when i selected my 2.4 kernel i got this
Code:
VFS: Cannot open root device "301" or unknown block (3,1) Quote:
Quote:
Thank you, NNP |
What type is your hdd? Is it SATA one?
|
nope its an IDE drive
|
Did you compile in (*) support for your root filesystem? This is normally the cause of this error.
|
yes i did but why would that matter anyway?
The original kernel is the one thats giving that error message. The new one is just dying without saying a thing. I wouldnt have thought installing the new kernel would have effected the old. |
Did you try to pass the correct boot option like root=/dev/hda1? Are you sure that vmlinuz link points to the correct kernel?
|
Yea, i tried passing root=/dev/hda1
I didnt check that vmlinuz points to the right place. I'll do that when i get home. I didnt think make or make install would change that though. |
make install could change, but i'm not sure about this.
|
To be certain:
Did you run lilo after compiling the enw kernel? |
Ok, check this out:
Quote:
Quote:
Peace... |
yes, i can boot windows. Its XP.
As for the bootable flag, i didnt see that but now that i think about it that wasnt set before either and it didnt cause a problem. In regard to the question about vmlinuz. Here is an ls -lF of my /boot as seen from knoppix Quote:
micder: cant remember if i ran lilo after compiling the new kernel but i've done it several times since. |
The only thing I can think of is some kind of partition hiding trickery going on, but I doubt that can be it. You got me. :)
Peace... |
well i set the image= back to vmlinuz-ide-2.4.31 and i can now boot my 2.4 kernel again. It appears the new vmlinuz must be the 2.6 kernel. Odd.
Anywho, i now have to figure out why the hell the 2.6 kernel wont boot. Fun. |
I'm around 99% sure that this was caused by make install, which you did. It removed ide-2.4 line and added vmlinuz line after copying bzImage into /boot/vmlinuz. Then you added your 2.6 kernel normal way.
|
Any suggestions on what could be wrong with the 2.6 kernel?
Is there anything i should watch out for when upgrading from 2.4 to 2.6 on slackware? |
I had similar problems when I first started to build my own Linux kernel.
I tracked the problem down to 'tangled up' symbolic links. I have learnt my lesson now and avoid having any symlinks if at all possible. Also, when building a new kernel, I never do a 'make install'. I always install the kernel image, system.map and modules manually, then I know exactly what is happening. Toods. |
To Toods: You can install modules with make install_modules. It doesn't create any symlinks, just copy modules to /lib/modules/kernel-version.
To NNP: Check that your filesystem support is compiled not as module but into the kernel; Check that you haven't enabled SATA or SCSI disk support (they shouldn't cause problems. but it's better to check), if you have and IDE disk. Use Slackware 2.6 kernel config and check additional required options. If it works, you can reduce the number of selected options and finally find what was causing kernel panic. |
Quote:
|
Toods: I think it was a typo, so yes (damn will i feel silly if it wasnt ;) )
Alien_Hominoid: What do you mean by 'Use Slackware 2.6 kernel config'. Do you mean create a fresh .config file? Thanks, NNP |
To Toods: Sorry for very stupid previous post. :( It should be make modules_install. My fault. But it works as I said.
To NNP: ftp://ftp.slackware.com/pub/slackwar...est26.s/config. |
All times are GMT -5. The time now is 06:13 PM. |