Using UDF on a USB flash drive
Problem
After failing to copy a file bigger than 4G to my 8G USB flash drive, I formatted it as ext3. While this is working fine for me so far, it will cause problems if I want to use it to copy files to someone which does not use Linux. I am thinking of formatting it as UDF instead, which I hope would allow it to be read (and possibly even written) on the three most popular operating systems (Windows, MacOS, and Linux), without having to install any extra drivers. However, from what I found on the web already, there seem to be several small gotchas related to which parameters are used to create the filesystem, which can reduce the compability (but most of the pages I found are about optical media, not USB flash drives). I would like to know: Which utility should I use to create the filesystem? (So far I have found and , and seems the best option.) Which parameters should I use with the chosen utility for maximum compability? How compatible with the most common versions of these three operati…
Error Output
mkudffs
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Using UDF on a USB flash drive
First, I zeroed completely the drive before creating the UDF filesystem with: This is to avoid any leftover superblocks or other metadata which could confuse the operating systems' filesystem type detection (at least zeroing the first sector should be needed, to obliterate the partition table; the first few sectors are not used by UDF, and a leftover partition table could really confuse things). You could also use the switch on the dd command, in order to more-quickly zero just the first 512 by…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix