Re: all about initrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks a lot !

On 5/21/06, Sandeep Kumar <sandeepksinha@xxxxxxxxx> wrote:
---------- Forwarded message ----------
From: Sandeep Kumar <sandeepksinha@xxxxxxxxx>
Date: May 21, 2006 1:38 AM
Subject: Re: all about initrd
To: George Zhim <georgezhim@xxxxxxxxx>


On 5/20/06, George Zhim <georgezhim@xxxxxxxxx> wrote:
> Hi all,
>
> What is the initrd ?


initrd stands for "initial ramdisk" and is used by Linux and other
Unix-related operating systems in their boot procedure.

Phase one of this two-phase process is the kernel boot. It will load
the initrd file and mount it in RAM as a RAM disk. By executing
executables contained within the cached ramdisk it loads up initial
necessary file system drivers for a file system to operate. During
this process, devices like USB devices, network cards, RAID arrays and
others will get mounted so that the phase two process can boot up the
operating system normally.

Note that it is possible to boot Linux without using an initrd, if
nothing needs to be loaded before the file system is mounted (i.e. the
device on which the main file system resides does not need external
drivers to be loaded). This is usually the case for IDE based systems.
In this case, it simply mounts the real file system and then
configures the devices as normal. On SCSI systems, special drivers may
be necessary, in which case the system will not boot without an initrd
image to load them.

The usual program for creating an initrd image is mkinitrd. However,
some alternatives exist, such as Yaird.

The ramdisk initrd file is usually adopted in compressed form,
therefore found as initrd.gz. In order to access its contents, it is
possible to decompress it using Gzip and then to mount it as a
loopback File system (with mount option -o loop).
Retrieved from "http://en.wikipedia.org/wiki/Initrd";


> Where is it used ? what for ?
It is used by Linux and other Unix-related operating systems in their
boot procedure
> how ?
google about "linux initrd" and you will get lots of info about it.


> Thanks :)
> GZ
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>
>



--
Regards,
Sandeep





Winners expect to win in advance. Life is a self-fulfilling prophecy.


--
Regards,
Sandeep





Winners expect to win in advance. Life is a self-fulfilling prophecy.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux