1 .\" $NetBSD: newfs_udf.8,v 1.6 2009/12/23 09:13:21 mbalmer Exp $
3 .\" Copyright (c) 2008 Reinoud Zandijk
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in
13 .\" the documentation and/or other materials provided with the
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
17 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY
20 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
22 .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24 .\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 .Nd construct a new UDF file system
42 .Op Fl p Ar percentage
50 utility creates an UDF file system on device
52 suitable for the media currently inserted.
54 The options are as follow:
55 .Bl -tag -width indent
57 Perform a crude surface check first to weed out disc faults on rewritable
60 Force file system construction on non-empty recordable media.
62 Set the disc logical label to the specified
65 Set the phyisical disc label to the specified
67 For strict conformance and interchange, don't set this manually.
69 Set the disc set label to the specified
71 For strict conformance and interchange, don't set this manually.
73 Disable metadata partition creation when selected UDF version or media dictates
74 this. For strict conformance and interchange, don't disable this unless its
78 .It Fl p Ar percentage
79 Percentage of partition to be initially reserved for metadata on the Metadata
80 partition. It defaults to 20 %.
84 as gmt time offset for recording times on the disc.
88 as the maximum UDF version to be supported.
89 For UDF version 2.50, use
96 as the minimum UDF version to be supported.
97 For UDF version 2.01, use
103 The UDF file system is defined for the entire optical medium.
104 It can only function on the entire CD/DVD/BD so the raw partition
105 has to be specified for read/write actions.
108 this means specifying the raw device with the raw partition, i.e.
113 Some rewritable optical media needs to be formatted first before it can be
115 This can be done using
118 The default UDF version is version 2.01.
120 .Bd -literal -offset indent
121 newfs_udf -S "Encyclopedia" -L "volume 2" -P "copy-nr-1" /dev/rcd0d
124 Create a file system, using the specified names on the device
126 with the default UDF version.
128 .Bd -literal -offset indent
129 dd if=/dev/zero of=bigdisk.2048.udf seek=9999999 count=1
130 vnconfig -c vnd0 bigdisk.2048.udf 2048/1/1/1
131 newfs_udf -L bigdisk /dev/rvnd0d
134 Create a 4.8 GiB sparse file and configure it using
136 to be a 2048 sector size disc and create a new UDF file system on
138 .Bd -literal -offset indent
139 newfs_udf -L "My USB stick" /dev/rsd0d
142 Create a new UDF file system on the inserted USB stick using its
153 command first appeared in
156 .An Reinoud Zandijk Aq reinoud@NetBSD.org