免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1858 | 回复: 4

把/dev/hda5 这个linux分区做成cramfs格式的文件系统,怎么做? [复制链接]

论坛徽章:
0
发表于 2009-05-12 17:37 |显示全部楼层
usage: mkfs.cramfs [-h] [-v] [-b blksz] [-e edition] [-i file] [-n name] dirname outfile
-h         print this help
-v         be verbose
-E         make all warnings errors (non-zero exit status)
-b blksz   use this blocksize, must equal page size
-e edition set edition number (part of fsid)
-i file    insert a file image into the filesystem (requires >= 2.4.0)
-n name    set name of cramfs filesystem
-p         pad by 512 bytes for boot code
-s         sort directory entries (old option, ignored)
-z         make explicit holes (requires >= 2.3.39)
dirname    root of the filesystem to be compressed
outfile    output file
大家看看那,我想把/dev/hda5 这个linux分区做成cramfs格式的文件系统,怎么做?

论坛徽章:
0
发表于 2009-05-12 21:41 |显示全部楼层
mkfs.cramfs target_dir yourcramfs
dd if=cramfs of=/dev/hda5

不知道是否可行。

论坛徽章:
0
发表于 2009-05-13 11:32 |显示全部楼层

回复 #2 connet 的帖子

-i file    insert a file image into the filesystem (requires >= 2.4.0)
这行是啥意思啊?

论坛徽章:
0
发表于 2009-05-13 12:09 |显示全部楼层
增加一个文件到 img

论坛徽章:
0
发表于 2009-05-14 14:25 |显示全部楼层

回复 #4 connet 的帖子

谢谢了,问题我解决了,哈哈,最直接的方式就是,用16位文本编辑器查看做好的cramfs镜像文件,然后再做考虑,参考了《CramFS在Linux嵌入式環境的應用》http://blog.21ic.com/user1/2543/archives/2006/13627.html ------感谢该文的作者,也感谢connet   的回答
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP