MKUDFFS(8)

NAME
mkudffs - create an UDF filesystem

SYNOPSIS
mkudffs [ switches ] device [ blocks-count ]

DESCRIPTION
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.

OPTIONS

-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.

-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 DVD (Digital Versatile Disc)

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

    dvdrw
        DVD-RW (DVD Read-Write)

    worm
        WORM (Write Once Ready Many)

    mo  MO (Magneto Optical)

    cdrw
        CD-RW (CD Read-Write)

    cdr CD-R (CD Recordable)

--space= space

    freedbitmap
        Freed bitmap

    freedtable
        Freed table

    unallocbitmap
        Unallocated bitmap

    unalloctable
        Unallocated table

--ad= ad

    inicb
        Allocation Descriptors in ICB

    short
        Short Allocation Descriptors

    long
        Long Allocation Descriptors

--noefe
    Don't Use Extended File Entries

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

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

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

--closed
    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.

AUTHOR
Ben Fennema <bfennema@falcon.csc.calpoly.edu>
Pali Rohár <pali.rohar@gmail.com>

AVAILABILITY
mkudffs is part of the udftools package and is available from https://github.com/pali/udftools/.