LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2005, 01:05 AM   #1
tisource
Member
 
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
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
 
Old 03-21-2005, 01:32 AM   #2
mpetrov
LQ Newbie
 
Registered: Aug 2004
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
Try using the shortname option:
mount -t vfat -o shortname=[lower|win95|winnt|mixed] /dev /mountpoint
(choose one of the options, I would go with winnt or mixed first, the default is lower)

Best Regards,
mpetrov
 
Old 03-23-2005, 09:22 PM   #3
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
Okay...

How do you do this for dynamic devices (USB sticks, Camera cards, etc)...
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
long filename problem slack66 Linux - Newbie 5 11-05-2005 03:30 AM
long filename problem slack66 Slackware 1 11-03-2005 10:19 PM
Changing Fstab in ubuntu to mount vfat drive mikeymorgan Linux - Newbie 13 06-23-2005 07:50 AM
What fstab mount setting do you use to get full access to a vfat drive? BarkingBonefish Linux - Newbie 4 03-12-2004 12:36 AM
want user to be able to mount vfat (fstab ?) qwijibow Linux - Software 4 11-13-2003 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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