1MKFS.CRAMFS(8)               System Administration              MKFS.CRAMFS(8)
2
3
4

NAME

6       mkfs.cramfs - make compressed ROM file system
7

SYNOPSIS

9       mkfs.cramfs [options] directory file
10

DESCRIPTION

12       Files  on cramfs file systems are zlib-compressed one page at a time to
13       allow random read access.  The  metadata  is  not  compressed,  but  is
14       expressed  in  a terse representation that is more space-efficient than
15       conventional file systems.
16
17       The file system is intentionally read-only to simplify its design; ran‐
18       dom  write  access  for  compressed  files  is  difficult to implement.
19       cramfs ships with a utility (mkcramfs) to pack files  into  new  cramfs
20       images.
21
22       File sizes are limited to less than 16 MB.
23
24       Maximum  file  system size is a little under 272 MB.  (The last file on
25       the file system must begin before the 256 MB block, but can extend past
26       it.)
27

ARGUMENTS

29       The  directory is simply the root of the directory tree that we want to
30       generate a compressed filesystem out of.
31
32       The file will contain the cram file system, which later can be mounted.
33

OPTIONS

35       -v     Enable verbose messaging.
36
37       -E     Treat all warnings as errors, which  are  reflected  as  command
38              return value.
39
40       -b blocksize
41              Use defined block size, which has to be divisible by page size.
42
43       -e edition
44              Use defined file system edition number in superblock.
45
46       -N big, little, host
47              Use defined endianness.  Value defaults to host.
48
49       -i file
50              Insert a file to cramfs file system.
51
52       -n name
53              Set name of the cramfs file system.
54
55       -p     Pad by 512 bytes for boot code.
56
57       -s     This  option  is ignored.  Originally the -s turned on directory
58              entry sorting.
59
60       -z     Make explicit holes.
61
62       -h, --help
63              Display help text and exit.
64
65       -V, --version
66              Display version information and exit.
67

EXIT STATUS

69              0      success
70              8      operation error, such as unable to allocate memory
71

SEE ALSO

73       fsck.cramfs(8), mount(8)
74

AVAILABILITY

76       The example command is part of the util-linux package and is  available
77       from Linux Kernel Archive ⟨https://www.kernel.org/pub/linux/utils/util-
78       linux/⟩.
79
80
81
82util-linux                        April 2013                    MKFS.CRAMFS(8)
Impressum