• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 313
  • Last Modified:

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?
0
lcor
Asked:
lcor
3 Solutions
 
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
 
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

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now