开发者

How do I mount a Ubuntu initrd.img?

开发者 https://www.devze.com 2023-03-13 18:10 出处:网络
There is a bug with开发者_如何学Python Ubuntu 10.04 Kernel updates (-31,-32) and I want to mount the initrd.img so I can compare the kernel images and see which modules are missing.

There is a bug with开发者_如何学Python Ubuntu 10.04 Kernel updates (-31,-32) and I want to mount the initrd.img so I can compare the kernel images and see which modules are missing.

I have already tried -o loop with no success. Anyone have any advice?


The initrd (technically initramfs) is a compressed CPIO archive. You can use the cpio command to manipulate it.

For example: zcat initramfs|cpio -tiv will list the files in the archive.


For recent Ubuntu version (22.04 in my case), initrd.img is compressed using LZ4 algorithm. I have to run lz4cat initrd.img | cpio -tiv.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号