LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-18-2008, 01:58 AM   #1
liptaka
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Kernel panic and VFS error with new kernel on debian


Hi!

I have a debian installed on my pc with kernel 2.6.18-5-686

I want to set up an "npad" server on my PC, and according to description
the kernel from distribution is not good for it.

I donwloaded a kernel (2.6.18 from kernel.org, i compiled it without errors, but during booting I had this error:

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

Till then I have read a lot of forums, but can not find the solution!
At first with "make menuconfig" I switched almost everything from 'M' to '*', because I thought that some drivers are not statically in the kernel, but in modules, but the error remained the same...

After I tried to make an initrd with mkinitramfs! first I left default config in
/etc/initramfs-tools....

I used command: mknitramfs -k -o ramdiszk
I copied the created ramdiszk file to /boot

my menu.lst:

title Debian GNU/Linux, kernel 2.6.18-5-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-5-686 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18-5-686
savedefault


title test
root (hd0,0)
kernel /boot/vmlinuz-2.6.18 root=/dev/hda1
initrd /boot/ramdiszk


The result when boot:


"FATAL: Could not load /lib/modules/2.6.18/modules.dep: No such file or directory
Done.
Begin: Waiting for root file system......"


After this I booted with working kernel, and see what modules used in it with "lsmod", then put this module names into /etc/initramfs-tools/modules, and made ramdiszk again!

The result was the same again...
Another info: when booting with working kernel, I checked /lib/modules/2.6.18/modules.dep, and it is existing.

Can anybody help me?

thanks in advance
Andras
 
Old 02-19-2008, 11:38 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
I remember when I first started compiling my own kernels, the biggest lesson I learned was to install the kernel headers from your distro's package manager.

Once you have those installed (under Debian, they'd be "linux-headers-2.6.18-686"), then you download your tarball from kernel.org, and after you untar it, run "make oldconfig" in the new kernel sources directory, -OR- just rebuild the kernel from Debian's apt provided kernel sources.
 
  


Reply



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
CRC error/Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block red13hat Linux - Enterprise 2 05-03-2007 08:57 PM
KERNEL PANIC VFS: error sidharth.nitj Linux - Kernel 2 01-09-2007 06:33 AM
Vfs: Kernel panic boot error JamesKelson Slackware 3 02-19-2006 04:27 PM
VFS: Kernel panic error at boot (2.6.10) deveraux83 Slackware 2 12-30-2004 01:36 AM
booting error: Kernel Panic: vfs: unable to mount root fs on 01:01 eam Linux - General 2 01-26-2004 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration