1*9f988b79SJean-Baptiste Boric.\" $NetBSD: newfs_udf.8,v 1.18 2013/08/06 12:15:20 wiz Exp $ 2*9f988b79SJean-Baptiste Boric.\" 3*9f988b79SJean-Baptiste Boric.\" Copyright (c) 2008 Reinoud Zandijk 4*9f988b79SJean-Baptiste Boric.\" All rights reserved. 5*9f988b79SJean-Baptiste Boric.\" 6*9f988b79SJean-Baptiste Boric.\" Redistribution and use in source and binary forms, with or without 7*9f988b79SJean-Baptiste Boric.\" modification, are permitted provided that the following conditions 8*9f988b79SJean-Baptiste Boric.\" are met: 9*9f988b79SJean-Baptiste Boric.\" 1. Redistributions of source code must retain the above copyright 10*9f988b79SJean-Baptiste Boric.\" notice, this list of conditions and the following disclaimer. 11*9f988b79SJean-Baptiste Boric.\" 2. Redistributions in binary form must reproduce the above copyright 12*9f988b79SJean-Baptiste Boric.\" notice, this list of conditions and the following disclaimer in 13*9f988b79SJean-Baptiste Boric.\" the documentation and/or other materials provided with the 14*9f988b79SJean-Baptiste Boric.\" distribution. 15*9f988b79SJean-Baptiste Boric.\" 16*9f988b79SJean-Baptiste Boric.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS 17*9f988b79SJean-Baptiste Boric.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 18*9f988b79SJean-Baptiste Boric.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19*9f988b79SJean-Baptiste Boric.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY 20*9f988b79SJean-Baptiste Boric.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21*9f988b79SJean-Baptiste Boric.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 22*9f988b79SJean-Baptiste Boric.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23*9f988b79SJean-Baptiste Boric.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 24*9f988b79SJean-Baptiste Boric.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25*9f988b79SJean-Baptiste Boric.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 26*9f988b79SJean-Baptiste Boric.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27*9f988b79SJean-Baptiste Boric.\" 28*9f988b79SJean-Baptiste Boric.\" 29*9f988b79SJean-Baptiste Boric.Dd August 2, 2013 30*9f988b79SJean-Baptiste Boric.Dt NEWFS_UDF 8 31*9f988b79SJean-Baptiste Boric.Os 32*9f988b79SJean-Baptiste Boric.Sh NAME 33*9f988b79SJean-Baptiste Boric.Nm newfs_udf 34*9f988b79SJean-Baptiste Boric.Nd construct a new UDF file system 35*9f988b79SJean-Baptiste Boric.Sh SYNOPSIS 36*9f988b79SJean-Baptiste Boric.Nm 37*9f988b79SJean-Baptiste Boric.Op Fl cFM 38*9f988b79SJean-Baptiste Boric.Op Fl B Ar blockingsize 39*9f988b79SJean-Baptiste Boric.Op Fl L Ar loglabel 40*9f988b79SJean-Baptiste Boric.Op Fl P Ar discid 41*9f988b79SJean-Baptiste Boric.Op Fl p Ar percentage 42*9f988b79SJean-Baptiste Boric.Op Fl S Ar sectorsize 43*9f988b79SJean-Baptiste Boric.Op Fl s Ar size 44*9f988b79SJean-Baptiste Boric.Op Fl t Ar gmtoff 45*9f988b79SJean-Baptiste Boric.Op Fl V Ar max_udf 46*9f988b79SJean-Baptiste Boric.Op Fl v Ar min_udf 47*9f988b79SJean-Baptiste Boric.Ar special 48*9f988b79SJean-Baptiste Boric.Sh DESCRIPTION 49*9f988b79SJean-Baptiste BoricThe 50*9f988b79SJean-Baptiste Boric.Nm 51*9f988b79SJean-Baptiste Boricutility creates an UDF file system on device 52*9f988b79SJean-Baptiste Boric.Ar special 53*9f988b79SJean-Baptiste Boricsuitable for the media currently inserted. 54*9f988b79SJean-Baptiste Boric.Pp 55*9f988b79SJean-Baptiste BoricThe options are as follow: 56*9f988b79SJean-Baptiste Boric.Bl -tag -width indent 57*9f988b79SJean-Baptiste Boric.It Fl B Ar blockingsize 58*9f988b79SJean-Baptiste BoricWhen creating image files, specify the blocking size or packetsize of the media 59*9f988b79SJean-Baptiste Boricto 60*9f988b79SJean-Baptiste Boric.Ar blockingsize . 61*9f988b79SJean-Baptiste Boric.It Fl c 62*9f988b79SJean-Baptiste BoricPerform a crude surface check first to weed out disc faults on rewritable 63*9f988b79SJean-Baptiste Boricmedia. 64*9f988b79SJean-Baptiste Boric.It Fl F 65*9f988b79SJean-Baptiste BoricForce file system construction on non-empty recordable media or create an 66*9f988b79SJean-Baptiste Boricimage file. 67*9f988b79SJean-Baptiste Boric.It Fl L Ar loglabel 68*9f988b79SJean-Baptiste BoricSet the disc logical label to the specified 69*9f988b79SJean-Baptiste Boric.Ar loglabel . 70*9f988b79SJean-Baptiste Boric.It Fl M 71*9f988b79SJean-Baptiste BoricDisable metadata partition creation when selected UDF version or media dictates 72*9f988b79SJean-Baptiste Boricthis. 73*9f988b79SJean-Baptiste BoricFor strict conformance and interchange, don't disable this unless 74*9f988b79SJean-Baptiste Boricits causing problems. 75*9f988b79SJean-Baptiste Boric.It Fl P Ar discid 76*9f988b79SJean-Baptiste BoricSet the physical disc label to the specified 77*9f988b79SJean-Baptiste Boric.Ar discid . 78*9f988b79SJean-Baptiste Boric.Pp 79*9f988b79SJean-Baptiste BoricPrepend 80*9f988b79SJean-Baptiste Boric.Ar discid 81*9f988b79SJean-Baptiste Boricwith volsetname separated with a ':' if wanted. 82*9f988b79SJean-Baptiste BoricFor strict conformance and interchange, don't set this manually unless it has 83*9f988b79SJean-Baptiste Borica unique hex number in the first 8 character positions. 84*9f988b79SJean-Baptiste Boric.It Fl p Ar percentage 85*9f988b79SJean-Baptiste BoricPercentage of partition to be initially reserved for metadata on the Metadata 86*9f988b79SJean-Baptiste Boricpartition. 87*9f988b79SJean-Baptiste BoricIt defaults to 20 %. 88*9f988b79SJean-Baptiste Boric.It Fl S Ar sectorsize 89*9f988b79SJean-Baptiste BoricSet the sectorsize for image files. 90*9f988b79SJean-Baptiste BoricFor strict conformance and interchange, don't set this manually. 91*9f988b79SJean-Baptiste Boric.It Fl s Ar size 92*9f988b79SJean-Baptiste BoricFor image files, set the file size to the humanized size 93*9f988b79SJean-Baptiste Boric.Ar size . 94*9f988b79SJean-Baptiste Boric.It Fl t Ar gmtoff 95*9f988b79SJean-Baptiste BoricUse the specified 96*9f988b79SJean-Baptiste Boric.Ar gmtoff 97*9f988b79SJean-Baptiste Boricas gmt time offset for recording times on the disc. 98*9f988b79SJean-Baptiste Boric.It Fl V Ar max_udf 99*9f988b79SJean-Baptiste BoricSelect 100*9f988b79SJean-Baptiste Boric.Ar max_udf 101*9f988b79SJean-Baptiste Boricas the maximum UDF version to be supported. 102*9f988b79SJean-Baptiste BoricFor UDF version 2.50, use 103*9f988b79SJean-Baptiste Boric.Dq 0x250 104*9f988b79SJean-Baptiste Boricor 105*9f988b79SJean-Baptiste Boric.Dq 2.50 . 106*9f988b79SJean-Baptiste Boric.It Fl v Ar min_udf 107*9f988b79SJean-Baptiste BoricSelect 108*9f988b79SJean-Baptiste Boric.Ar min_udf 109*9f988b79SJean-Baptiste Boricas the minimum UDF version to be supported. 110*9f988b79SJean-Baptiste BoricFor UDF version 2.01, use 111*9f988b79SJean-Baptiste Boric.Dq 0x201 112*9f988b79SJean-Baptiste Boricor 113*9f988b79SJean-Baptiste Boric.Dq 2.01 . 114*9f988b79SJean-Baptiste Boric.El 115*9f988b79SJean-Baptiste Boric.Sh NOTES 116*9f988b79SJean-Baptiste BoricThe UDF file system is defined for the entire optical medium. 117*9f988b79SJean-Baptiste BoricIt can only function on the entire CD/DVD/BD so the raw partition 118*9f988b79SJean-Baptiste Borichas to be specified for read/write actions. 119*9f988b79SJean-Baptiste BoricFor 120*9f988b79SJean-Baptiste Boric.Nm 121*9f988b79SJean-Baptiste Boricthis means specifying the raw device with the raw partition, i.e. 122*9f988b79SJean-Baptiste Boric.Pa /dev/rcd0d 123*9f988b79SJean-Baptiste Boricor 124*9f988b79SJean-Baptiste Boric.Pa /dev/rcd0c . 125*9f988b79SJean-Baptiste Boric.Pp 126*9f988b79SJean-Baptiste BoricSome rewritable optical media needs to be formatted first before it can be 127*9f988b79SJean-Baptiste Boricused by UDF. 128*9f988b79SJean-Baptiste BoricThis can be done using 129*9f988b79SJean-Baptiste Boric.Xr mmcformat 8 . 130*9f988b79SJean-Baptiste Boric.Pp 131*9f988b79SJean-Baptiste BoricThe default UDF version is version 2.01. 132*9f988b79SJean-Baptiste Boric.Sh EXAMPLES 133*9f988b79SJean-Baptiste BoricCreate a file system, using the specified names on the device 134*9f988b79SJean-Baptiste Boric.Pa /dev/rcd0d 135*9f988b79SJean-Baptiste Boricwith the default UDF version : 136*9f988b79SJean-Baptiste Boric.Bd -literal -offset indent 137*9f988b79SJean-Baptiste Boricnewfs_udf -P "Encyclopedia:copy-nr-1" -L "volume 2" /dev/rcd0d 138*9f988b79SJean-Baptiste Boric.Ed 139*9f988b79SJean-Baptiste Boric.Pp 140*9f988b79SJean-Baptiste BoricCreate a 4.8 GiB sparse file and configure it using 141*9f988b79SJean-Baptiste Boric.Xr vnconfig 8 142*9f988b79SJean-Baptiste Boricto be a 2048 sector size disc and create a new UDF file system on 143*9f988b79SJean-Baptiste Boric.Pa /dev/rvnd0d 144*9f988b79SJean-Baptiste Boric: 145*9f988b79SJean-Baptiste Boric.Bd -literal -offset indent 146*9f988b79SJean-Baptiste Boricdd if=/dev/zero of=bigdisk.2048.udf seek=9999999 count=1 147*9f988b79SJean-Baptiste Boricvnconfig -c vnd0 bigdisk.2048.udf 2048/1/1/1 148*9f988b79SJean-Baptiste Boricnewfs_udf -L bigdisk /dev/rvnd0d 149*9f988b79SJean-Baptiste Boric.Ed 150*9f988b79SJean-Baptiste Boric.Pp 151*9f988b79SJean-Baptiste BoricCreate a 2 GiB file and create a new UDF file system on it using the default 152*9f988b79SJean-Baptiste Boric512 byte sector size : 153*9f988b79SJean-Baptiste Boric.Bd -literal -offset indent 154*9f988b79SJean-Baptiste Boricnewfs_udf -L bigdisk2 -F -s 2G bigdisk2.iso 155*9f988b79SJean-Baptiste Boric.Ed 156*9f988b79SJean-Baptiste Boric.Pp 157*9f988b79SJean-Baptiste BoricCreate a 200 MiB file and create a new UDF file system on it using a sector size 158*9f988b79SJean-Baptiste Boricof 2048 : 159*9f988b79SJean-Baptiste Boric.Bd -literal -offset indent 160*9f988b79SJean-Baptiste Boricnewfs_udf -L bigdisk2 -F -s 200M -S 2048 bigdisk3.iso 161*9f988b79SJean-Baptiste Boric.Ed 162*9f988b79SJean-Baptiste Boric.Pp 163*9f988b79SJean-Baptiste BoricCreate a new UDF file system on the inserted USB stick using its 164*9f988b79SJean-Baptiste Boricnative sectorsize of 512 : 165*9f988b79SJean-Baptiste Boric.Bd -literal -offset indent 166*9f988b79SJean-Baptiste Boricnewfs_udf -L "My USB stick" /dev/rsd0d 167*9f988b79SJean-Baptiste Boric.Ed 168*9f988b79SJean-Baptiste Boric.Sh SEE ALSO 169*9f988b79SJean-Baptiste Boric.Xr disktab 5 , 170*9f988b79SJean-Baptiste Boric.Xr disklabel 8 , 171*9f988b79SJean-Baptiste Boric.Xr mmcformat 8 , 172*9f988b79SJean-Baptiste Boric.Xr newfs 8 173*9f988b79SJean-Baptiste Boric.Sh HISTORY 174*9f988b79SJean-Baptiste BoricThe 175*9f988b79SJean-Baptiste Boric.Nm 176*9f988b79SJean-Baptiste Boriccommand first appeared in 177*9f988b79SJean-Baptiste Boric.Nx 5.0 . 178*9f988b79SJean-Baptiste Boric.Sh AUTHORS 179*9f988b79SJean-Baptiste Boric.An Reinoud Zandijk Aq Mt reinoud@NetBSD.org 180*9f988b79SJean-Baptiste Boric.Sh BUGS 181*9f988b79SJean-Baptiste BoricThe 182*9f988b79SJean-Baptiste Boric.Ar P 183*9f988b79SJean-Baptiste Boricand the 184*9f988b79SJean-Baptiste Boric.Ar S 185*9f988b79SJean-Baptiste Boricarguments have changed meaning. 186*9f988b79SJean-Baptiste BoricThe meaning of 187*9f988b79SJean-Baptiste Boric.Ar S 188*9f988b79SJean-Baptiste Borichas been merged into 189*9f988b79SJean-Baptiste Boric.Ar P 190*9f988b79SJean-Baptiste Boricsince 191*9f988b79SJean-Baptiste Boric.Nx 6.1 . 192