LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   2.6.9 Kernel Problem (https://www.linuxquestions.org/questions/suse-opensuse-60/2-6-9-kernel-problem-246412/)

Itsu 10-23-2004 02:39 PM

2.6.9 Kernel Problem
 
I'm finally getting around to compiling my own kernel. I've got it all done, it's compiled, and everythings in place. When I give the following command, it gives me some error messages about modules.dep not being up to date:

Code:

# mkinitrd -k vmlinux-2.6.9 -i initrd-2.6.9
Root device:    /dev/hda3 (mounted on / as reiserfs)
Module list:    reiserfs
 
Kernel image:  /boot/vmlinux-2.6.9
Initrd image:  /boot/initrd-2.6.9
Shared libs:    lib/ld-2.3.3.so lib/libc.so.6 lib/libselinux.so.1
 
Cannot determine dependencies of module reiserfs. Is modules.dep up to date?
Cannot determine dependencies of module ide-disk. Is modules.dep up to date?
Cannot determine dependencies of module ide-floppy. Is modules.dep up to date?
Modules:        kernel/drivers/ide/pci/piix.ko kernel/drivers/cdrom/cdrom.ko kernel/drivers/ide/ide-cd.ko
Bootsplash:    SuSE (800x600)

When I try booting from the kernel, I get an error message about not being able to mount the filesystem, and then my system halts.

A friend suggested I try typing the command 'depmod -a' in the shell, then the above command again, but I'm still having the same problem.

This is on SuSE 9.1. Thanks in advance for any help.

abisko00 10-24-2004 10:08 AM

The error message comes from mkinitrd, which is asked to load drivers into initrd, that are not there/not properly defined.


I assume one of the following possibilities:

1. you did not compile reiserfs at all, so it cannot be found by mkinitrd and thus the system will not boot. Recompile the kernel with reiserfs support.

2. you compiled reiserfs into the kernel (and not as module), but /etc/sysconfig/kernel still tells mkinitrd to include the module into the ramdisk. In this case, simply delete the entry 'reiserfs' from /etc/sysconfig/kernel. But in this case, there must be another problem, that prevents the kernel from booting.

Itsu 10-24-2004 11:37 AM

Yeah, I figured out that not compiling them as modules caused mkinitrd to give me errors. I fixed that, but GRUB is still giving me a stupid error message. Error 17 I believe. "Cannot mount select partition" or something similar. The partition is there, and it works, but GRUB won't mount it.

Any ideas?

abisko00 10-24-2004 11:51 AM

Maybe you need to make changes in /boot/grub/device.map

Sometimes S-ATA HDD's are detected as sdx instead of hdx

No better ideas so far...


All times are GMT -5. The time now is 04:07 PM.