]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sbin/newfs_nandfs/newfs_nandfs.8
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sbin / newfs_nandfs / newfs_nandfs.8
1 .\"
2 .\" Copyright (c) 2010 Semihalf
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\"
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 .\" SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD$
27 .\"
28 .Dd October 1, 2013
29 .Dt NEWFS_NANDFS 8
30 .Os
31 .Sh NAME
32 .Nm newfs_nandfs
33 .Nd construct a new NAND FS file system
34 .Sh SYNOPSIS
35 .Nm
36 .Op Fl b Ar blocsize
37 .Op Fl B Ar blocks-per-segment
38 .Op Fl L Ar label
39 .Op Fl m Ar reserved-segment-percent
40 .Ar device
41 .Sh DESCRIPTION
42 The
43 .Nm
44 utility creates a NAND FS file system on device.
45 .Pp
46 The options are as follow:
47 .Bl -tag -width indent
48 .It Fl b Ar blocksize
49 Size of block (1024 if not specified).
50 .It Fl B Ar blocks_per_segment
51 Number of blocks per segment (2048 if not specified).
52 .It Fl L Ar label
53 Volume label (up to 16 characters).
54 .It Fl m Ar reserved_block_percent
55 Percentage of reserved blocks (5 if not specified).
56 .El
57 .Sh EXIT STATUS
58 Exit status is 0 on success and 1 on error.
59 .Sh EXAMPLES
60 Create a file system, using default parameters, on
61 .Pa /dev/ada0s1 :
62 .Bd -literal -offset indent
63 newfs_nandfs /dev/ada0s1
64 .Ed
65 .Sh SEE ALSO
66 .Xr disktab 5 ,
67 .Xr disklabel 8 ,
68 .Xr fdisk 8 ,
69 .Xr newfs 8
70 .Sh HISTORY
71 The
72 .Nm
73 utility first appeared in
74 .Fx 10.0 .
75 .Sh AUTHOR
76 .An Grzegorz Bernacki