xref: /minix3/usr.sbin/makefs/makefs.8 (revision 9f988b79349f9b89ecc822458c30ec8897558560)
1*9f988b79SJean-Baptiste Boric.\"	$NetBSD: makefs.8,v 1.53 2013/08/06 20:16:54 wiz Exp $
2*9f988b79SJean-Baptiste Boric.\"
3*9f988b79SJean-Baptiste Boric.\" Copyright (c) 2001-2003 Wasabi Systems, Inc.
4*9f988b79SJean-Baptiste Boric.\" All rights reserved.
5*9f988b79SJean-Baptiste Boric.\"
6*9f988b79SJean-Baptiste Boric.\" Written by Luke Mewburn for Wasabi Systems, Inc.
7*9f988b79SJean-Baptiste Boric.\"
8*9f988b79SJean-Baptiste Boric.\" Redistribution and use in source and binary forms, with or without
9*9f988b79SJean-Baptiste Boric.\" modification, are permitted provided that the following conditions
10*9f988b79SJean-Baptiste Boric.\" are met:
11*9f988b79SJean-Baptiste Boric.\" 1. Redistributions of source code must retain the above copyright
12*9f988b79SJean-Baptiste Boric.\"    notice, this list of conditions and the following disclaimer.
13*9f988b79SJean-Baptiste Boric.\" 2. Redistributions in binary form must reproduce the above copyright
14*9f988b79SJean-Baptiste Boric.\"    notice, this list of conditions and the following disclaimer in the
15*9f988b79SJean-Baptiste Boric.\"    documentation and/or other materials provided with the distribution.
16*9f988b79SJean-Baptiste Boric.\" 3. All advertising materials mentioning features or use of this software
17*9f988b79SJean-Baptiste Boric.\"    must display the following acknowledgement:
18*9f988b79SJean-Baptiste Boric.\"      This product includes software developed for the NetBSD Project by
19*9f988b79SJean-Baptiste Boric.\"      Wasabi Systems, Inc.
20*9f988b79SJean-Baptiste Boric.\" 4. The name of Wasabi Systems, Inc. may not be used to endorse
21*9f988b79SJean-Baptiste Boric.\"    or promote products derived from this software without specific prior
22*9f988b79SJean-Baptiste Boric.\"    written permission.
23*9f988b79SJean-Baptiste Boric.\"
24*9f988b79SJean-Baptiste Boric.\" THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
25*9f988b79SJean-Baptiste Boric.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26*9f988b79SJean-Baptiste Boric.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27*9f988b79SJean-Baptiste Boric.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
28*9f988b79SJean-Baptiste Boric.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29*9f988b79SJean-Baptiste Boric.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30*9f988b79SJean-Baptiste Boric.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31*9f988b79SJean-Baptiste Boric.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32*9f988b79SJean-Baptiste Boric.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33*9f988b79SJean-Baptiste Boric.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34*9f988b79SJean-Baptiste Boric.\" POSSIBILITY OF SUCH DAMAGE.
35*9f988b79SJean-Baptiste Boric.\"
36*9f988b79SJean-Baptiste Boric.Dd August 6, 2013
37*9f988b79SJean-Baptiste Boric.Dt MAKEFS 8
38*9f988b79SJean-Baptiste Boric.Os
39*9f988b79SJean-Baptiste Boric.Sh NAME
40*9f988b79SJean-Baptiste Boric.Nm makefs
41*9f988b79SJean-Baptiste Boric.Nd create a file system image from a directory tree
42*9f988b79SJean-Baptiste Boric.Sh SYNOPSIS
43*9f988b79SJean-Baptiste Boric.Nm
44*9f988b79SJean-Baptiste Boric.Op Fl rxZ
45*9f988b79SJean-Baptiste Boric.Op Fl B Ar endian
46*9f988b79SJean-Baptiste Boric.Op Fl b Ar free-blocks
47*9f988b79SJean-Baptiste Boric.Op Fl d Ar debug-mask
48*9f988b79SJean-Baptiste Boric.Op Fl F Ar mtree-specfile
49*9f988b79SJean-Baptiste Boric.Op Fl f Ar free-files
50*9f988b79SJean-Baptiste Boric.Op Fl M Ar minimum-size
51*9f988b79SJean-Baptiste Boric.Op Fl m Ar maximum-size
52*9f988b79SJean-Baptiste Boric.Op Fl N Ar userdb-dir
53*9f988b79SJean-Baptiste Boric.Op Fl O Ar offset
54*9f988b79SJean-Baptiste Boric.Op Fl o Ar fs-options
55*9f988b79SJean-Baptiste Boric.Op Fl S Ar sector-size
56*9f988b79SJean-Baptiste Boric.Op Fl s Ar image-size
57*9f988b79SJean-Baptiste Boric.Op Fl t Ar fs-type
58*9f988b79SJean-Baptiste Boric.Ar image-file
59*9f988b79SJean-Baptiste Boric.Ar directory
60*9f988b79SJean-Baptiste Boric.Op Ar extra-directory ...
61*9f988b79SJean-Baptiste Boric.Sh DESCRIPTION
62*9f988b79SJean-Baptiste BoricThe utility
63*9f988b79SJean-Baptiste Boric.Nm
64*9f988b79SJean-Baptiste Boriccreates a file system image into
65*9f988b79SJean-Baptiste Boric.Ar image-file
66*9f988b79SJean-Baptiste Boricfrom the directory tree
67*9f988b79SJean-Baptiste Boric.Ar directory .
68*9f988b79SJean-Baptiste BoricIf any optional directory trees are passed in the
69*9f988b79SJean-Baptiste Boric.Ar extra-directory
70*9f988b79SJean-Baptiste Boricarguments, then the directory tree of each argument will be merged
71*9f988b79SJean-Baptiste Boricinto the
72*9f988b79SJean-Baptiste Boric.Ar directory
73*9f988b79SJean-Baptiste Boricfirst before creating
74*9f988b79SJean-Baptiste Boric.Ar image-file .
75*9f988b79SJean-Baptiste BoricNo special devices or privileges are required to perform this task.
76*9f988b79SJean-Baptiste Boric.Pp
77*9f988b79SJean-Baptiste BoricThe options are as follows:
78*9f988b79SJean-Baptiste Boric.Bl -tag -width flag
79*9f988b79SJean-Baptiste Boric.It Fl B Ar endian
80*9f988b79SJean-Baptiste BoricSet the byte order of the image to
81*9f988b79SJean-Baptiste Boric.Ar endian .
82*9f988b79SJean-Baptiste BoricValid byte orders are
83*9f988b79SJean-Baptiste Boric.Ql 4321 ,
84*9f988b79SJean-Baptiste Boric.Ql big ,
85*9f988b79SJean-Baptiste Boricor
86*9f988b79SJean-Baptiste Boric.Ql be
87*9f988b79SJean-Baptiste Boricfor big endian, and
88*9f988b79SJean-Baptiste Boric.Ql 1234 ,
89*9f988b79SJean-Baptiste Boric.Ql little ,
90*9f988b79SJean-Baptiste Boricor
91*9f988b79SJean-Baptiste Boric.Ql le
92*9f988b79SJean-Baptiste Boricfor little endian.
93*9f988b79SJean-Baptiste BoricSome file systems may have a fixed byte order; in those cases this
94*9f988b79SJean-Baptiste Boricargument will be ignored.
95*9f988b79SJean-Baptiste Boric.It Fl b Ar free-blocks
96*9f988b79SJean-Baptiste BoricEnsure that a minimum of
97*9f988b79SJean-Baptiste Boric.Ar free-blocks
98*9f988b79SJean-Baptiste Boricfree blocks exist in the image.
99*9f988b79SJean-Baptiste BoricAn optional
100*9f988b79SJean-Baptiste Boric.Ql %
101*9f988b79SJean-Baptiste Boricsuffix may be provided to indicate that
102*9f988b79SJean-Baptiste Boric.Ar free-blocks
103*9f988b79SJean-Baptiste Boricindicates a percentage of the calculated image size.
104*9f988b79SJean-Baptiste Boric.It Fl d Ar debug-mask
105*9f988b79SJean-Baptiste BoricEnable various levels of debugging, depending upon which bits are
106*9f988b79SJean-Baptiste Boricset in
107*9f988b79SJean-Baptiste Boric.Ar debug-mask .
108*9f988b79SJean-Baptiste BoricXXX: document these
109*9f988b79SJean-Baptiste Boric.It Fl F Ar mtree-specfile
110*9f988b79SJean-Baptiste BoricUse
111*9f988b79SJean-Baptiste Boric.Ar mtree-specfile
112*9f988b79SJean-Baptiste Boricas an
113*9f988b79SJean-Baptiste Boric.Xr mtree 8
114*9f988b79SJean-Baptiste Boric.Sq specfile
115*9f988b79SJean-Baptiste Boricspecification.
116*9f988b79SJean-Baptiste Boric.Pp
117*9f988b79SJean-Baptiste BoricIf a specfile entry exists in the underlying file system, its
118*9f988b79SJean-Baptiste Boricpermissions and modification time will be used unless specifically
119*9f988b79SJean-Baptiste Boricoverridden by the specfile.
120*9f988b79SJean-Baptiste BoricAn error will be raised if the type of entry in the specfile
121*9f988b79SJean-Baptiste Boricconflicts with that of an existing entry.
122*9f988b79SJean-Baptiste Boric.Pp
123*9f988b79SJean-Baptiste BoricIn the opposite case (where a specfile entry does not have an entry
124*9f988b79SJean-Baptiste Boricin the underlying file system) the following occurs:
125*9f988b79SJean-Baptiste BoricIf the specfile entry is marked
126*9f988b79SJean-Baptiste Boric.Sy optional ,
127*9f988b79SJean-Baptiste Boricthe specfile entry is ignored.
128*9f988b79SJean-Baptiste BoricOtherwise, the entry will be created in the image, and it is
129*9f988b79SJean-Baptiste Boricnecessary to specify at least the following parameters in the
130*9f988b79SJean-Baptiste Boricspecfile:
131*9f988b79SJean-Baptiste Boric.Sy type ,
132*9f988b79SJean-Baptiste Boric.Sy mode ,
133*9f988b79SJean-Baptiste Boric.Sy gname ,
134*9f988b79SJean-Baptiste Boricor
135*9f988b79SJean-Baptiste Boric.Sy gid ,
136*9f988b79SJean-Baptiste Boricand
137*9f988b79SJean-Baptiste Boric.Sy uname
138*9f988b79SJean-Baptiste Boricor
139*9f988b79SJean-Baptiste Boric.Sy uid ,
140*9f988b79SJean-Baptiste Boric.Sy device
141*9f988b79SJean-Baptiste Boric(in the case of block or character devices), and
142*9f988b79SJean-Baptiste Boric.Sy link
143*9f988b79SJean-Baptiste Boric(in the case of symbolic links).
144*9f988b79SJean-Baptiste BoricIf
145*9f988b79SJean-Baptiste Boric.Sy time
146*9f988b79SJean-Baptiste Boricisn't provided, the current time will be used.
147*9f988b79SJean-Baptiste BoricIf
148*9f988b79SJean-Baptiste Boric.Sy flags
149*9f988b79SJean-Baptiste Boricisn't provided, the current file flags will be used.
150*9f988b79SJean-Baptiste BoricMissing regular file entries will be created as zero-length files.
151*9f988b79SJean-Baptiste Boric.It Fl f Ar free-files
152*9f988b79SJean-Baptiste BoricEnsure that a minimum of
153*9f988b79SJean-Baptiste Boric.Ar free-files
154*9f988b79SJean-Baptiste Boricfree files (inodes) exist in the image.
155*9f988b79SJean-Baptiste BoricAn optional
156*9f988b79SJean-Baptiste Boric.Ql %
157*9f988b79SJean-Baptiste Boricsuffix may be provided to indicate that
158*9f988b79SJean-Baptiste Boric.Ar free-files
159*9f988b79SJean-Baptiste Boricindicates a percentage of the calculated image size.
160*9f988b79SJean-Baptiste Boric.It Fl M Ar minimum-size
161*9f988b79SJean-Baptiste BoricSet the minimum size of the file system image to
162*9f988b79SJean-Baptiste Boric.Ar minimum-size .
163*9f988b79SJean-Baptiste Boric.It Fl m Ar maximum-size
164*9f988b79SJean-Baptiste BoricSet the maximum size of the file system image to
165*9f988b79SJean-Baptiste Boric.Ar maximum-size .
166*9f988b79SJean-Baptiste BoricAn error will be raised if the target file system needs to be larger
167*9f988b79SJean-Baptiste Boricthan this to accommodate the provided directory tree.
168*9f988b79SJean-Baptiste Boric.It Fl N Ar userdb-dir
169*9f988b79SJean-Baptiste BoricUse the user database text file
170*9f988b79SJean-Baptiste Boric.Pa master.passwd
171*9f988b79SJean-Baptiste Boricand group database text file
172*9f988b79SJean-Baptiste Boric.Pa group
173*9f988b79SJean-Baptiste Boricfrom
174*9f988b79SJean-Baptiste Boric.Ar userdb-dir ,
175*9f988b79SJean-Baptiste Boricrather than using the results from the system's
176*9f988b79SJean-Baptiste Boric.Xr getpwnam 3
177*9f988b79SJean-Baptiste Boricand
178*9f988b79SJean-Baptiste Boric.Xr getgrnam 3
179*9f988b79SJean-Baptiste Boric(and related) library calls.
180*9f988b79SJean-Baptiste Boric.It Fl O Ar offset
181*9f988b79SJean-Baptiste BoricInstead of creating the filesystem at the beginning of the file, start
182*9f988b79SJean-Baptiste Boricat offset.
183*9f988b79SJean-Baptiste BoricValid only for
184*9f988b79SJean-Baptiste Boric.Sy ffs
185*9f988b79SJean-Baptiste Boricand
186*9f988b79SJean-Baptiste Boric.Sy msdos .
187*9f988b79SJean-Baptiste Boric.It Fl o Ar fs-options
188*9f988b79SJean-Baptiste BoricSet file system specific options.
189*9f988b79SJean-Baptiste Boric.Ar fs-options
190*9f988b79SJean-Baptiste Boricis a comma separated list of options.
191*9f988b79SJean-Baptiste BoricValid file system specific options are detailed below.
192*9f988b79SJean-Baptiste Boric.It Fl r
193*9f988b79SJean-Baptiste BoricWhen merging multiple directories replace duplicate files with the last found.
194*9f988b79SJean-Baptiste Boric.It Fl S Ar sector-size
195*9f988b79SJean-Baptiste BoricSet the file system sector size to
196*9f988b79SJean-Baptiste Boric.Ar sector-size .
197*9f988b79SJean-Baptiste Boric.\" XXX: next line also true for cd9660?
198*9f988b79SJean-Baptiste BoricDefaults to 512.
199*9f988b79SJean-Baptiste Boric.It Fl s Ar image-size
200*9f988b79SJean-Baptiste BoricSet the size of the file system image to
201*9f988b79SJean-Baptiste Boric.Ar image-size .
202*9f988b79SJean-Baptiste Boric.It Fl t Ar fs-type
203*9f988b79SJean-Baptiste BoricCreate an
204*9f988b79SJean-Baptiste Boric.Ar fs-type
205*9f988b79SJean-Baptiste Boricfile system image.
206*9f988b79SJean-Baptiste BoricThe following file system types are supported:
207*9f988b79SJean-Baptiste Boric.Bl -tag -width cd9660 -offset indent
208*9f988b79SJean-Baptiste Boric.It Sy ffs
209*9f988b79SJean-Baptiste BoricBSD fast file system (default).
210*9f988b79SJean-Baptiste Boric.It Sy cd9660
211*9f988b79SJean-Baptiste BoricISO 9660 file system.
212*9f988b79SJean-Baptiste Boric.It Sy chfs
213*9f988b79SJean-Baptiste BoricChip flash file system.
214*9f988b79SJean-Baptiste Boric.It Sy msdos
215*9f988b79SJean-Baptiste BoricFAT12, FAT16, or FAT32 file system.
216*9f988b79SJean-Baptiste Boric.It Sy v7fs
217*9f988b79SJean-Baptiste Boric7th Edition(V7) file system.
218*9f988b79SJean-Baptiste Boric.It Sy udf
219*9f988b79SJean-Baptiste BoricISO/Ecma UDF file system.
220*9f988b79SJean-Baptiste Boric.El
221*9f988b79SJean-Baptiste Boric.It Fl x
222*9f988b79SJean-Baptiste BoricExclude file system nodes not explicitly listed in the specfile.
223*9f988b79SJean-Baptiste Boric.It Fl Z
224*9f988b79SJean-Baptiste BoricCreate a sparse file for
225*9f988b79SJean-Baptiste Boric.Sy ffs .
226*9f988b79SJean-Baptiste BoricThis is useful for virtual machine images.
227*9f988b79SJean-Baptiste Boric.El
228*9f988b79SJean-Baptiste Boric.Pp
229*9f988b79SJean-Baptiste BoricWhere sizes are specified, a decimal number of bytes is expected.
230*9f988b79SJean-Baptiste BoricTwo or more numbers may be separated by an
231*9f988b79SJean-Baptiste Boric.Dq x
232*9f988b79SJean-Baptiste Boricto indicate a product.
233*9f988b79SJean-Baptiste BoricEach number may have one of the following optional suffixes:
234*9f988b79SJean-Baptiste Boric.Bl -tag -width 3n -offset indent -compact
235*9f988b79SJean-Baptiste Boric.It b
236*9f988b79SJean-Baptiste BoricBlock; multiply by 512
237*9f988b79SJean-Baptiste Boric.It k
238*9f988b79SJean-Baptiste BoricKibi; multiply by 1024 (1 KiB)
239*9f988b79SJean-Baptiste Boric.It m
240*9f988b79SJean-Baptiste BoricMebi; multiply by 1048576 (1 MiB)
241*9f988b79SJean-Baptiste Boric.It g
242*9f988b79SJean-Baptiste BoricGibi; multiply by 1073741824 (1 GiB)
243*9f988b79SJean-Baptiste Boric.It t
244*9f988b79SJean-Baptiste BoricTebi; multiply by 1099511627776 (1 TiB)
245*9f988b79SJean-Baptiste Boric.It w
246*9f988b79SJean-Baptiste BoricWord; multiply by the number of bytes in an integer
247*9f988b79SJean-Baptiste Boric.El
248*9f988b79SJean-Baptiste Boric.\"
249*9f988b79SJean-Baptiste Boric.\"
250*9f988b79SJean-Baptiste Boric.Ss FFS-specific options
251*9f988b79SJean-Baptiste Boric.Sy ffs
252*9f988b79SJean-Baptiste Boricimages have ffs-specific optional parameters that may be provided.
253*9f988b79SJean-Baptiste BoricEach of the options consists of a keyword, an equal sign
254*9f988b79SJean-Baptiste Boric.Pq Ql = ,
255*9f988b79SJean-Baptiste Boricand a value.
256*9f988b79SJean-Baptiste BoricThe following keywords are supported:
257*9f988b79SJean-Baptiste Boric.Pp
258*9f988b79SJean-Baptiste Boric.Bl -tag -width optimization -offset indent -compact
259*9f988b79SJean-Baptiste Boric.It Sy avgfilesize
260*9f988b79SJean-Baptiste BoricExpected average file size.
261*9f988b79SJean-Baptiste Boric.It Sy avgfpdir
262*9f988b79SJean-Baptiste BoricExpected number of files per directory.
263*9f988b79SJean-Baptiste Boric.It Sy bsize
264*9f988b79SJean-Baptiste BoricBlock size.
265*9f988b79SJean-Baptiste Boric.It Sy density
266*9f988b79SJean-Baptiste BoricBytes per inode.
267*9f988b79SJean-Baptiste Boric.It Sy fsize
268*9f988b79SJean-Baptiste BoricFragment size.
269*9f988b79SJean-Baptiste Boric.It Sy label
270*9f988b79SJean-Baptiste BoricLabel name of the image.
271*9f988b79SJean-Baptiste Boric.It Sy maxbpg
272*9f988b79SJean-Baptiste BoricMaximum blocks per file in a cylinder group.
273*9f988b79SJean-Baptiste Boric.It Sy minfree
274*9f988b79SJean-Baptiste BoricMinimum % free.
275*9f988b79SJean-Baptiste Boric.It Sy optimization
276*9f988b79SJean-Baptiste BoricOptimization preference; one of
277*9f988b79SJean-Baptiste Boric.Ql space
278*9f988b79SJean-Baptiste Boricor
279*9f988b79SJean-Baptiste Boric.Ql time .
280*9f988b79SJean-Baptiste Boric.It Sy extent
281*9f988b79SJean-Baptiste BoricMaximum extent size.
282*9f988b79SJean-Baptiste Boric.It Sy maxbpcg
283*9f988b79SJean-Baptiste BoricMaximum total number of blocks in a cylinder group.
284*9f988b79SJean-Baptiste Boric.It Sy version
285*9f988b79SJean-Baptiste BoricUFS version.
286*9f988b79SJean-Baptiste Boric1 for FFS (default), 2 for UFS2.
287*9f988b79SJean-Baptiste Boric.El
288*9f988b79SJean-Baptiste Boric.Ss CD9660-specific options
289*9f988b79SJean-Baptiste Boric.Sy cd9660
290*9f988b79SJean-Baptiste Boricimages have ISO9660-specific optional parameters that may be
291*9f988b79SJean-Baptiste Boricprovided.
292*9f988b79SJean-Baptiste BoricThe arguments consist of a keyword and, optionally, an equal sign
293*9f988b79SJean-Baptiste Boric.Pq Ql = ,
294*9f988b79SJean-Baptiste Boricand a value.
295*9f988b79SJean-Baptiste BoricThe following keywords are supported:
296*9f988b79SJean-Baptiste Boric.Pp
297*9f988b79SJean-Baptiste Boric.Bl -tag -width omit-trailing-period -offset indent -compact
298*9f988b79SJean-Baptiste Boric.It Sy allow-deep-trees
299*9f988b79SJean-Baptiste BoricAllow the directory structure to exceed the maximum specified in
300*9f988b79SJean-Baptiste Boricthe spec.
301*9f988b79SJean-Baptiste Boric.\" .It Sy allow-illegal-chars
302*9f988b79SJean-Baptiste Boric.\" Unknown
303*9f988b79SJean-Baptiste Boric.\" .It Sy allow-lowercase
304*9f988b79SJean-Baptiste Boric.\" Unknown
305*9f988b79SJean-Baptiste Boric.It Sy allow-max-name
306*9f988b79SJean-Baptiste BoricAllow 37 instead of 33 characters for filenames by omitting the
307*9f988b79SJean-Baptiste Boricversion id.
308*9f988b79SJean-Baptiste Boric.It Sy allow-multidot
309*9f988b79SJean-Baptiste BoricAllow multiple dots in a filename.
310*9f988b79SJean-Baptiste Boric.It Sy applicationid
311*9f988b79SJean-Baptiste BoricApplication ID of the image.
312*9f988b79SJean-Baptiste Boric.It Sy archimedes
313*9f988b79SJean-Baptiste BoricUse the
314*9f988b79SJean-Baptiste Boric.Ql ARCHIMEDES
315*9f988b79SJean-Baptiste Boricextension to encode
316*9f988b79SJean-Baptiste Boric.Tn RISC OS
317*9f988b79SJean-Baptiste Boricmetadata.
318*9f988b79SJean-Baptiste Boric.It Sy chrp-boot
319*9f988b79SJean-Baptiste BoricWrite an MBR partition table to the image to allow older CHRP hardware to
320*9f988b79SJean-Baptiste Boricboot.
321*9f988b79SJean-Baptiste Boric.It Sy boot-load-segment
322*9f988b79SJean-Baptiste BoricSet load segment for the boot image.
323*9f988b79SJean-Baptiste Boric.It Sy bootimage
324*9f988b79SJean-Baptiste BoricFilename of a boot image in the format
325*9f988b79SJean-Baptiste Boric.Dq sysid;filename ,
326*9f988b79SJean-Baptiste Boricwhere
327*9f988b79SJean-Baptiste Boric.Dq sysid
328*9f988b79SJean-Baptiste Boricis one of
329*9f988b79SJean-Baptiste Boric.Ql i386 ,
330*9f988b79SJean-Baptiste Boric.Ql mac68k ,
331*9f988b79SJean-Baptiste Boric.Ql macppc ,
332*9f988b79SJean-Baptiste Boricor
333*9f988b79SJean-Baptiste Boric.Ql powerpc .
334*9f988b79SJean-Baptiste Boric.It Sy generic-bootimage
335*9f988b79SJean-Baptiste BoricLoad a generic boot image into the first 32K of the cd9660 image.
336*9f988b79SJean-Baptiste Boric.It Sy hard-disk-boot
337*9f988b79SJean-Baptiste BoricBoot image is a hard disk image.
338*9f988b79SJean-Baptiste Boric.It Sy keep-bad-images
339*9f988b79SJean-Baptiste BoricDon't throw away images whose write was aborted due to an error.
340*9f988b79SJean-Baptiste BoricFor debugging purposes.
341*9f988b79SJean-Baptiste Boric.It Sy label
342*9f988b79SJean-Baptiste BoricLabel name of the image.
343*9f988b79SJean-Baptiste Boric.It Sy no-boot
344*9f988b79SJean-Baptiste BoricBoot image is not bootable.
345*9f988b79SJean-Baptiste Boric.It Sy no-emul-boot
346*9f988b79SJean-Baptiste BoricBoot image is a
347*9f988b79SJean-Baptiste Boric.Dq no emulation
348*9f988b79SJean-Baptiste BoricElTorito image.
349*9f988b79SJean-Baptiste Boric.It Sy no-trailing-padding
350*9f988b79SJean-Baptiste BoricDo not pad the image (apparently Linux needs the padding).
351*9f988b79SJean-Baptiste Boric.\" .It Sy omit-trailing-period
352*9f988b79SJean-Baptiste Boric.\" Unknown
353*9f988b79SJean-Baptiste Boric.It Sy preparer
354*9f988b79SJean-Baptiste BoricPreparer ID of the image.
355*9f988b79SJean-Baptiste Boric.It Sy publisher
356*9f988b79SJean-Baptiste BoricPublisher ID of the image.
357*9f988b79SJean-Baptiste Boric.It Sy rockridge
358*9f988b79SJean-Baptiste BoricUse RockRidge extensions (for longer filenames, etc.).
359*9f988b79SJean-Baptiste Boric.It Sy volumeid
360*9f988b79SJean-Baptiste BoricVolume set identifier of the image.
361*9f988b79SJean-Baptiste Boric.El
362*9f988b79SJean-Baptiste Boric.Ss CHFS-specific options
363*9f988b79SJean-Baptiste Boric.Sy chfs
364*9f988b79SJean-Baptiste Boricimages have chfs-specific optional parameters that may be provided.
365*9f988b79SJean-Baptiste BoricEach of the options consists of a keyword, an equal sign
366*9f988b79SJean-Baptiste Boric.Pq Ql = ,
367*9f988b79SJean-Baptiste Boricand a value.
368*9f988b79SJean-Baptiste BoricThe following keywords are supported:
369*9f988b79SJean-Baptiste Boric.Pp
370*9f988b79SJean-Baptiste Boric.Bl -tag -width optimization -offset indent -compact
371*9f988b79SJean-Baptiste Boric.It Sy pagesize
372*9f988b79SJean-Baptiste BoricPagesize.
373*9f988b79SJean-Baptiste Boric.It Sy erasesize
374*9f988b79SJean-Baptiste BoricErase block size of the media.
375*9f988b79SJean-Baptiste Boric.It Sy mediatype
376*9f988b79SJean-Baptiste BoricType of the media.
377*9f988b79SJean-Baptiste BoricNOR: 0 or NAND: 1.
378*9f988b79SJean-Baptiste Boric.El
379*9f988b79SJean-Baptiste Boric.Ss msdos-specific options
380*9f988b79SJean-Baptiste BoricSee
381*9f988b79SJean-Baptiste Boric.Xr newfs_msdos 8
382*9f988b79SJean-Baptiste Boricfor fs specific options.
383*9f988b79SJean-Baptiste Boric.Ss V7FS-specific options
384*9f988b79SJean-Baptiste BoricThe following keywords are supported:
385*9f988b79SJean-Baptiste Boric.Pp
386*9f988b79SJean-Baptiste Boric.Bl -tag -width optimization -offset indent -compact
387*9f988b79SJean-Baptiste Boric.It Sy pdp
388*9f988b79SJean-Baptiste BoricPDP endian.
389*9f988b79SJean-Baptiste Boric.It Sy progress
390*9f988b79SJean-Baptiste BoricDisplay a progress meter for the file system construction and file
391*9f988b79SJean-Baptiste Boricpopulation.
392*9f988b79SJean-Baptiste Boric.El
393*9f988b79SJean-Baptiste Boric.Ss UDF-specific options
394*9f988b79SJean-Baptiste Boric.Sy udf
395*9f988b79SJean-Baptiste Boricimages have udf-specific optional parameters that may be provided.
396*9f988b79SJean-Baptiste BoricEach of the options consists of a keyword, an equal sign
397*9f988b79SJean-Baptiste Boric.Pq Ql = ,
398*9f988b79SJean-Baptiste Boricand a value.
399*9f988b79SJean-Baptiste BoricThe following keywords are supported:
400*9f988b79SJean-Baptiste Boric.Pp
401*9f988b79SJean-Baptiste Boric.Bl -tag -width optimization -compact
402*9f988b79SJean-Baptiste Boric.It Sy disctype
403*9f988b79SJean-Baptiste BoricThis can have the following values:
404*9f988b79SJean-Baptiste Boric.Bl -tag -width cdromXdvdromXbdromXXX -compact
405*9f988b79SJean-Baptiste Boric.It Sy cdrom , Sy dvdrom , Sy bdrom
406*9f988b79SJean-Baptiste Boriccreate a read-only fs
407*9f988b79SJean-Baptiste Boric.It Sy dvdram , Sy bdre , Sy disk
408*9f988b79SJean-Baptiste Boriccreate a rewritable fs without sparing for defective sectors
409*9f988b79SJean-Baptiste Boric.It Sy cdr , Sy dvdr , Sy bdr
410*9f988b79SJean-Baptiste Boriccreate a rewritable fs on once recordable media using a VAT
411*9f988b79SJean-Baptiste Boric.It Sy cdrw , Sy dvdrw
412*9f988b79SJean-Baptiste Boriccreate a rewritable fs with sparing for defective sectors
413*9f988b79SJean-Baptiste Boric.El
414*9f988b79SJean-Baptiste BoricWhen an optical media is selected here, the sectorsize and the default disc
415*9f988b79SJean-Baptiste Boricsize is assumed unless given explicitly.
416*9f988b79SJean-Baptiste BoricFor rom images the disc size is the minimum needed.
417*9f988b79SJean-Baptiste Boric.It Sy loglabel
418*9f988b79SJean-Baptiste BoricSet the logical volume label of the disc to the specified argument.
419*9f988b79SJean-Baptiste Boric.It Sy discid
420*9f988b79SJean-Baptiste BoricSet the physical volume label of the disc to the specified argument.
421*9f988b79SJean-Baptiste BoricPrepend the physical volume label with a volumeset label separated
422*9f988b79SJean-Baptiste Boricwith a ':' if wanted.
423*9f988b79SJean-Baptiste BoricFor strict conformance and interchange, don't set the volumeset label
424*9f988b79SJean-Baptiste Boricmanually unless it has an unique hex number in the first 8 character
425*9f988b79SJean-Baptiste Boricpositions.
426*9f988b79SJean-Baptiste Boric.It Sy minver
427*9f988b79SJean-Baptiste BoricSet the minimum UDF version to be used.
428*9f988b79SJean-Baptiste BoricChoose UDF version numbers from 0x102, 0x150, 0x200, and 0x201.
429*9f988b79SJean-Baptiste BoricVersions 0x250 and 0x260 are currently not supported
430*9f988b79SJean-Baptiste Boricin
431*9f988b79SJean-Baptiste Boric.Nm .
432*9f988b79SJean-Baptiste Boric.El
433*9f988b79SJean-Baptiste Boric.Sh SEE ALSO
434*9f988b79SJean-Baptiste Boric.Xr strsuftoll 3 ,
435*9f988b79SJean-Baptiste Boric.Xr installboot 8 ,
436*9f988b79SJean-Baptiste Boric.Xr mtree 8 ,
437*9f988b79SJean-Baptiste Boric.Xr newfs 8
438*9f988b79SJean-Baptiste Boric.Sh HISTORY
439*9f988b79SJean-Baptiste BoricThe
440*9f988b79SJean-Baptiste Boric.Nm
441*9f988b79SJean-Baptiste Boricutility appeared in
442*9f988b79SJean-Baptiste Boric.Nx 1.6 .
443*9f988b79SJean-Baptiste Boric.Sh AUTHORS
444*9f988b79SJean-Baptiste Boric.An Luke Mewburn
445*9f988b79SJean-Baptiste Boric.Aq lukem@NetBSD.org
446*9f988b79SJean-Baptiste Boric(original program),
447*9f988b79SJean-Baptiste Boric.An Daniel Watt ,
448*9f988b79SJean-Baptiste Boric.An Walter Deignan ,
449*9f988b79SJean-Baptiste Boric.An Ryan Gabrys ,
450*9f988b79SJean-Baptiste Boric.An Alan Perez-Rathke ,
451*9f988b79SJean-Baptiste Boric.An Ram Vedam
452*9f988b79SJean-Baptiste Boric(cd9660 support),
453*9f988b79SJean-Baptiste Boric.An UCHIYAMA Yasushi
454*9f988b79SJean-Baptiste Boric(v7fs support),
455*9f988b79SJean-Baptiste Boric.An Tamas Toth
456*9f988b79SJean-Baptiste Boric(chfs support).
457*9f988b79SJean-Baptiste Boric.An Christos Zoulas
458*9f988b79SJean-Baptiste Boric(msdos support).
459*9f988b79SJean-Baptiste Boric.An Reinoud Zandijk
460*9f988b79SJean-Baptiste Boric(udf support).
461