Use the following command :
1.UNCOMPRESS :
uncompress the image and extract the archive into /tmp/initrd
-----
#gzip -dc < /tmp/initrd.img | cpio -idv ----- or ---- zcat -d image|cpio -idv ---- 2COMPRESS :
a) Generate a list of files to be made into a new cpio archive.
-----
#find . -depth -print | cpio -ovc > ../custom-initrd.cpio
-----
b) gzip the cpio image:
-----
#gzip -9 ../custom-initrd.cpio
-----
tc..
Monday, 11 April 2011
How to compress and uncompress image file on linux?
Posted on 22:06 by Unknown
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment