LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Debian 6.0 - custom kernel compile Kernel panic - not syncing: VFS: Unable to mount (http://www.linuxquestions.org/questions/debian-26/debian-6-0-custom-kernel-compile-kernel-panic-not-syncing-vfs-unable-to-mount-879042/)

Bono 05-05-2011 01:19 PM

Debian 6.0 - custom kernel compile Kernel panic - not syncing: VFS: Unable to mount
 
When I upgraded Debian from 5.0 to 6.0 my custom kernel doesn't want to boot I get this error: "Kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(0,0)"

Only kernel that it boots is the one supplied with debian so I went ahead to compile again custom kernel.
My device where system drive is connected to:
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
partition type: /dev/sda1 on / type ext3 (rw,errors=remount-ro)

So when I try to boot new kernel I get this error: "Kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(0,0)" even though I have compiled drivers into kernel and I have compiled EXT2, 3 and 4 support.

Next I tried to make initrd but mkinitrd doesn't supprt new kernels in my case 2.6.35.13 I get this error msg: "/usr/sbin/mkinitrd: Cannot determine SCSI module"

Can you please recommend me tool with which I can make initrd boot image or why I'm getting this message when partition is compiled into kernel and as you can see in the picture kernel sees all the drives.

My grub line looks like this:
title Debian GNU/Linux, kernel 2.6.35.13
root (hd0,0)
kernel /boot/vmlinuz-2.6.35.13 root=UUID=88823d52-a192-44b6-8459-18207f2303f5 ro
#initrd /boot/initrd.2.6.35.13
Initrd is hashed because I cannot make initrd image.

Partition which are compiled into kernel:
Quote:

#
# File systems
#
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT2_FS_XIP is not set
CONFIG_EXT3_FS=y
CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
http://i268.photobucket.com/albums/j.../linux-VFS.jpg

alan_ri 05-05-2011 01:31 PM

How did you compile the Kernel?

Bono 05-05-2011 01:34 PM

Make menuconfig
make
make modules
make modules_install
make install

This is not my first compile I'm compiling kernels for 10 years, that's why I'm now asking because I don't know what I did wrong.

alan_ri 05-05-2011 01:41 PM

When using Debian, it's recommended to do things the Debian way. Have you read this; http://www.debian.org/releases/stabl...h08s06.html.en

Bono 05-05-2011 01:51 PM

Quote:

Originally Posted by alan_ri (Post 4347647)
When using Debian, it's recommended to do things the Debian way. Have you read this; http://www.debian.org/releases/stabl...h08s06.html.en

No, I usually compile all kernels in classic way because I use multiple distros and everything works fine, my only problem is that mkinitrd is not maintained anymore so I asked which is new tool to make initrd. It's probably mkinitramfs, but I should be able to boot kernel without initrd if drivers and fs is build into kernel. If no one can suggest better solution i'll just make with mkinitramfs initrd image and it should probably work fine.

EDIT: If anyone else will search how to make initrd, it can be done with "mkinitramfs" I just created image and tomorrow I will see if it can boot properly.

Bono 05-06-2011 06:18 PM

If anyone is interested with mkinitramfs kernel compile is working fine.
2.6.35.13 #2 SMP


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