LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-05-2011, 01:19 PM   #1
Bono
LQ Newbie
 
Registered: Dec 2008
Location: Croatia
Distribution: Debian Squeeze, Redhat 5
Posts: 24

Rep: Reputation: 0
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

Last edited by Bono; 05-05-2011 at 01:23 PM.
 
Old 05-05-2011, 01:31 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
How did you compile the Kernel?
 
Old 05-05-2011, 01:34 PM   #3
Bono
LQ Newbie
 
Registered: Dec 2008
Location: Croatia
Distribution: Debian Squeeze, Redhat 5
Posts: 24

Original Poster
Rep: Reputation: 0
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.
 
Old 05-05-2011, 01:41 PM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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
 
Old 05-05-2011, 01:51 PM   #5
Bono
LQ Newbie
 
Registered: Dec 2008
Location: Croatia
Distribution: Debian Squeeze, Redhat 5
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alan_ri View Post
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.

Last edited by Bono; 05-05-2011 at 01:57 PM.
 
Old 05-06-2011, 06:18 PM   #6
Bono
LQ Newbie
 
Registered: Dec 2008
Location: Croatia
Distribution: Debian Squeeze, Redhat 5
Posts: 24

Original Poster
Rep: Reputation: 0
If anyone is interested with mkinitramfs kernel compile is working fine.
2.6.35.13 #2 SMP
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If I can deal with 'kernel panic - not syncing VFS: unable to mount root FS ...' nottotallystupid Ubuntu 3 08-03-2010 03:01 PM
Kernel panic - not syncing: VFS: Unable to mount root fs ? linux_mani Linux - General 1 01-23-2009 04:25 AM
Kernel panic - not syncing: VFS: unable to mount root.... nelad Ubuntu 2 04-14-2007 12:42 PM
kernel panic - not syncing: VFS: Unable to mount root fs on unknown ... nelad Ubuntu 1 04-13-2007 02:20 AM


All times are GMT -5. The time now is 12:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration