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 03-10-2004, 01:23 AM   #1
vmniza
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Rep: Reputation: 1
mkinitrd


According to what i know, mkinitrd is used to create initial ram disk images. it takes 2 arguments, first is the name of the initrd file and second is the kernel version in /lib/modules. /lib/modules actually contain many modules, but when you create an initial file system using mkinitrd, you find that the lib directory in this initrd filesystem contains only ext3.o and jbd.o modules (which are the only modules that are actually required). But how does mkinitrd know that from /lib/modules/kernel-version, these two are the only modules that are needed at boot time.
 
Old 03-10-2004, 03:05 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
The purpose of the initrd is to have a running kernel before the search for hard drives takes place.
This is why it it loaded into ram, the ram is easy to find.

It was used primarily for difficult drives, eg scsi, raid, nfs, usb, pcmcia etc where the hardware needed to be setup before the full filesystem could be found.

If you do less /sbin/mkinitrd you can read the script that makes the initrd image..
man mkinitrd has more info too..
 
  


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
mkinitrd ? anti.corp Slackware 1 11-27-2005 02:51 PM
Help with mkinitrd paddyjoy Linux - Newbie 2 07-02-2005 08:05 AM
mkinitrd beaucox Linux - Software 6 03-29-2004 10:44 AM
No Mkinitrd?????? sovietpower Linux - General 5 02-08-2004 06:10 AM
mkinitrd DavidPhillips Linux - General 0 12-20-2001 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration