-   Slackware (
-   -   A small kernel error (

synapse 05-26-2004 02:02 AM

A small kernel error

ok Ive almost got this right , I have compiled the kernel and all went well, the problem is when I try to boot the new kernel I get the following error messages.

kmod failed to exec /sbin/modprobe -S -K block-major-3, errno=2
VFS:Cannot open root device "342" or 03:42
Please append a correct "root=" boot option
Kernel panic: VFS : Unable to mount root fs on 03:42

ok ive done a little searching across the board and havent come up with anything usefull.

My layout so far is

hda - CDRom
hdb1 - Windoze unfortunately (used for solidworks)
hdb2 - / Slack
hdb3 - home
hdb4 - user

I have tried to pass options to the kernel at boot like


All of these options dont help me at all I still get the same error.
The kernel im using is 2.4.22
I think its obvious that the filesystem cant be mounted but i have compiled the filesystem into the kernel (reiserfs)
Im also trying to set up my cdrom using scsi although i have an ATAPI cdwriter so i can use sg0 as my device for my cdwriter
also I do not have any raid devices.

So Im wondering what I have left out in the kernel that could be causing this problem or is it just a bad compile ??

Also 1 other thing, there is a, vmlinuz, .configure, 0342, and a map file in the /boot directory what is the map file for, I know what the other files do but is the map file necessary ??

To anyone who can help me thanx


Current system

Pentium 4 2.8 GHz Hyperthreaded
512 Megs ram
All perhenials are built into mb

Cerbere 05-26-2004 05:01 PM

Are you running lilo or grub? Or do you boot from a floppy or ....

--- Cerbere

synapse 05-27-2004 10:17 AM

Hi well it looks like im on my own with this one

I boot with hdb1(ntfs) via windoze bootloader into slackwares lilo boot loader(hdb2 reiserfs) and can switch between either of the bootloaders to start either os.

ringwraith 05-27-2004 10:31 AM

and when you boot, the windows boot loader is successfully bring up the lilo prompt?

if the failure occurs after you get to lilo, show us your /etc/lilo.conf
also ls -l /boot want to see the full symlinks
by the way, why are you compiling kernel 2.4.22. The stock one does not work or one of the provided variants. If you are going to compile your own it should be 2.4.26 or 2.6.6 as 2.4.22 had security issues. So we need more info to help.

synapse 05-27-2004 04:10 PM

Hi ringwraith
Thanx for that info, I will patch the kernel and try again to see what happens, my lilo boots fine and i managed to get the kernel working, I had left out some ata option (Dont know which option though) that it obviously needed to acess the hd

The whole reason that i am recompiling is that im trying to get my scanner working (Mustek Bearpaw CU Plus)

On my old pc before this one it worked fine with the standard kernel now all of a sudden i am getting a I/O error when trying to communicate with the device (on my new pc). Seems the only difference is that this new pc has 4 usb slots and i dunno what the problem is.

Ive check the proc usb and the device is there the filesystems are loaded everything seems just fine , in fact exactly like my old pc just i cant use the device. Kooka picks up that the scanner is there when it autoprobes , but as soon as it loads the main frontend there is a sane error

Xsane also has problems with this it seems

BTW ive tried as root as well same problem also reinstalled and got the same error.

I have a camera which i plug in and can access fine.
Ive checked the scanner on a windoze system and it works fine so its not busted.

My new system is

P4 2.8Ghz
512mb mem
Chaintech VIA PM800/PT800 + VT8235 u-ATX Motherboard

Thanx for your help

All times are GMT -5. The time now is 06:00 PM.