Wednesday, May 22, 2013

How to extract the contents of initrd or initrd.img file?

If you have an initrd.img file use the below command to get the initrd file.

gunzip < <your_initrd.img>


You can mount the initrd file using the command:

mount -ro loop <your_initrd_file> <target_dir>

1 comment:

  1. At first I miss < in first command. Thanks

    ReplyDelete