LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 09-07-2007, 08:30 PM   #1
daemonkl
LQ Newbie
 
Registered: Aug 2007
Posts: 28
Thanked: 0
Exclamation Kernel panic: after mkinitrd


[Log in to get rid of this advertisement]
I got this error message after kernel make.
This error comes out after I did

mkinitrd -c -k 2.6.22.6 -m jbd:ext3 -f ext3 -r /dev/sda2

Code:
Freeing unused kernel memory: 304k found
initrd.gz: Loading kernel modules from initrd image:
mount: mounting /dev/sda2 on /mnt failed
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
Kernel panic - not syncing: Attempted to kill init!
I'm using Slackware 12.0 and attemp to build kernel 2.6.22.6 to this machine

Appreciate ideas & helps.
daemonkl is offline  
Tag This Post , , ,
Reply With Quote
Old 09-08-2007, 02:19 AM   #2
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279
Thanked: 0
Try rebuilding initrd.gz with -m ext3. I believe jbd will be automatically included. Also, try leaving off -f ext3 -r /dev/sda2.

I assume there actually is a directory called /lib/modules/(kernel version).

Dennisk
dennisk is offline     Reply With Quote
Old 09-08-2007, 10:27 AM   #3
daemonkl
LQ Newbie
 
Registered: Aug 2007
Posts: 28
Thanked: 0

Original Poster
yes, there is a folder /lib/modules/2.6.22.6 after kernel rebuild
will try as suggested.. thanks
daemonkl is offline     Reply With Quote
Old 09-09-2007, 12:00 AM   #4
daemonkl
LQ Newbie
 
Registered: Aug 2007
Posts: 28
Thanked: 0

Original Poster
Question

i did as suggested mkinitrd -c -k 2.6.22.6 -m ext3
unfortunately the same error message still appears
daemonkl is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
mkinitrd package dependency for kernel? SlowCoder Fedora 6 06-17-2007 10:08 PM
Can't mkinitrd for Kernel 2.6.11.6 (when compiling) LordOfer Linux - Newbie 3 04-02-2005 12:20 PM
Use mkinitrd to include module in kernel Travers Linux - Newbie 1 07-23-2004 03:35 PM
kernel 2.6.6 mkinitrd problem ziox Linux - Software 0 07-13-2004 08:48 PM
mkinitrd kernel-related question Tino27 Slackware 1 03-27-2004 12:14 AM


All times are GMT -5. The time now is 05:09 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration