- 論壇徽章:
- 0
|
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 設(shè)置block(塊)大小,必須等于頁大小
-e edition set edition number (part of fsid)
-i file insert a file image into the filesystem (requires >= 2.4.0) 插入一個(gè)鏡像文件到cramfs文件系統(tǒng)中,該文件鏡像(也就是file,可以是kernel,也可以是其它文件鏡像,該文件在cramfs文件系統(tǒng)中從77字節(jié)處開始寫入,即使把cramfs文件系統(tǒng)掛載后也無法找到,我認(rèn)為相當(dāng)于用dd將file從第77字節(jié)處寫入了cramfs文件系統(tǒng)中)
-n name set name of cramfs filesystem 設(shè)置cramfs文件系統(tǒng)的名稱
-p pad by 512 bytes for boot code 為cramfs文件系統(tǒng)預(yù)留512字節(jié)的空間存放啟動(dòng)代碼
-s sort directory entries (old option, ignored)
-z make explicit holes (requires >= 2.3.39)
dirname root of the filesystem to be compressed 制作的根文件目錄(將該目錄下的所有內(nèi)容做成cramfs文件系統(tǒng))
outfile output file 輸出的cramfs文件系統(tǒng)鏡像文件
例子1:只把根文件目錄做成cramfs文件系統(tǒng)鏡像文件
#mkfs.cramfs dirname outfile
例子2:把kernel文件以及根文件目錄做成cramfs文件系統(tǒng)鏡像文件
#mkfs.cramfs -i kernel dirname outfile |
|