LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-17-2008, 07:55 PM   #1
alkos333
Member
 
Registered: Dec 2006
Posts: 271

Rep: Reputation: 31
Uppercase Directories renamed when copying to FAT32


Could somebody explain this? So I'm copying directories with uppercase letters in them to a FAT32 jump drive. How come some of them get changed to lowercase and others aren't? Why do they get changed to the lowercase anyway? http://alkos333.pastebin.com/f676227ec
 
Old 11-17-2008, 08:25 PM   #2
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
I am not sure why your directory names change case when you copy them to your FAT partition (jump drive) ... but files on a FAT partition are not case sensitive so it does not matter if they change.
 
Old 11-17-2008, 09:43 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Just a guess, but check the shortname option in man mount.
 
Old 11-17-2008, 11:27 PM   #4
alkos333
Member
 
Registered: Dec 2006
Posts: 271

Original Poster
Rep: Reputation: 31
Thank you both guys. Yes, FAT32 is case insensitive, but
rsync isn't, so I had to use shortname=winnt.

Everything works as needed now. Thank you!
 
Old 11-18-2008, 10:34 AM   #5
alkos333
Member
 
Registered: Dec 2006
Posts: 271

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by alkos333 View Post

Everything works as needed now. Thank you!
For some reason rsync still deletes some of the folders (I'm using -delete in my rsync command) even though nothing was changed. Hmm... that's odd because nothing is being changed on the ipod itself, I just ran the rsync several times in a row, yet it still removes those folders.
 
Old 11-18-2008, 10:41 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Did you try rsync option --modify-window ?

Quote:
Originally Posted by man rsync
Code:
--modify-window
              When comparing two timestamps, rsync treats  the  timestamps  as
              being  equal  if  they  differ by no more than the modify-window
              value.  This is normally 0 (for an exact  match),  but  you  may
              find it useful to set this to a larger value in some situations.
              In particular, when transferring to or from an  MS  Windows  FAT
              filesystem  (which represents times with a 2-second resolution),
              --modify-window=1 is useful (allowing times to differ by up to 1
              second).
 
Old 11-18-2008, 06:06 PM   #7
alkos333
Member
 
Registered: Dec 2006
Posts: 271

Original Poster
Rep: Reputation: 31
I tried setting --modify-window=2 and that still didn't help. It's just two of the same folders that keep getting deleted.

These are the ones:
Code:
me@tpt60:~/media/music$ tree V.I.C./
V.I.C./
`-- Get Silly
    |-- 01. V.I.C - Get Silly.mp3
    `-- cover.jpg

1 directory, 2 files
me@tpt60:~/media/music$ tree T.I.
T.I.
|-- King
|   |-- 03. T.I. - What You Know.mp3
|   `-- cover.jpg
|-- Live Your Life
|   |-- 01. T.I. - Live Your Life (ft. Rihanna).mp3
|   `-- cover.jpg
`-- Whatever You Like
    |-- 01. T.I. - Whatever You Like.mp3
    `-- cover.jpg

3 directories, 6 files
 
  


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
Copying files and sub-directories of a directory except the directories named ".abc" sri1025 Linux - General 2 08-24-2010 08:53 AM
rename script won't change uppercase to lowercase on fat32 pwc101 Programming 4 09-27-2006 05:16 PM
prevent directories from being renamed chibi Linux - Newbie 7 04-29-2005 11:24 AM
problems copying a cd - files renamed to ?????? slackist Linux - General 1 06-09-2004 11:59 PM
External harddrive FAT32- VFAT options (uppercase to lowercase file name translation) pauquetb Linux - General 1 03-20-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:31 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
Open Source Consulting | Domain Registration