upper/lower case for directory/file names on USB-key

Hi all!

Does any one know why this (and how to deal with):

on a USB-key, mounted as vfat, (I think it’s FAT32) I get some directories in upper-case letters, some others in lower-case letters (from command ls). When I read the same key under windows XP, all appear in upper-case (that’s what I wish, that’s my choice ;-).

when I try to rename one of them (for example “sandbox”):
mv sandbox SANDBOX
I get this answer :
mv: cannot stat `sandbox’: No such file or directory

on a “normal” Linux disc (/tmp for example), it works “normally”.

Any idea or link to explain ?

Thanks in advance

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Your ‘mv’ command should probably fail since windows filesystems are not
case-sensitive but are only case-aware (show the case as they are, but
don’t consider ‘asdf’ and ‘ASDF’ different). Why you are getting an error
about it not showing up, though, is a bit confusing. Maybe vfat has a way
to store the displayed case outside of how it is actual referenced on the
drive. Have you tried file sandbox directly?

Good luck.

didess wrote:
> Hi all!
>
> Does any one know why this (and how to deal with):
>
> on a USB-key, mounted as vfat, (I think it’s FAT32) I get some
> directories in upper-case letters, some others in lower-case letters
> (from command ls). When I read the same key under windows XP, all appear
> in upper-case (that’s what I wish, that’s my choice ;-).
>
> when I try to rename one of them (for example “sandbox”):
> mv sandbox SANDBOX
> I get this answer :
> mv: cannot stat `sandbox’: No such file or directory
>
> on a “normal” Linux disc (/tmp for example), it works “normally”.
>
> Any idea or link to explain ?
>
> Thanks in advance
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ5lSVAAoJEF+XTK08PnB5nuwP/i+1/eMW9CyiuAs73EQtIZEh
MydNHnBgkgvtDjgZ+sRpi14ff4aEG+BPQN33DyItEDm0TvzTOcgsbKG2bZYVuyo8
HVsIdr/AuJWLCLUEovV/uA+mVDmiImhzINE+SGYyJLZ46ZGrfBR6fngQ1M4cLXJ2
RnPADytJl9KnX6fiHopwZxblIgonoYlt317PHDBRGV+5yRBP9xdIOvX0KxIK1omh
NgOQ3QbgVqZgc5PIIn+QOj5t8khBPaOCeDI9vzDc+t9Oo80bV09uvxWsrs6uFAKP
CtSRITAfI3oVwIKJt2sv5y+iQ70At3MufTF2APKTVdmsF7hwt4Q1lbxrR8kj/BQY
iBaOAtCdmqGZ4RQP/cfF6USYMlr8hhrPpXSaZMsiXID4qZb17sr/Z1bzTUO+DB1/
Qhy9mTSJ1WhHB7y6uURgRHPny9am57G8BR32IG3XTxp/kStHQlD1sRa4w5vRQjy/
j/pKTZfnkyRIBus+ZPgUq4TYifA8O2H9b1QiT7E1ECjv9x4/BCuujp+mNzUrSItU
GNcgA3ARQ1VBwaXVapZI7pT3CMeCw7hejUvXcqZgZeTpLXfMHHdpBbHleESpq99A
wnEB+JL0MqZ6mcrv25wBFPixhSIGIprNQJ55cE8uInlV3ocrtPgnaW6M0pz55deL
HXp6Mk24fJYmmpSSsvBx
=l2f5
-----END PGP SIGNATURE-----

try: create (for example) SANDBOX on a Linux partition (like ext2/3)
and then move or copy it to the vfat and it will stay SANDBOX when
viewed by both Linux and your game OS…

on Linux it will only be accessible as ‘SANDBOX’ (and not also as
‘sandbox’)…but in the deficient file naming ways of Redmond you can
access it as any of the following (and more), but it will always
appear only as ‘SANDBOX’:

sandbox SAndbox SANdbox SANDbox SANDBOx etc >
Sandbox sANdbox sANDbox sANDBox etc
sAndbox saNDbox saNDBox etc
saNdbox sanDBox etc
sanDbox etc
sandBox
sandbOx
etc

in other words: in the normal choice limiting ways of Redmond all of
those usable as totally DIFFERENT file names in Linux can be only ONE
in the game environment… :frowning:


Andy Sipowicz

Thanks to you two :wink: