Sample Header Ad - 728x90

How do I uncompress or unarchive the contents of initramfs img file in Arch Linux?

2 votes
1 answer
3140 views
I have been using **Arch Linux** for a while and studying about the **initramfs**. I thought of looking into the contents of the file to get a clear idea of it. I googled for various ways to peek through the file but I was not able to. Initially, I checked the file type of initramfs using the below command and got the following output: file /boot/initramfs-linux.img /boot/initramfs-linux.img: Zstandard compressed data (v0.8+), Dictionary IS: None I found that the file was **Zstandard compressed** and used the **zstd** tool to fetch the content of the file as follows: zstd -d /boot/initramfs-linux.img -o SOME_FILE_NAME That yielded gibberish result. I gave a file name as it's argument since it complained when I gave a directory. I thought that the initramfs file contains the initial root file system (set of files and directories). I am **naive** to Arch Linux and it's internals. Kindly help me through this. Thanks.
Asked by Panther Coder (408 rep)
Jul 31, 2022, 08:09 PM
Last activity: Aug 1, 2022, 07:44 AM