How to Extract an initramfs Image and Edit/View it (Doc ID 1671276.1)

Last updated on JUNE 15, 2017

Applies to:

Linux OS - Version Oracle Linux 5.2 to Oracle Linux 6.5 with Unbreakable Enterprise Kernel [3.8.13] [Release OL5U2 to OL6U5]
Linux x86-64

Goal

initramfs, shortened from "initial RAM file system", it succeeds the older initrd ("initial ramdisk"). It is a cpio archive of the initial file system and gets loaded into memory when Linux starts.

Sometimes it might be necessary to extract all files in an initramfs image the check and verify the contents, additionally it might be necessary to change the content of a file in the image.

This document describes how to extract the files from an initramfs image, how to add files and how to put it back together

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms