LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-22-2004, 10:46 PM   #1
LittlesnowLinux
Member
 
Registered: Nov 2004
Location: China
Distribution: Debian
Posts: 30

Rep: Reputation: 15
Can anyone tell me why?


I have compiled linux kernel 2.6.9 for my Debian.But when I boot it using the new kernel image,It print out error message on screen:

modprobe:FATAL:Could not load /lib/modules/2.6.9/modules.dep:No such file or d
irectory

pivot_root:No such file or directory

/sbin/init:426:Cannot open dev/console:No such file

Kernel panic---not syncing:Attempted to kill init!

What's the problem? I had compiled kernel 2.6.1 in my previous Fedora successfully.Why did I fail in my Debian.Is it the dependency of files? Someone said it was improper configuration of File Systems.And I assure it was not that point.And someone said I had not installed module-init-tools.But I had.
 
Old 12-23-2004, 01:58 AM   #2
sygin
Member
 
Registered: May 2004
Posts: 36

Rep: Reputation: 15
When you compiled the Kernel did you:


make modules - Compiles modules
make modules_install - installs modules

Good Luck
 
Old 12-23-2004, 02:31 AM   #3
LittlesnowLinux
Member
 
Registered: Nov 2004
Location: China
Distribution: Debian
Posts: 30

Original Poster
Rep: Reputation: 15
Of course I did.

I also did "make install" which will copy the kernel to /boot automatically and update grub.
Then I typed "mkinitrd -o /boot/initrd.img-2.6.9", and edit /boot/grub/menu.lst manually.
 
Old 12-23-2004, 09:00 AM   #4
jmr71769
Member
 
Registered: Jun 2003
Location: East Coast, USA
Distribution: Gentoo, Debian, Slack, FreeBSD
Posts: 82

Rep: Reputation: 15
Re: Can anyone tell me why?

Quote:
Originally posted by LittlesnowLinux
I have compiled linux kernel 2.6.9 for my Debian.But when I boot it using the new kernel image,It print out error message on screen:

modprobe:FATAL:Could not load /lib/modules/2.6.9/modules.dep:No such file or d
irectory

pivot_root:No such file or directory

/sbin/init:426:Cannot open dev/console:No such file

Kernel panic---not syncing:Attempted to kill init!

What's the problem? I had compiled kernel 2.6.1 in my previous Fedora successfully.Why did I fail in my Debian.Is it the dependency of files? Someone said it was improper configuration of File Systems.And I assure it was not that point.And someone said I had not installed module-init-tools.But I had.
can i tell you why? well, it looks like your system is missing a 'make dep', plain and simple.

debian has it's own fun way to compile/install a custom 2.6 kernel...


Last edited by jmr71769; 12-23-2004 at 10:32 AM.
 
Old 12-23-2004, 10:19 AM   #5
LittlesnowLinux
Member
 
Registered: Nov 2004
Location: China
Distribution: Debian
Posts: 30

Original Poster
Rep: Reputation: 15
I thought so at first.But when I used "make dep",it said "it is no neccessary to make dep"
So I am confused by the problem
 
Old 12-23-2004, 10:33 AM   #6
jmr71769
Member
 
Registered: Jun 2003
Location: East Coast, USA
Distribution: Gentoo, Debian, Slack, FreeBSD
Posts: 82

Rep: Reputation: 15
Quote:
Originally posted by LittlesnowLinux
I thought so at first.But when I used "make dep",it said "it is no neccessary to make dep"
So I am confused by the problem
did you try the link?

 
Old 12-24-2004, 02:54 AM   #7
LittlesnowLinux
Member
 
Registered: Nov 2004
Location: China
Distribution: Debian
Posts: 30

Original Poster
Rep: Reputation: 15
I haved solved it.Because in the "mkinitrd" step,I did not include the source directory,typed it as "mkinitrd -o /boot/initrd.img-2.6.9-1-686",while the correct solution is "mkinitrd -o /boot/initrd.img-2.6.9-1-686 /lib/modules/2.6.9"

Thanks all the same!
 
  


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



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

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