Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 635 Bytes

Readme.md

File metadata and controls

39 lines (26 loc) · 635 Bytes

mkcfs

The mkcfs tool is a command line tool for creating a CFS file system image.

Installation

cargo install mkcfs

Build

cargo build --release

Usage

First, you need to create a image file with the desired size. For example, to create a 1GB image file:

dd if=/dev/zero of=image.cfs bs=1M count=1024

Then, you can create a CFS file system image with the mkcfs tool:

mkcfs image.cfs -b 4096

Where -b specifies the block size of the file system. The default block size is 4096 bytes.

For more information, please refer to the help message:

mkcfs --help