LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-10-2004, 03:00 PM   #1
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 30
home-compiled kernel in panic


Hello everybody,

I've got a strange problem when compiling my own 2.6.3 kernel: my method is making a debian package of it with make-kpkg buildpackage -rev full1 kernel_image. After that I install the image with dpkg-i kernel-image-2.6.3_full1_i386.deb. It installs and updates grub automatically. When I try to boot on it it fails, giving the message:

VFS: Cannot open root device "hda7" 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've taken a look at my menu.lst file in /boot/grub, and the entry for my new kernel doesn't have a line about initrd. In /boot/grub/ there isn't even a initrd.img for the new kernel. For the other kernels (2.6 and 2.4, which I didn't compile myself) there is.

At first I had disabled a lot of modules with "make menuconfig". This time I didn't change anything with "make menuconfig", but it hasn't solved the problem at all.

Hope anyone can help me.

Stargazer
 
Old 03-10-2004, 03:21 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
You either need to use --with-initrd I think it is called in the compile line or select as builtin the module for your / file system when you compile. If you are using ide-scsi for burning you will not want to use the 2.6.3 at all there is a bug in it that froze my computer solid and I am pretty sure that it caused the file corruption in my reiserfs as well, 2.6.4-rc3 solved both problems at least no file corruption so far and it wants to burn again so thats a good sign.
 
Old 03-10-2004, 08:05 PM   #3
OmegaBlac
Member
 
Registered: Aug 2003
Location: California
Distribution: Ubuntu
Posts: 172

Rep: Reputation: 31
Lightbulb

Quote:
Originally posted by HappyTux
You either need to use --with-initrd I think it is called in the compile line or select as builtin the module for your / file system when you compile.
Yea he will need to compile the file system of his "/" but also he will need IDE support if he is using a IDE HDD and also the IDE chipset he is using if he will not be using a initrd. You should also turn off initrd support if it is checked as this may cause a similiar problem as before(it did for me).

Quote:
If you are using ide-scsi for burning you will not want to use the 2.6.3
No need to use ide-scsi no more for burning. ATAPI devices work without it. Well mine did.
 
Old 03-11-2004, 09:06 AM   #4
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Original Poster
Rep: Reputation: 30
By the way, I'm a girl. But thanks for the advice anyway. I'll try it out and let you know if it helped.
 
  


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
No HD swap with a home-compiled kernel. Linux.tar.gz Linux - Hardware 4 06-07-2005 05:57 PM
[2.6.11 just compiled] kernel panic at boot-time MD3 Slackware 10 04-24-2005 12:39 PM
compiled kernel 2.6.10 with slackware 10.0, kernel panic salviadud Linux - Newbie 1 02-09-2005 05:05 PM
kernel panic on reboot of newly compiled kernel lyceum Linux - Newbie 4 09-09-2003 10:40 AM
Compiled own kernel and got: Kernel panic: No init found. Try passing init= option to fbl Linux - General 12 01-14-2003 04:38 AM


All times are GMT -5. The time now is 02:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration