| |
| initrd-2.6.9-5.EL.img小技巧 |
|
| 来源:
ChinaUnix博客 日期:
2007.06.23 00:02 (共有条评论) 我要评论 |
| |
initrd-2.6.9-5.EL.img
解压
gzip -dc initrd-2.6.9-5.EL.img |cpio -div
压缩
find xxx yyy | cpio -ov -H crc |gzip -9> zz.cgz
解压缩 .cgz文件
cpio -divm <**.cgz
打开initrd.img文件
mv initrd.img initrd.gz
gzip -d initrd.gz
mount -o loop initrd /dir
gzip
-d decompress
-c write on standard output, keep original files unchanged
-9 compress better
cpio
-d Create leading directories where needed
-i Extract files from an archive (run in copy-in mode)
-v Verbosely list the files processed
-m Retain previous file modification times when creating files
-o Create the archive (run in copy-out mode)
-H --format=FORMAT Use given archive FORMAT
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/15901/showart_326794.html
|
| 发表评论
查看评论(共有条评论)
我要提问
|
| |
|
|
|