-h,--help
Display the usage and list of options.
-l,--label=
label
Specify the UDF label. UDF label is synonym for specifying
both --lvid
and --vid
options. If omitted, mkudffs
label
is LinuxUDF. (Option available since mkudffs 1.1)
-u,--uuid=
uuid
Specify the UDF uuid. It must be exactly 16 hexadecimal
lowercase digits and is used for first 16 characters of
--fullvsid
option. If omitted, mkudffs
uuid is generated
from local time and a random number. (Option available
since mkudffs 1.1)
-b,--blocksize=
block-size
Specify the size of blocks in bytes. Valid block size for
a UDF filesystem is power of two in range from 512 to
32768 and must match a device logical (sector) size. If
omitted, mkudffs
block size is set to device logical block
(sector) size. If logical block (sector) size is unknown
(e.g. when creating disk image) then for --media-type
=hd
is used block size 512 and for other media types 2048.
(Prior to mkudffs 1.1 default value was always 2048
independently of --media-type
)
-m,--media-type=
media-type
Specify the media type. Must be specified before --udfrev
.
Default value is autodetected. When autodetection does not
work (e.g. when creating disk image) then hd value is
assumed. Valid media types are:
hd HD (Hard Disk)
worm WORM (Write Once Read Many)
mo MO (Magneto Optical)
cd CD-ROM (CD Read-Only Memory)
cdr CD-R (CD Recordable)
cdrw CD-RW (CD Read-Write)
dvd DVD-ROM (DVD Read-Only Memory)
dvdr DVD-R (DVD Recordable)
dvdrw DVD-RW (DVD Read-Write)
dvdram DVD-RAM (DVD Random Access Memory)
bdr BD-R (Blu-ray Disc Recordable)
(Short option variant -m
and values cd, dvdr, bdr are
available since mkudffs 2.0 and autodetection is supported
since mkudffs 2.2)
-r,--udfrev=
udf-revision
Specify the UDF revision to use, either in hexadecimal BCD
(e.g. 0x0201) or decimal (e.g. 2.01) format. Valid
revisions are 1.01, 1.02, 1.50, 2.00, 2.01, 2.50 and 2.60.
If omitted, mkudffs
UDF revision is 2.01, except for Blu-
ray Discs which is 2.50. UDF revisions higher then 2.01
are experimental. Option must be specified after
--media-type
. (Values in decimal format and UDF revisions
higher then 2.01 are supported since mkudffs 2.0, UDF
revision 1.01 is supported since mkudffs 2.1)
-n,--no-write
Not really, do not write to device. Just simulate and
display what would happen with device. Useful for
determining the calculated location of different UDF
blocks. (Option available since mkudffs 2.0)
--new-file
Create a new image file specified by device with
blocks-count and fail if file already exists. If omitted,
mkudffs
creates a new image file only in case it does not
exist yet. (Option available since mkudffs 2.0)
--lvid=
logical-volume-identifier
Specify the Logical Volume Identifier. If omitted, mkudffs
Logical Volume Identifier is LinuxUDF. Most UDF
implementations use this identifier as a disk label.
--vid=
volume-identifier
Specify the Volume Identifier. If omitted, mkudffs
Volume
Identifier is LinuxUDF.
--vsid=
volume-set-identifier
Specify the 17.–127. character of Volume Set Identifier.
If omitted, mkudffs
Volume Set Identifier is LinuxUDF.
--fsid=
file-set-identifier
Specify the File Set Identifier. If omitted, mkudffs
File
Set Identifier is LinuxUDF.
--fullvsid=
full-volume-set-identifier
Specify the full Volume Set Identifier. Overwrite previous
--uuid
and --vsid
options. (Option available since mkudffs
1.1)
--owner=
owner-name
Specify the Owner name, person creating the medium or
filesystem. It is stored in UDF Logical Volume Info1, part
of UDF Implementation Use Volume Descriptor. (Option
available since mkudffs 2.3)
--organization=
organization-name
Specify the Organization name responsible for creating the
medium or filesystem. It is stored in UDF Logical Volume
Info2, part of UDF Implementation Use Volume Descriptor.
(Option available since mkudffs 2.3)
--contact=
contact-information
Specify the Contact information for the medium or
filesystem. It is stored in UDF Logical Volume Info3, part
of UDF Implementation Use Volume Descriptor. (Option
available since mkudffs 2.3)
--uid=
uid
Specify the uid of the root (/) directory. If omitted,
mkudffs
uid is 0. Special value -1 means invalid or not
specified uid. (Option available since mkudffs 1.1)
--gid=
gid
Specify the gid of the root (/) directory. If omitted,
mkudffs
gid is 0. Special value -1 means invalid or not
specified gid. (Option available since mkudffs 1.1)
--mode=
mode
Specify permissions in octal mode bits of the root (/)
directory. If omitted, mkudffs
mode is 0755. (Option
available since mkudffs 2.0)
--read-only
This option specify that the whole UDF disk should be
treated as read-only. It sets SoftWriteProtect domain flag
in Logical Volume Descriptor and in File Set Descriptor.
Plus for overwritable media types (hd, dvdram, dvdrw) set
UDF Access Type to read-only. (Option available since
mkudffs 2.2)
--bootarea=
fill
Specify how to fill UDF boot area which is the first 32kB
of the disk and is not used by UDF itself. Option mbr make
sense only when running mkudffs
on whole disk, not on just
one partition. Valid options are:
preserve
preserve existing UDF boot area, do not touch
it (default for media type different from hd)
erase erase existing UDF boot area, fill it by zeros
(default for hd media type on partitions and
on removable disks)
mbr put MBR table with one partition which starts
at sector 0 (includes MBR itself) and spans
whole disk device, needed only for non-
removable hard disks used on Microsoft Windows
systems (default for hd media type on non-
removable hard disk without partitions), see
section WHOLE DISK VS PARTITION
mbr:sec-size
same as mbr but explicitly set MBR sector size
to sec-size value, default sec-size is device
logical block (sector) size with fallback to
size 512 bytes
(Option available since mkudffs 2.0)
--strategy=
strategy
Specify the allocation strategy to use. Valid strategies
are 4 and 4096. If omitted, mkudffs
strategy is based on
the --media-type
.
--spartable, --spartable=
spartable-number
Enable usage Sparing Table. Optionally specify also the
number of sparing tables. Valid numbers are 1–4. When the
spartable number is omitted then two tables are written to
the disc. If the option is omitted then usage of Sparing
Table depends on the media type. (Option prior to mkudffs
2.0 was available only for cdrw media type)
--sparspace=
num-of-entires
Specify the number of entries in Sparing Table. If
omitted, the default number of entries is 1024, but
depends on the media type. (Option available since mkudffs
2.0)
--packetlen=
length
Packet length in a number of blocks used for alignment.
All continuous UDF structures would be aligned to packets.
It specifies also the size of the Sparing Space and packet
length in Sparing Table. It should match the device
ECC/packet length. If omitted, default value for DVD discs
is 16 blocks, for CD/BD discs it is 32 blocks and
otherwise 1 block. (Option prior to mkudffs 2.1 was
available only for cdrw and dvdrw media types)
--vat
Enable usage of Virtual Allocation Table (VAT). If
omitted, usage depends on the media type. (Option
available since mkudffs 2.0)
--startblock=
start-block
Specify the block location where the UDF filesystem
starts.
Normally start block is 0, but when creating second or
higher session for Multisession UDF optical disc it is the
block location where that new session starts.
When updating existing Multisession UDF image file,
mkudffs
overwrites only data blocks for a new session at
start block position in the image file.
When creating a new UDF image file, mkudffs
stores only
data blocks for a new session at beginning of the image
file. Therefore data for start block would be written to
the zero block instead of the start block. Such image
without leading blocks (where are located previous
sessions) is suitable for burning a new session to the
optical disc. But it cannot be read or detected by any UDF
tool until leading zero blocks (or previous sessions) are
prepended to the image file.
For calculating position where a new session of particular
optical disc should start is required to use software
which would be used for burning newly created image. So
for example, if for burning is used wodim
(1) then second
value on output from wodim -msinfo
call is start block.
Accordingly for cdrecord
(1) call cdrecord -msinfo
or for
cdrdao
(1) call cdrdao msinfo
or for xorriso
(1) call
xorriso -as cdrecord dev=/dev/cdrw -msinfo
.
(Option available since mkudffs 2.3)
--minblocks=
min-num-of-blocks
Specify minimal number of blocks to write on disc with
Virtual Allocation Table.
This option affects block position where is written
Virtual Allocation Table. And in case option --closed
is
used then also it affects block position of the second
Anchor Volume Descriptor Pointer.
Default value for cdr media type is 300. This is safe
default to allow burning CD-R disc image in Track-at-Once
mode. This mode requires to burn image with minimal size
of 300 sectors. Burning CD-R discs in other modes (e.g.
Disc-at-Once or Packet-Writing) may allow to allow to use
also smaller disc images.
For all other media types there is no default minimal
limit.
(Option available since mkudffs 2.3)
--closed
Close disc with Virtual Allocation Table. AVDP is written
also to the end of the disc. By default, the disc with
Virtual Allocation Table is not closed.
--space=
space
Specify the Space Set. Unallocated Space Set is used for
media which blocks may be allocated immediately. Freed
Space Set is used for media which blocks needs to be
specially prepared/erased before allocation. In Space
Table is stored list of unallocated extents. In Space
Bitmap is stored bitmap of unallocated blocks. Not used
for VAT.
freedbitmap
Freed Bitmap
freedtable
Freed Table
unallocbitmap
Unallocated Bitmap (default)
unalloctable
Unallocated Table
--ad=
ad
Specify the Allocation Descriptors of the root (/)
directory.
inicb Allocation Descriptors in ICB (default)
short Short Allocation Descriptors
long Long Allocation Descriptors
--noefe
Don't Use Extended File Entries for the root (/)
directory. Affects only UDF 2.00 or higher. Must be
specified after --udfrev
.
--locale
Treat identifier string options as strings encoded
according to the current locale settings (default). Must
be specified as the first argument. (Option available
since mkudffs 2.0)
--u8
Treat identifier string options as strings encoded in
8-bit OSTA Compressed Unicode format without leading
Compression ID byte, which is equivalent to Latin1
(ISO-8859-1). Must be specified as first argument.
--u16
Treat identifier string options as strings encoded in
16-bit OSTA Compressed Unicode format without leading
Compression ID byte, which is equivalent to UTF-16BE. Note
that it is not possible to include zero byte in command
line options, therefore any character which has at least
one zero byte cannot be supplied (this applies to all
Latin1 characters). Must be specified as the first
argument.
--utf8
Treat identifier string options as strings encoded in
UTF-8. Must be specified as the first argument. (Prior to
mkudffs 2.0 this was default option)