LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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


Hello,

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, 09:25 AM   #2
Technoslave
Member
 
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.
 
  


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 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 04:23 AM
Kernel initrd.img? microsoft/linux Debian 15 10-29-2004 12:35 PM
Kernel 2.6.7 install error, initrd-2.6.7.img error jjorloff1 Linux - General 3 09-15-2004 12:15 AM
initrd.img GONE after kernel instal?!?! denniz Debian 5 08-17-2004 03:55 PM
no initrd.img after upgrading kernel buknoy Linux - General 1 10-10-2003 04:22 AM


All times are GMT -5. The time now is 01:30 AM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration