LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2004, 04:58 PM   #1
gregtrounson
LQ Newbie
 
Registered: Sep 2004
Distribution: RedHat/Fedora/Debian
Posts: 11

Rep: Reputation: 0
Unhappy Fresh kernel won't boot; can't find root fs


Gidday,

I have Debian Testing, kernel 2.4.22 running on an IBM Thinkpad R40e. Everything has been working fine with this kernel.

Last week I tried to compile a new 2.4.27 kernel for it like so:

1. make mrproper && make menuconfig
2. Import /boot/config-2.4.22 to kernel configuration.
3. Ensure that my HD controllers and ext2/ext3 are to be compiled directly into kernel.
4. make dep && make bzImage && make modules && make modules_install
5. cp arch/i386/bzImage /boot/bzImage-2.4.27
6. cp System.map /boot/System.map-2.4.27
7. mkinitrd -o /boot/initrd-2.4.27.img 2.4.27
8. Edit /etc/lilo.conf, and rerun /sbin/lilo

The entire linux filesystem (boot, /, /usr, etc) is on /dev/hda3. At step 7, I get an "/etc/modules.conf: No such file or directory" error message. Strange, I'm sure there's supposed to be one there.
So I cp /etc/modules.conf.bak /etc/modules.conf and re-run mkinitrd.
This time it goes without error.

But when I reboot, the kernel gets as far as trying to mount the root filesystem and dies with:
Kernel panic: VFS: unable to mount root fs on 03:03.

According to what I've read, this is mostlly caused by drivers for the hard disk controller not being compiled into the kernel, or likewise for the correct file system, in this case ext3. This is not the case here. Everything required is compiled directly into the kernel.

If I tell lilo not to use the new initrd, and instead point it to the old one, the system does boot, but of course I can't load any modules due to version mismatch. This would suggest that the initrd was not created properly.

any ideas?

thanks,
Greg
 
  


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
Kernel panic: can't find root device jagot Linux - Software 14 08-07-2005 11:54 PM
Compaw Proliant 1500R - Install Kernel Panic (Cannot find root) timgiffney Fedora 0 12-15-2004 06:44 PM
kernel woes: cannot mount/find root fs prell Linux - General 5 10-06-2004 05:18 PM
kernel panic VFS: couldn't find root on 16:07 (or something like that) suhis Linux - Software 5 12-14-2003 06:15 PM
Can find initrd on fresh install of Slack 9 DMBand8700 Slackware 1 04-13-2003 08:38 PM

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

All times are GMT -5. The time now is 12:49 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