Copy causes change of case

I am trying to copy files from Windows XP to Solaris 9 using a thumdrive.  The files copy but the case of files changes to UPPERCASE.  This is okay for one or two files but when copying directory structure with more files, it is a problem.

I use the cp command.

Is there a way around this?
lcorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jlevieCommented:
I'd bet that the "disk format" of the thumb drive is FAT, not FAT32. FAT file systems only understand upper case 8.3 file names. It might be possible to reformat the thumb drive into FAT32, which can preserve case.
0
wesly_chenCommented:
> Is there a way around this?
Zip it and copy the zip file over the Solaris and unzip on Solaris.
You can download unzip from :
http://www.sunfreeware.com/
or
ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/unzip-5.50-sol9-sparc-local.gz
then
# gunzip unzip-5.50-sol9-sparc-local.gz
# pkgadd -d unzip-5.50-sol9-sparc-local
It will install into /usr/local/bin/unzip.

Wesly
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yuzhCommented:
I think it have something to do with DOS compatible file name with the Windows file
system. not sure if change to NTFS can help.

When you copy file/dirs from M$ Windows, please make sure that there is no WHITE
space in filename/dirname.

You can use script to convert Uppercase filenames to lower case, here's a script for
the job:

#!/bin/ksh

typeset -l NEWNAME=UPPER

ls -1 * > /tmp/mylist
for i in `cat /tmp/mylist`
   do
   NEWNAME=$i
   mv $i ${NEWNAME}
done

rm /tmp/mylist
exit
# End of script
0
ahoffmannCommented:
> I use the cp command.
does this mean that you issue the cp command on Solaris to copy files?
If so, how did you mount the M$ filesystem?
0
lcorAuthor Commented:
The zip solution was what I ended up using
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.