NEWFS_UDF(8)
πΏ NEWFS_UDF β bestie edition πΏ
okay so real talk, this is the newfs_udf page from the System Manager's Manual, and it's literally your girl's guide to building a fresh UDF file system. sit down, grab a boba, we're doing this π§β¨
β¨ NAME β¨
newfs_udf β construct a new UDF file system π¦
πΈ SYNOPSIS πΈ
newfs_udf [-cFM] [-B blockingsize] [-L loglabel] [-P discid]
[-p percentage] [-S sectorsize] [-s size] [-t gmtoff]
[-V max_udf] [-v min_udf] special
π DESCRIPTION π
The newfs_udf utility creates an UDF file system on device special suitable for the media currently inserted. no cap, that's the whole vibe. π
The options are as follow:
-Bblockingsize β when you're creating image files, this sets the blocking size or packetsize of the media to blockingsize. size matters, allegedly π-cβ do a crude surface check first to weed out disc faults on rewritable media. it's giving "quick vibe check before we commit" β¨-Fβ Force file system construction on non-empty recordable media, or create an image file. the F stands for Fearless, fr fr π₯-Lloglabel β set the disc logical label to the specified loglabel. name your baby π-Mβ disable metadata partition creation when the selected UDF version or media dictates this. for strict conformance and interchange, don't disable this unless it's causing problems. like, it's there for a reason bestie π-Pdiscid β set the physical disc label to the specified discid.
prepend discid with volsetname separated with a ':' if wanted. for strict conformance and interchange, don't set this manually unless it has a unique hex number in the first 8 character positions. iykyk π«Ά
-ppercentage β percentage of partition to be initially reserved for metadata on the Metadata partition. it defaults to 20 %. that's the default, don't come for me π-Ssectorsize β set the sectorsize for image files. for strict conformance and interchange, don't set this manually. hands off π₯-ssize β for image files, set the file size to the humanized size size. yes, humanized, we're being nice to the numbers π-tgmtoff β use the specified gmtoff as gmt time offset for recording times on the disc. timezones are a scam but ok β-Vmax_udf β select max_udf as the maximum UDF version to be supported. for UDF version 2.50, useβ0x250βorβ2.50β. β-vmin_udf β select min_udf as the minimum UDF version to be supported. for UDF version 2.01, useβ0x201βorβ2.01β. β
π NOTES π
the UDF file system is defined for the entire optical medium. it can only function on the entire CD/DVD/BD, so the raw partition has to be specified for read/write actions. for newfs_udf this means specifying the raw device with the raw partition, i.e. /dev/rcd0d or /dev/rcd0c. π
some rewritable optical media needs to be formatted first before it can be used by UDF. this can be done using mmcformat(8). yes, do your skincare routine first π§ββοΈβ¨
the default UDF version is version 2.01. π
π₯ EXAMPLES π₯
create a file system, using the specified names on the device /dev/rcd0d with the default UDF version :
newfs_udf -P "Encyclopedia:copy-nr-1" -L "volume 2" /dev/rcd0d
create a 4.8 GiB sparse file and configure it using vnconfig(8) to be a 2048 sector size disc and create a new UDF file system on /dev/rvnd0d :
dd if=/dev/zero of=bigdisk.2048.udf seek=9999999 count=1
vnconfig -c vnd0 bigdisk.2048.udf 2048/1/1/1
newfs_udf -L bigdisk /dev/rvnd0d
create a 2 GiB file and create a new UDF file system on it using the default 512 byte sector size :
newfs_udf -L bigdisk2 -F -s 2G bigdisk2.iso
create a 200 MiB file and create a new UDF file system on it using a sector size of 2048 :
newfs_udf -L bigdisk2 -F -s 200M -S 2048 bigdisk3.iso
create a new UDF file system on the inserted USB stick using its native sectorsize of 512 :
newfs_udf -L "My USB stick" /dev/rsd0d
π«Ά SEE ALSO π«Ά
disktab(5), disklabel(8), mmcformat(8), newfs(8) β the whole friend group, go say hi π
π¦ HISTORY π¦
the newfs_udf command first appeared in NetBSD 5.0. og behavior π
π AUTHORS π
Reinoud Zandijk <reinoud@NetBSD.org> β the icon, the legend, the moment π
π BUGS π
the P and the S arguments have changed meaning. the meaning of S has been merged into P since NetBSD 6.1. so if you're reading old docs and nothing makes senseβ¦ yeah, that's why π not a you problem bestie, it's a history problem π
and that's the whole page, mwah π this one shipped from the Debian crew and was last touched on August 2, 2013 β shoutout to NEWFS_UDF(8), the manual, the myth, the legend β¨π bye bestie, go make some file systems π
π¦ where this page comes from
- debian bookworm: udfclient 0.8.11-2 Β· Clarified-Artistic
- debian trixie: udfclient 0.8.11-2 Β· Clarified-Artistic
- ubuntu jammy: udfclient 0.8.11-2 Β· Clarified-Artistic
- ubuntu noble: udfclient 0.8.11-2 Β· Clarified-Artistic
- ubuntu questing: udfclient 0.8.21-1
- ubuntu resolute: udfclient 0.8.21-1build1 Β· Clarified-Artistic
- ubuntu stonking: udfclient 0.8.21-1build1 Β· Clarified-Artistic
- Copyright (c) 2008 Reinoud Zandijk
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms