Universal Disk Format (UDF)

PREAMBLE

Tutorial expresses the author's subjective ideas and conform to AAL license.


Description

Open file system for computer data program as stated in Wikipedia article. Supported by major operation systems. Has most widely used in DVDs and optical discs and is well suited for read/write operation in flash storage also.
Fair to mention (from Wikipedia):
Due to the default UDF versions and options, a UDF partition formatted by Windows cannot be written under macOS. On the other hand, a partition formatted by macOS cannot be directly written by Windows, due to the requirement of a MBR partition table. In addition, Linux only supports writing to UDF 2.01. A script for Linux and macOS called format-udf handles these incompatibilities by using UDF 2.01 and adding a fake MBR; for Windows the best solution is using the command-line tool format /FS:UDF /R:2.01. 


Intro

First of all, get udftools set for your OS (Unix-based). 


Next Level

LINUX
Before doing something, examine what mount points are already revealed by system
$ tail -n 2 /proc/mounts
Additionally
$ ls /dev/sd*

Now insert physical device in usb port and examine one more time /proc/mounts
$ tail -n 2 /proc/mounts
$ ls /dev/sd*

It can be sda1(sda2 or 3 or 4), sdb1(2,3,4,5), sdc1(2,3,4,5,6), sdd1(2,3,4,5,6,7) and so on. Depends on how many hard disks or ssd's you already have.

Now, to avoid problems, zero completly the driving using dd utility
# dd if=/dev/zero of=/dev/sdX bs=512
Be very carrefully to not destroy another mount point!!!

For extra safety use
# df -h
And compare size of every partion with file-system type, using
# findmnt --df /dev/sdXn

To create new file-system use:
# mkudffs --media-type=hd --blocksize=512 /dev/sdX
Maximum volume size 
2 Tib (with 512 byte sectors)
8 Tib (with 2 Kib sectors)
16 Tib (with 4 KiB sectors)


WINDOWS
Open Command Prompt
Win+R and type cmd.exe

format DriveLetter: /fs:UDF /q

where
DriveLetter - can be D, E, F, G, H etc.
/fs - filesystem; in our case UDF
/q - quick format



Last thoughts

Be shure that I will update tutorial in the future. So, stay on tune. And, in case it was useful, share please with your fellows or comment something regarded the subject.

For donations use that link.

Comments