LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Newly compiled 2.6-test11 Does not boot (https://www.linuxquestions.org/questions/slackware-14/newly-compiled-2-6-test11-does-not-boot-120785/)

Xylon 11-28-2003 02:53 PM

Newly compiled 2.6-test11 Does not boot
 
Hello! The last time I compiled a Kernel we were still in the 2.2.x series so it's been a really long time. The more recent distributions I've tried I haven't needed to recompile the Kernel. So it's been years...

Anyway I was curious after reading about some of the improvments in 2.6.x so I downloaded the 2.6.test11, set the config options as best as I knew how, and compiled it. I did Lilo and edited the lilo config and all the usual stuff. Right now I'm running on my old kernel. But the 2.6.x one gives this message during bootup:

VFS: Cannot open root device "302" or hda2
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on hda2


Here is part of my /etc/lilo.conf:

image = /boot/vmlinuz.old
root = /dev/hda2
label = slack.old
read-only

image = /boot/vmlinuz
root = /dev/hda2
label = Linux
read-only

The first (2.4) kernel boots fine but the second (2.6.x) gives the above error.

Any suggestions on how to fix this? Thank you

jailbait 11-28-2003 05:11 PM

One possibility is that you have some kernel module set to m when it should be set to y. Every module that you need to access /dev/hda2 must be set to y. This includes such things as the file system type module (ext2, ext3, etc.) the drivers for your IDE controller, hard disk, and whatever. If one of these modules is set to m then the bootable kernel has no way to access /lib/modules to read in the loadable module.


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Xylon 12-05-2003 04:25 PM

Everything I thought I needed I set to Y. I didn't purposely set anything on M. I also later tried compiling with many extra filesystems and IDE drivers etc that I'm pretty sure I didn't need -- but tried just in case -- and it didn't help.

Anyone have any other suggestions?

vooduhal 12-26-2003 12:18 AM

I had the same problem but I was using a debian (unstable) 2.6 kernel. I resolved my problem by adding initrd=/initrd.img to my lilo.conf. Of course, my initrd was already created and sitting in / so I would assume you'll have to make it. Anyway, that fixed it for me.


All times are GMT -5. The time now is 11:08 PM.