My Oracle Support Banner

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

Last updated on SEPTEMBER 07, 2023

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]
Oracle Cloud Infrastructure - Version N/A and later
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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.