Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-16-2004, 01:02 PM   #1
Registered: Apr 2004
Location: amsterdam
Distribution: Debian (Sarge and Woody)
Posts: 49

Rep: Reputation: 15
Unhappy no initrd.img after install of new kernel?


I'm using Sarge(Debian) with a 2.6.7 kernel. I compiled a custom kernel using the debian kpkg programme (which works like a charm!). After installing the kernel, there suddenly is no initrd.img in /boot anymore! In / I find a (renamed) symlink initrd.OLD that points to the initrd image in /boot that belongs to the previous kernel. However, there is no initrd.img symlink in /

How can this be? Is there a way I can create (or recreate) a initrd.img for my new kernel? Any help greatly appreciated. If any additional info is needed: I gladly supply that for you.
Old 08-17-2004, 10:25 AM   #2
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Usually when you compile a kernel you have to also compile your own img file. An img file is a file with a filesystem in it ... the word I'm looking for escapes me. But to find out what I'm talking about. Do this...

cp img_file /tmp/img_file.gz
cd /tmp
mkdir blah
gunzip imp_file.gz
mount -o loop img_file /tmp/blah
cd /tmp/blah

You'll see nifty neat-o things in there, bin, dev, etc etc.

Normally you'd put a couple things in the lib dir namely, ext3.ko and jbd.ko
Some files in bin, etc. You'd get all of these either from a previous img file, or you'd get them from within the directories where you compiled the kernel.

When you're done you'd umount /tmp/blah, mv img_file img_file_new_kernel_# etc, then you'd gzip img_file_# them mv img_file_#.gz to img_file_# and move it back in to your /boot dir, or wherever you store your img files.

This little bit of info confused the hell out of me when I compiled my first kernel many years ago, took for forever to figure out why it wouldn't boot properly.

Anyway, probably only semi-related to what you're looking for, but take it as you will.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to find initrd .img and kernel parameter satimis Linux From Scratch 10 08-06-2005 05:23 AM
Kernel initrd.img? microsoft/linux Debian 15 10-29-2004 01:35 PM
Kernel 2.6.7 install error, initrd-2.6.7.img error jjorloff1 Linux - General 3 09-15-2004 01:15 AM
initrd.img GONE after kernel instal?!?! denniz Debian 5 08-17-2004 04:55 PM
no initrd.img after upgrading kernel buknoy Linux - General 1 10-10-2003 05:22 AM

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