Copy causes change of case

Posted on 2004-11-24
Last Modified: 2013-12-27
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?
Question by:lcor
    LVL 40

    Assisted Solution

    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.
    LVL 38

    Accepted Solution

    > 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 :
    # gunzip unzip-5.50-sol9-sparc-local.gz
    # pkgadd -d unzip-5.50-sol9-sparc-local
    It will install into /usr/local/bin/unzip.

    LVL 38

    Assisted Solution

    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:


    typeset -l NEWNAME=UPPER

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

    rm /tmp/mylist
    # End of script
    LVL 51

    Expert Comment

    > 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?

    Author Comment

    The zip solution was what I ended up using

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now