LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 03-10-2004, 12:23 AM   #1
vmniza
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Rep: Reputation: 0
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, 02:05 AM   #2
peter_robb
Moderator
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mkinitrd ? anti.corp Slackware 1 11-27-2005 01:51 PM
Help with mkinitrd paddyjoy Linux - Newbie 2 07-02-2005 07:05 AM
mkinitrd beaucox Linux - Software 6 03-29-2004 09:44 AM
No Mkinitrd?????? sovietpower Linux - General 5 02-08-2004 05:10 AM
mkinitrd DavidPhillips Linux - General 0 12-20-2001 12:07 PM


All times are GMT -5. The time now is 03:15 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
Open Source Consulting | Domain Registration