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:

  • -B blockingsize β€” 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 πŸ”₯
  • -L loglabel β€” 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 😭
  • -P discid β€” 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 🫢

  • -p percentage β€” 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 🌈
  • -S sectorsize β€” set the sectorsize for image files. for strict conformance and interchange, don't set this manually. hands off πŸ”₯
  • -s size β€” for image files, set the file size to the humanized size size. yes, humanized, we're being nice to the numbers πŸ“
  • -t gmtoff β€” use the specified gmtoff as gmt time offset for recording times on the disc. timezones are a scam but ok ⭐
  • -V max_udf β€” select max_udf as the maximum UDF version to be supported. for UDF version 2.50, use β€œ0x250” or β€œ2.50”. ⭐
  • -v min_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 πŸ’–