cpio compress and extract
来源:互联网 发布:粤贵银交易软件 编辑:程序博客网 时间:2024/05/16 06:41
cpio compress and extract
we often see a file is a *.cpio.gz, normally it is a gzip compressed data.
“gunzip file.cpio.gz” to extract it to a file.cpio, whichi is a ASCII cpio archive.
“cpio -ivmd < file.cpio” can extract it finally.
we can use “find . | cpio -o –format=newc > ../file.cpio” to compress a directory
to file.cpio. this command should be run in the root of the directory.
then we use “gzip -c file.cpio > file.cpio.gz” to get orignal gzip compressed file.
One initrd file system should be cpio.gz type. for example, we can run a qemu
besed on memory initrd file system like:
qemu-system-aarch64 -machine virt -cpu cortex-a57 \-m 300M \-kernel ~/repos/linux/arch/arm64/boot/Image \-initrd ~/rootfs/rootfs.cpio.gz \-append "console=ttyAMA0 root=/dev/ram rdinit=/init" \-nographic \
Note: as we run rootfs in memory, -m parametre above should carefully choose.
too small is a bad idear.
0 0
- cpio compress and extract
- tar command extract and compress
- extract-cpio.sh
- Unix/Linux压缩命令 bzip/bzip2/zip/compress/dd/cpio/
- sql and oracle compress
- About Compress Tables and structure
- cpio
- cpio
- cpio
- cpio
- cpio
- cpio
- cpio
- Linux 压缩 解压命令 tar, gzip, zcat,bzip2, bzcat,compress,dd,cpio
- Encrypt Trail and Extract files
- extract uri key and value
- compress
- compress
- Swift3.0学习笔记-第一个app
- 12.6英语专场
- javaScript(一)_历史
- PS之模式其他补充,及通道实例
- 多行文本溢出显示省略号(...)的方法
- cpio compress and extract
- Qt5.7不能加载MySql驱动问题.(需要重新编译驱动)
- 自己写的一个项目自动更新的Linux脚本
- Android studio连接不上创建好的模拟器
- springmvc 集成 mybatis 使用懒加载后,返回JSON报错
- Vagrant box 增加磁盘容量方法
- “CDatabase”未声明的标识符
- android复习路之tween动画篇
- RBAC