LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-11-2004, 04:23 PM   #1
hotel-lima
Member
 
Registered: Sep 2003
Distribution: Debian (server), Ubuntu (workstation)
Posts: 39

Rep: Reputation: 15
Question What's an initrd.img?


Hi,

while doing some kernel-compiling I saw that some kernels need an initrd.img while booting and some kernels do not.
For instance my Debian system uses an initrd with kernel 2.4.18-k7.
Some kernel-compiling instructions do not mention an initrd.
So, what exactly is an initrd and when do I need this?

Can I compile and use a new kernel without it?

How do I create an initrd after compiling a new kernel?

Hope, somebody can explain this to me.

Thanks in advance!

Greetings
hotel-lima
 
Old 06-11-2004, 05:39 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
From man mkinitrd...
Code:
DESCRIPTION
       mkinitrd creates filesystem images which are suitable  for
       use  as Linux initial ramdisk (initrd) images. Such images
       are often used for preloading  the  block  device  modules
       (such as SCSI or RAID) which are needed to access the root
       filesystem.    mkinitrd    automatically     loads     all
       scsi_hostadapter entries in /etc/conf.modules, which makes
       it simple to build and  use  kernels  using  moduler  SCSI
       devices.

       Any  module  options  specified  in  /etc/conf.modules are
       passed to the modules as they are loaded  by  the  initial
       ramdisk.
The most common need for an initrd is when you have your / on a filesystem type that you don't have compiled into your kernel. If your / is on EXT3 or Reiser, and you have them as modules in your kernel, then the kernel can't read / at boot, because it doesn't have the modules loaded yet.
 
Old 06-11-2004, 05:50 PM   #3
hotel-lima
Member
 
Registered: Sep 2003
Distribution: Debian (server), Ubuntu (workstation)
Posts: 39

Original Poster
Rep: Reputation: 15
Hi,

thanks for answering.

That means that initrd is not necessary for me, because my / is ext3 and this support is compiled into my kernel.

Ok then I think it's clear.

Thank you.

Greetings,
hotel-lima
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Initrd.img spaguzz Slackware 4 12-16-2004 03:35 AM
Initrd.img spaguzz Linux - Software 1 12-09-2004 03:21 PM
Kernel initrd.img? microsoft/linux Debian 15 10-29-2004 12:35 PM
initrd.img php_rocks Linux - Newbie 1 08-31-2003 11:20 PM
Grub and initrd.img homestead1000 Linux - Software 2 07-25-2003 02:39 PM


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