13 .Op Fl z Ar zone_shift
14 .Op Fl x Ar extra_space
20 The following options are available:
21 .Bl -tag -width indent
23 Make a listing on standard output
29 Do not test if file system fits on the medium
31 Be verbose on standard error stream; more
33 options add to verbosity
35 Number of i-nodes (files)
37 Filesystem block size (in bytes)
39 Filesystem size (in blocks)
41 Write filesystem starting at offset (in bytes)
43 Use timestamp for inode times
44 .It Fl x Ar extra_space
45 Extra space after dynamic sizing (blocks and inodes)
46 .It Fl z Ar zone_shift
47 Logarithm of the size of a zone with respect to a zone.
48 With the default value of 0 zones are of the same size as blocks;
49 with 1, each zone is made of two blocks; etc.
61 Make empty 300,000-block file system
64 .Cm -b 300000 /dev/c0d0p0s0
67 Alternate way to specify the size
70 .Cm /dev/c0d0p0s0 300000
76 builds a file system and copies specified files to it.
77 The prototype file tells which directories and files to copy to it.
78 If the prototype file cannot be opened, and its name is just a string of
79 digits, an empty file system will be made with the specified number of
81 A sample prototype file follows.
82 The text following the \fI#\fR sign in the example below is comment.
83 In real prototype files, comments are not allowed.
85 boot # boot block file (ignored)
86 360 63 # blocks and i-nodes
87 d--755 1 1 # root directory
88 bin d--755 \|2 1 # bin dir: mode (755), uid (2), gid (1)
89 sh \|---755 2 1 /user/bin/shell # shell has mode \fIrwxr-xr-x\fP
90 mv -u-755 2 1 /user/bin/mv # u = SETUID bit
91 login -ug755 2 1 /user/bin/login # SETUID and SETGID
93 dev d--755 2 1 # special files: tty (char), fd0 (block)
94 tty c--777 2 1 4 0 # uid=2, gid=1, major=4, minor=0
95 fd0 b--644 2 1 2 0 360 # uid, gid, major, minor, blocks
97 user d--755 12 1 # user dir: mode (755), uid (12), gid (1)
98 ast d--755 12 1 # \fI/user/ast\fP
99 $ # \fI/user/ast\fP is empty
100 $ # end of \fI/user\fP
101 $ # end of root directory
104 The first entry on each line (except the first 3 and the $ lines, which
105 terminate directories) is the name the file or directory will get on the
107 Next comes its mode, with the first character being
109 for regular files, directories, block special files, character
110 special files, and symlinks, respectively.
111 The next two characters are used to specify the SETUID and SETGID bits, as
113 The last three characters of the mode are the
115 protection bits, in octal notation.
117 Following the mode are the uid and gid.
118 For special files, the major and minor devices are needed.
126 utility was written by
127 .An Andy Tanenbaum, Paul Ogilvie, Frans Meulenbroeks, Bruce Evans