LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem with 2.6.* kernel (https://www.linuxquestions.org/questions/slackware-14/problem-with-2-6-%2A-kernel-451146/)

swiminator 06-03-2006 04:57 AM

Problem with 2.6.* kernel
 
I recently installed Slackware 10.2 onto a Dell Inspiron E1405. It worked just fine with the 2.4.31 kernel that was installed by default but I have been trying to upgrade to a 2.6 kernel without success.

I first tried compiling the kernel (2.6.16.19) myself and went through everything making sure everything was properly selected, compile everything, install and reboot and it halts with this error:

Code:

VFS: Cannot open root device "302" or unknown-block(3,2)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,2)

So I went back to the configuration thinking that maybe I had forgotten to compile my root file system into the kernel, once I had checked that and a few other option I recompiled and tried again. Same error.

Then I figure maybe I just am not doing to well at choosing the options for this kernel, so I install the 2.6.13 kernel and modules in the /testing directory open up the config to make sure that my root file system is included and compile everything again. I reboot to find the same error. So I try again with the 2.6.16.19 kernel in the Slackware-current's /testing dir and get the same error.

Then I booted into SLAX 5.1.6 (kernel 2.6.16) to see if maybe 2.6 kernels don't like my laptop. It boots and works fine, but I noticed something strange, SLAX had recognized the hard drive had /dev/sda while Slackware saw the drive as /dev/hda, so I tried messing with that but I got basically the same error.

here is the pertinent part of my lilo.conf
Code:

# Linux bootable partition config begins
image = /boot/vmlinuz
 root = /dev/hda2
 label = Slackware
 read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

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

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

Any suggestions would be greatly appreciated.

Yalla-One 06-03-2006 05:30 AM

Try booting slax and run the commands lspci -v and dmesg, and print those.
Use that output to make sure you have all the right drivers configured in your custom kernel.

Normally, sda* is for disks driven by SCSI-controllers, while hda are for IDE/ATA controllers, so I suspect the problem is with the harddisk controller in your kernel. dmesg/lspci should give you good hints..

-Y1

swiminator 06-03-2006 07:57 PM

Solved
 
The issued turned out to becaused by that fact the the hard drive is SATA, I had only selected the new drivers in the SCSI section of the kernel because the ones in the ATA section were deprecated. Once I selected that and the new driver it booted just fine.

Thanks for your help.


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