LinuxQuestions.org
Review your favorite Linux distribution.
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 12-01-2005, 10:58 PM   #1
MKSrivastava
Member
 
Registered: Apr 2005
Posts: 34

Rep: Reputation: 15
Kernel Panic Debian v3.1(2.6.8-2-686)


I did something like this to clean and build my kernel -

make mrproper oldconfig prepare-all scripts
(making of kernel)
make oldconfig
make 2>&1 | tee kernelmake.log
(Installing kernel modules, below two in /boot)
mv /arch/i386/boot/bzImage /boot/vmlinuz-image-2.6.8-2-686
mv /usr/src/linux-2.6.8/System-map /boot/System-map-2.6.8-2-686
make modules_install( in /usr/src/linux-2.6.8)

Today when I started I am getting following things -
lib/modules/2.6.8/modules.dep
pivot_root : No such file or directory
sbin/init : 423 cannot open dev/console: No such file
Kernel panic : Attempted to kill init

Any clue to get rid of above.
 
Old 12-01-2005, 11:12 PM   #2
dastrike
Member
 
Registered: Apr 2004
Location: Stockholm, Sweden
Distribution: Debian 'sid'
Posts: 250

Rep: Reputation: 30
It cannot find the root filesystem and thus fails to switch the filesystem root onto it (pivot_root : No such file or directory).

As you built that kernel yourself for some reason, it is likely you missed some ATA/SATA/SCSI or filesystem drivers. Such that are needed to be loaded before the filesystem can be accessed (which pretty obviously is the case of loading the root filesystem - pretty hard to load those modules from that filesystem when you need the modules to do so in the first place), such modules need to either be statically compiled into kernel or as module placed in an initrd image so they can be available before the filesystems are available.
 
Old 12-01-2005, 11:16 PM   #3
MKSrivastava
Member
 
Registered: Apr 2005
Posts: 34

Original Poster
Rep: Reputation: 15
daststrike .. tx for your comments, do uou have some thought how one can get rid off.
 
Old 12-01-2005, 11:57 PM   #4
MKSrivastava
Member
 
Registered: Apr 2005
Posts: 34

Original Poster
Rep: Reputation: 15
tx -- dastrike, I was able to work out as I had some other version through which it rebooted.
 
Old 12-02-2005, 08:07 AM   #5
eplanamente
LQ Newbie
 
Registered: Dec 2004
Location: Switzerland
Distribution: Debian Sarge
Posts: 15

Rep: Reputation: 0
Wink Kernel compilation: the Debian way

Did you know there is a better, easier and cleaner way to compile and install a kernel in Debian?

Try this from your /usr/src/linux-source-2.x.x or /usr/src/kernel-source-2.x.x:
Code:
fakeroot make-kpkg --append_to_version -yourHost --initrd --revision=yourRevisionNumber kernel _image modules_image
For example:
Code:
fakeroot make-kpkg --append_to_version -tux --initrd --revision=1 kernel _image modules_image
Fakeroot is only required if you are working as a normal user (not root).

This will create a debian package in the parent directory. Therefore, to install the package, just call

Code:
dpkg -i ../kernel-image-2.x.x_x-tux.deb
Logically, replace x with the currect numbers.

Sorry if this is not the answer to your question, but it can help you doing the same job with much less effort. ;-)

Ciao
Emidio
 
  


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
Leadtek Tv Tuner WinFast DV2000 under Debian sarge testing kernel 2.6.10-1-686 TanelValdna Linux - Hardware 1 08-04-2006 05:19 PM
Kernel Panic - Missing "initrd.img-2.6.8-2-686" in /boot MKSrivastava Debian 2 12-02-2005 03:09 PM
Cisco 350 Series on Debian kernel 2.6.8-2-686 i0l0l0s Linux - Wireless Networking 5 03-24-2005 05:49 PM
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic omlette Linux - General 3 03-07-2005 07:00 AM
Debian kernel 2.6.7-1-686 - Error MAKE XCONFIG - Missing QTDIR BaptismOfFire Linux - Software 4 09-02-2004 06:15 PM

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

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