1MKFS.NILFS2(8)              System Manager's Manual             MKFS.NILFS2(8)
2
3
4

NAME

6       mkfs.nilfs2 - create a NILFS2 filesystem
7

SYNOPSIS

9       mkfs  -t nilfs2 [ -b block-size ] [ -B blocks-per-segment ] [ -c ] [ -L
10       volume-label ] [ -m reserved-segments-percentage ] [ -n ] [ -q ] [ -V ]
11       device
12
13       mkfs.nilfs2  [  -b  block-size  ] [ -B blocks-per-segment ] [ -c ] [ -L
14       volume-label ] [ -m reserved-segments-percentage ] [ -n ] [ -q ] [ -V ]
15       device
16

DESCRIPTION

18       mkfs.nilfs2  is  used  to create a nilfs2 filesystem (usually in a disk
19       partition).  device is the special file  corresponding  to  the  device
20       (e.g.   /dev/sdXX).  Usually  mkfs.nilfs2  is  invoked from the mkfs(8)
21       front-end program.
22
23       The exit code returned by mkfs.nilfs2 is 0 on success and 1 on failure.
24

OPTIONS

26       -b block-size
27              Specify the size of blocks in bytes.  The valid  block  size  is
28              1024, 2048, 4096, 8192 bytes, ..., and the maximum block size is
29              restricted to the system page size.  For most  machines,  it  is
30              4096 bytes.  The default block size is 4096 bytes.
31
32       -B blocks-per-segment
33              Specify  the  number  of  blocks in a segment, where the segment
34              (also called full segment) is an allocation unit of  disk  space
35              of  NILFS.   This parameter gives the size of segment and conse‐
36              quently determines how many segments are aligned in  the  speci‐
37              fied  device.   The default number of blocks per segment is 2048
38              (= 8MB with 4KB blocks).
39
40       -c     Check the device for bad blocks before building the filesystem.
41
42       -L new-volume-label
43              Set the volume label for  the  filesystem  to  new-volume-label.
44              The maximum length of the volume label is 16 bytes.
45
46       -m reserved-segments-percentage
47              Specify the percentage of the segments reserved for garbage col‐
48              lection.  The default percentage is 5%.
49
50       -n     Cause mkfs.nilfs2 to not actually create a filesystem, but  dis‐
51              play what it would be do if it were to create a filesystem.
52
53       -q     Quiet execution.  Useful if mkfs.nilfs2 is run in a script.
54
55       -V     Print the version number of mkfs.nilfs2 and exit.
56

AUTHOR

58       This  version  of  mkfs.nilfs2  has  been  written  by  Ryusuke Konishi
59       <ryusuke@osrg.net>.
60

AVAILABILITY

62       mkfs.nilfs2 is part of the nilfs-utils package and  is  available  from
63       http://www.nilfs.org.
64

SEE ALSO

66       nilfs(8), mkfs(8), badblocks(8).
67
68
69
70nilfs-utils version 2.0            May 2008                     MKFS.NILFS2(8)
Impressum