Initrd

From OSDev.wiki
Revision as of 18:41, 30 May 2012 by osdev>Turdus (Created page with "{{Filesystems}} {{Stub}} == Initial ramdisk == Is a small (usually few MiBs) filesystem image that has to be loaded before kernel execution take place at boot. It contains es...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Filesystems
Virtual Filesystems

VFS

Disk Filesystems
CD/DVD Filesystems
Network Filesystems
Flash Filesystems
This page is a stub.
You can help the wiki by accurately adding more contents to it.

Initial ramdisk

Is a small (usually few MiBs) filesystem image that has to be loaded before kernel execution take place at boot. It contains essential parts of the kernel, if kernel supports multiple object files (like Microkernel or Modular Kernel).

The filesystem of the image is totally kernel and version dependent. It's a common way to store data in a static archive file, and on boot "uncompress" it to dynamic filesystem in memory. Simplier implementations use flat image, which has several benefits:

  • fast boot time (no need to interpret data, bulk copy can be used)
  • easy to implement loader with BIOS calls in 512 byte
  • Grub also supports loading image file as ramdisk

Also a very popular design choice to compress image file to shorten load time.

See Also

  • tar archive format
  • SFS simple filesystem implementation

External Links

  • cpio archive format
  • SquashFS filesystem designed for small disks
  • CramFS filesystem designed for compressed ram disks