LinuxQuestions.org
Help answer threads with 0 replies.
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 01-21-2006, 06:22 AM   #1
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Rep: Reputation: 31
rsync and FAT32 problems (filename case-sensitive)


I'm trying to sync some data on an ext3 partition with a FAT32 hard drive. The hard drive is being retarded whenever a filename or directory name is ALLCAPS. (I'm not sure whether punctuation or spacing or anything affects this). In other words, it will try to convert ALLCAPS into allcaps (lower case), which is how it is written on the FAT32 harddrive. In otherwords, README.TXT becomes readme.txt.

However, I have rsync set to delete files in the destination that are not on the source. So when I rsync, it will find readme.txt, which isn't in the source, because that file is actually README.TXT. It will delete it from my destination hard drive, which is bad.

This problem is documented here: http://lists.samba.org/archive/rsync...ch/008814.html This person suggests mounting the FAT32 partition with -o shortname=winnt. That's not an option for me though, because SuSE automatically (and dynamically) mounts my hard disks without this shortname=winnt option. Nor am I willing to hack the /etc/fstab files and the udev permisisons. If I try mounting as root, I don't have permission to write to the destination hard drive as a normal user. If I try synchronizing as root, I think I might mess up some permissions when I sync the data. What can I do?
 
Old 01-21-2006, 09:57 AM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
If you are not willing to make some sinple changes to fstab (hacking is way too important a word to use for such a simple and easy task) look into the possibility of telling rsinc to be blind to uppercas/lowercase diferences. (in many apps there's an -i flag that will do this).
 
Old 01-21-2006, 01:31 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,280

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You will probably find that rsync-ing files from a Linux source to a FAT32 destination will lose more than just upper/lowercase distinctions. FAT32 has no idea about file permissions either.
 
Old 01-21-2006, 03:31 PM   #4
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Original Poster
Rep: Reputation: 31
There is no fstab entry that points to this device. It is automatically mounted by SuSE. I'm not sure how. Something with UDEV and HAL, I believe.

Is there a way to force my reiser4 or ext3 partition to be case-sensitive in fstab? I can see this possibly causing some problems--if there is a way, would you recommend it?

Last edited by apachedude; 01-21-2006 at 03:33 PM.
 
Old 01-21-2006, 05:18 PM   #5
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
As far as I can tell ext3 and Reiser as implemented by linux are always case-sensitive. You wouldn't happen to mean case-insensitive. No idea though if it's possible and not ot all sure if it'd be a good idea.
 
Old 01-21-2006, 08:20 PM   #6
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Original Poster
Rep: Reputation: 31
I think the only cheap hack I can do is write a script to run rsync twice. That way, after it deletes the folders or files the first time, it can restore them in lowercase the second time. Of course, this doesn't preserve the true filename, but it does preserve my data. Also, as the second rsync should have minimal changes, this might not work too badly.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux case sensitive does not treat! mehjabin_25 Linux - Newbie 4 01-04-2006 08:53 AM
is apache case-sensitive? browny_amiga Linux - Software 2 06-21-2004 02:57 PM
Why is linux case sensitive? Jestrik Linux - General 9 12-16-2003 08:05 AM
case sensitive groupadd? sysmaster Linux - General 0 07-28-2003 05:53 AM
case-sensitive issue david_wliu Linux - General 4 03-06-2003 11:46 PM

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

All times are GMT -5. The time now is 09:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration