LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-11-2004, 09:23 PM   #1
Eyaw_Nayr
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian
Posts: 9

Rep: Reputation: 0
Re-Compile Kernel Problems


Hello,
I just bought an NVidia GeForce FX5700, and to make a long story short I need to remove Power Management from the kernel. I am running on the 2.6.7-386 stock kernel, and it has worked fine until now. Since I didn't want to touch anything besides power management, I just copied the config from the stock kernel in /boot to my compile directory, made the few changes all involving power management and ran make-kpkg. All seemed to go well until I rebooted when I got this error:

Code:
VFS: Cannot open root device on "hda1" 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 would like to point out that my HD is a SATA drive, controlled by a Sillicon Image 3112 PCI card. But this hasn't been a problem.

And yes, the grub entrys are the same, besides that my kernel doesn't have an initrd image [it wasnt made, is it necessary?]

Thanks
Eyaw
 
Old 11-12-2004, 05:29 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
If could be that the .config file you got from the boot directory wan't the correct one for your running kernel; the installer may have put some sort of default file there.

In any case, it looks like your SATA driver, or one of the filesystem drivers, is compiled as a module, or not compiled, rather than compiled into your kernel.

I recommend that you go through your kernel config tree with xconfig, and fix the configuration.

Alternativly, reinstall your original kernel and just boot with the option
Code:
acpi=off
 
Old 11-12-2004, 06:19 AM   #3
Eyaw_Nayr
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: 0
I use grub, would acpi=off be put in the kernel line, after "root="?
 
Old 11-15-2004, 01:23 PM   #4
kanati
LQ Newbie
 
Registered: Nov 2004
Location: Chicago
Distribution: Debian Sarge
Posts: 11

Rep: Reputation: 0
Fair warning, I'm also a newbie here, but I just learned how to compile a kernel this weekend.

If you did a
Code:
make-kpkg ... kernel-image
then I think you need to add the --initrd option also:
Code:
make-kpkg --initrd ... kernel-image
My sarge distribution had an initrd image with the standard installation and I think you need to build another initrd for your new kernel build.

As rjlee said, you can also make sure the drivers that you are using for your SATA device and filesystlem are build into the kernel instead of as modules and you won't need the initrd image.

But I might still be way off. Let me know if that works for you.

Good luck.
 
  


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
kernel compile problems mailbinoy Linux - Newbie 5 06-30-2005 11:13 AM
Kernel Compile 2.6.9 Problems wnaLinux Slackware 2 12-10-2004 06:53 AM
Kernel compile problems 1madstork Debian 12 12-03-2004 11:49 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
Problems after kernel compile brokenflea Slackware 1 04-21-2004 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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