LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   home-compiled kernel in panic (https://www.linuxquestions.org/questions/debian-26/home-compiled-kernel-in-panic-155949/)

sterrenkijker 03-10-2004 02:00 PM

home-compiled kernel in panic
 
Hello everybody,

I've got a strange problem when compiling my own 2.6.3 kernel: my method is making a debian package of it with make-kpkg buildpackage -rev full1 kernel_image. After that I install the image with dpkg-i kernel-image-2.6.3_full1_i386.deb. It installs and updates grub automatically. When I try to boot on it it fails, giving the message:

VFS: Cannot open root device "hda7" or unknown block (0,0)
Please append a correct "root=" boot option
kernel panic: VFS: Unable to mount root fs on unknown-block (0,0)

I've taken a look at my menu.lst file in /boot/grub, and the entry for my new kernel doesn't have a line about initrd. In /boot/grub/ there isn't even a initrd.img for the new kernel. For the other kernels (2.6 and 2.4, which I didn't compile myself) there is.

At first I had disabled a lot of modules with "make menuconfig". This time I didn't change anything with "make menuconfig", but it hasn't solved the problem at all.

Hope anyone can help me.

Stargazer

HappyTux 03-10-2004 02:21 PM

You either need to use --with-initrd I think it is called in the compile line or select as builtin the module for your / file system when you compile. If you are using ide-scsi for burning you will not want to use the 2.6.3 at all there is a bug in it that froze my computer solid and I am pretty sure that it caused the file corruption in my reiserfs as well, 2.6.4-rc3 solved both problems at least no file corruption so far and it wants to burn again so thats a good sign.

OmegaBlac 03-10-2004 07:05 PM

Quote:

Originally posted by HappyTux
You either need to use --with-initrd I think it is called in the compile line or select as builtin the module for your / file system when you compile.
Yea he will need to compile the file system of his "/" but also he will need IDE support if he is using a IDE HDD and also the IDE chipset he is using if he will not be using a initrd. You should also turn off initrd support if it is checked as this may cause a similiar problem as before(it did for me).

Quote:

If you are using ide-scsi for burning you will not want to use the 2.6.3
No need to use ide-scsi no more for burning. ATAPI devices work without it. Well mine did.

sterrenkijker 03-11-2004 08:06 AM

By the way, I'm a girl. But thanks for the advice anyway. I'll try it out and let you know if it helped.


All times are GMT -5. The time now is 08:22 AM.