LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Uppercase Directories renamed when copying to FAT32 (https://www.linuxquestions.org/questions/slackware-14/uppercase-directories-renamed-when-copying-to-fat32-684191/)

alkos333 11-17-2008 07:55 PM

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

dxqcanada 11-17-2008 08:25 PM

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.

Woodsman 11-17-2008 09:43 PM

Just a guess, but check the shortname option in man mount.

alkos333 11-17-2008 11:27 PM

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!

alkos333 11-18-2008 10:34 AM

Quote:

Originally Posted by alkos333 (Post 3345873)

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.

keefaz 11-18-2008 10:41 AM

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).



alkos333 11-18-2008 06:06 PM

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



All times are GMT -5. The time now is 10:33 AM.