LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to preserve capital letters? (https://www.linuxquestions.org/questions/linux-general-1/how-to-preserve-capital-letters-343152/)

kosa 07-14-2005 11:28 AM

How to preserve capital letters?
 
When I copy a file with the name containing exclusively capital letters from linux partition to FAT32 partition all capitals are being changed to lowercase letters. When I copy a file with the name containing both capital and lowercase letters the name of the copied file is not changed. Thus: copying a file named "TEST" will result in getting the file named "test". Copying a file named "TeSt" will result in getting the file named "TeSt".

What should I do to preserve capitals in files with names containing capital letters exclusively?

Matir 07-14-2005 01:44 PM

From the vfat section of man mount(8):
Quote:

shortname=[lower|win95|winnt|mixed]

Defines the behaviour for creation and display of filenames
which fit into 8.3 characters. If a long name for a file exists,
it will always be preferred display. There are four modes:

lower Force the short name to lower case upon display; store a
long name when the short name is not all upper case.

win95 Force the short name to upper case upon display; store a
long name when the short name is not all upper case.

winnt Display the shortname as is; store a long name when the
short name is not all lower case or all upper case.

mixed Display the short name as is; store a long name when the
short name is not all upper case.

The default is "lower".


All times are GMT -5. The time now is 07:03 AM.