Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 09-07-2007, 07:30 PM   #1
LQ Newbie
Registered: Aug 2007
Posts: 28

Rep: Reputation: 15
Exclamation Kernel panic: after mkinitrd

I got this error message after kernel make.
This error comes out after I did

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

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 to this machine

Appreciate ideas & helps.
Old 09-08-2007, 01:19 AM   #2
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
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).

Old 09-08-2007, 09:27 AM   #3
LQ Newbie
Registered: Aug 2007
Posts: 28

Original Poster
Rep: Reputation: 15
yes, there is a folder /lib/modules/ after kernel rebuild
will try as suggested.. thanks
Old 09-08-2007, 11:00 PM   #4
LQ Newbie
Registered: Aug 2007
Posts: 28

Original Poster
Rep: Reputation: 15

i did as suggested mkinitrd -c -k -m ext3
unfortunately the same error message still appears


kernel, mkinitrd, slackware12

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

All times are GMT -5. The time now is 04:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration