mkudffs man page

mkudffs — create an UDF filesystem


mkudffs [ switches ] device [ blocks-count ]


mkudffs is used to create a UDF filesystem on a device (usually a disk). device is the special file corresponding to the device (e.g /dev/hdX). blocks-count is the number of blocks on the device. If omitted, mkudffs automagically figures the file system size. The order of options matters. Ident string options must be first and options to override default settings implied by the media-type or UDF revison should be after the option they are overriding.



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.

-u,--uuid= uuid

Specify the UDF uuid. Must be exactly 16 characters and is used for first 16 characters of --fullvsid option. If omitted, mkudffs uuid is generated from local time and random number.

-b,--blocksize= block-size

Specify the size of blocks in bytes. Valid block size vales are 512, 1024, 2048 and 4096 bytes per block. If omitted, mkudffs block-size is set to device logical block (sector) size. If it is unknown then block-size 2048 is used.

-r,--udfrev= udf-revision

Specify the udf revision to use. Valid revisions are 0x0201, 0x0200, 0x0150, and 0x0102. If omitted, mkudffs udf-revision is 0x0201. The hex values represent the ISO/IEC 13346 standard version numbers: e.g. the 0x0201 refers to 2.01 (March 15, 2000) which is mainly a bugfix release to UDF 2.00.

--lvid= logical-volume-ident

Specify the logical volume identifier. If omitted, mkudffs logical-volume-ident is LinuxUDF.

--vid= volume-ident

Specify the volume identifier. If omitted, mkudffs volume-ident is LinuxUDF.

--vsid= volume-set-ident

Specify the 17.-127. character of volume set identifier. If omitted, mkudffs volume-set-ident is LinuxUDF.

--fsid= file-set-ident

Specify the file set identifier. If omitted, mkudffs file-set-ident is LinuxUDF.

--fullvsid= full-volume-set-ident

Specify the volume set identifier. Overwrite previous --uuid and --vsid options.

--uid= uid

Specify the uid of the root (/) directory. If omitted, mkudffs uid is 0.

--gid= gid

Specify the gid of the root (/) directory. If omitted, mkudffs gid is 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-number

Specify the number of sparing tables to write to disc. Valid numbers are 1 - 4. This option implies --media-type=cdrw.

--media-type= media-type

Specify the media type. Valid media types are:

hd (default)

hard drive


DVD (Digital Versatile Disc)


DVD-RAM (Digital Versatile Disc-Random Access Memory)


DVD-RW (DVD Read-Write)


WORM (Write Once Ready Many)


MO (Magneto Optical)


CD-RW (CD Read-Write)


CD-R (CD Recordable)

--space= space

Freed bitmap


Freed table


Unallocated bitmap


Unallocated table

--ad= ad

Allocation Descriptors in ICB


Short Allocation Descriptors


Long Allocation Descriptors


Don't Use Extended File Entries


Ident string options are encoded in 8-bit OSTA Compressed Unicode equivalent. Must be specified as first argument.


Ident string options are encoded in 16-bit OSTA Compressed Unicode equivalent. Must be specified as first argument.


Ident string options are encoded in UTF-8 (default). Must be specified as first argument.


Make cdr media type closed (AVDP is written to start and also end of disk). By default cdr media type is unclosed (AVDP is written only to start of disk).

--packetlen= length

Packet length in number of sectors for cdrw (default: 32 sectors) and dvdrw (default: 16 sectors) media types.

Exit Status

mkudffs returns 0 if successful, non-zero if there are problems.


Ben Fennema <>
Pali Rohár <>


mkudffs is part of the udftools package and is available from

Referenced By

wrudf(1), wrudf(8).

mkfs.udf(8) is an alias of mkudffs(8).

udftools System Management Commands