Skip to content

Instantly share code, notes, and snippets.

@vext01
Last active January 25, 2022 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vext01/45f407724b08212a9683512acd9473cb to your computer and use it in GitHub Desktop.
Save vext01/45f407724b08212a9683512acd9473cb to your computer and use it in GitHub Desktop.
FAT32 filename casing woes

On OpenBSD machine, fdisk and newfs a USB disk with a FAT32 (0x0c) filesystem, mount it with default options and:

# touch a B aaaaa BBBBB longlonglong OPENBSD_OPENBSD
# ls
B                BBBBB            OPENBSD_OPENBSD  a                aaaaa            longlonglong

Now unmount it and take it to a Debian 11 box, and mount with default options:

# ls
a  aaaaa  b  bbbbb  longlonglong  OPENBSD_OPENBSD

But if you mount on Debian with -o shortname=win95, then you get:

a  aaaaa  B  BBBBB  longlonglong  OPENBSD_OPENBSD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment