Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-15-2003, 02:14 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 20

Rep: Reputation: 0
Unhappy VFAT mounting problem

Hello everybody.

Here is my problem: when mounting a VFAT partition under linux (Kernel 2.4.20-8), filesnames that are ALL UPPERCASE get translated to all lowercase. MiXeD case works fine.

This behaviour is heritage from DOS-days, when flain-fat did not preserve case (everything was all-uppercase). VFAT however *does* preserve case, although the case is ignored when the windows-api matches filenames. Files with MiXeD case names are mapped fine by mount (case is preserved). It seems that there is an explicite conversion going on specially for all-uppercase filenames. That's ok, as long as I can trun it of. But i can't. The manual for mount does not say anything about a mount-option for vfat that would allow that. Such an option however *does* exist for ISO9660 and for NTFS.

Now, here is why this is especially bad for me: I am developing multiplatform software (in java). So it would be very helpful to be able to access the same source-tree from Windows and Linux (i need both for testing/debugging). This already posts some promblems, as there are classes with all-uppercase names - and java does not like when the class-name is not exectly the same as the file name. But even worse: the project i'm working on is managed via CVS. My CVS Repository is on a VFAT partition (for the reasons mentioned above). The CVS system expects the menagement-folders to be called "CVS", it won't work with directories that are called "cvs".

Note that the problem can NOT be resolved using "mv cvs CVS":

- "mv cvs CVS" fails as expected (VFAT is case-insensitive, event though it is case-preserving).

- "mv cvs cvs-; mv cvs- CvS" results in CvS, as expected.

- "mv CvS CvS-; mv CvS- CVS" results in "cvs", not "CVS"!!! That's bad

Now, am i missing something? Is there an easy workaround? (using NTFS is not an option, as it still lacks write-support). Is this actually a missing feature? Who can i ask to implement it? Who is managing the development of the linux vfat implementation?

oh, this has become longer than i intended. sorry for the rant. and thank you for your attention..... please help
Old 08-15-2003, 03:50 PM   #2
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
The option you need to use is shortname=mixed
Add it to your /etc/fstab or use it with the mount command.
Old 08-18-2003, 04:26 PM   #3
LQ Newbie
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
That's it! Thank you very much!

In deed, shortname=mixed did it (although i now use shortname=winnt). I was confused because this only applies to the short-names, and i allways thought the short names were not used for display at all (as there should allways be a corresponding long name). But it seems that i thought wrong... well anyway, it works now! Big thanks...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vfat mounting problem lamiczka Linux - Software 2 05-09-2005 02:30 PM
Linux 2.6 vfat mounting problem thorwil Linux - General 6 12-23-2003 07:52 AM
problem mounting vfat fraction Linux - General 6 04-19-2003 11:25 AM
problem mounting VFAT from fstab Kocil Linux - General 3 03-05-2003 03:02 AM
Problem mounting vfat partition!!! yalanop Linux - Newbie 1 02-02-2003 04:21 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration