
把initrd.img改名为gz后,用gunzip解压得到initrd文件,然后mount -o loop initrd /mnt 提示:mount: you must specify the filesystem type 尝试ext2,ext3都无效,用file命令发现原来是cpio格式的。
initrd: ASCII cpio archive (SVR4 with no CRC)
用cpio解压方法如下:cpio -id < ./initrd
这样就可以正常解压出initrd的文件内容了。(这里解压用的是redhat系统的initrd文件,我记得turbo系统的initrd...