mount/fstab issues, vfat filename conventions: 8.3 vs long
I have read through the mount man pages and even 'googled' around, but I really don't have a straight answer.
I want to preserve filename case when I copy (via Konqueror) from a vfat device (typically flash-based devices) to my hard drive (to a local vfat partition). One particular concern is my digital camera pics. The files are named "HPIMX" where 'X' is a 4-digit number. When I copy the images from my camera card, the filenames become lowercase.
I did some research, and found out what is occuring. FAT filesystems typically keep two versions of the file name: the original 8.3 file name, and the long file name. Linux, by default, will ignore long file name conventions (which also includes case preservation) if the file name length doesn't exceed 8.3 conventions (without regard to case).
In other words, one of my camera's pics may be called "HPIM4500.jpg" which complies with 8.3 rules (without regard to case). However, the camera card does have two versions of the filename on it: "hpim4500.jpg" (8.3) and "HPIM4500.jpg" (long). Since the length of the file name doesn't exceed 8.3 conventions, Linux ignores the long version, and I lose my upper-case file name.
If I rename my photo such that the file name far exceeds 8.3 conventions (after I have copied it to my local fat partition), to something like "HPIM4500ZZZZZZZ.jpg" and then rename it back to "HPIM4500.jpg" it keeps the case.
Is there a modification to my fstab that I can add so linux won't do this? I've looked at man pages, like I said, but was totally confused.
Any help would be appreciated, because this one is really throwing me off.
Thanks
|