Solved

CentOS is changing all file names to lowercase

Posted on 2009-07-15
9
331 Views
Last Modified: 2013-11-08
I built a new Linux server with CentOS to replace an ancient RedHat server.  I'm copying over a bunch of directories and a few web apps are not working.  It turns out that CentOS is changing all file names to all lowercase.  Is this normal and how can I stop that from happening so that all the files can be accessed as they should be (case sensitive)??  Thanks.
0
Comment
Question by:tenover
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 16

Expert Comment

by:medvedd
ID: 24863070
How are you copying files from RH to Centos?
0
 

Author Comment

by:tenover
ID: 24863135
Well, I'm copying these directories over to a Windows box FROM the windows box via Samba, and the file names retain their casees just fine.  I then use Samba to connect to the new CentOS box and as soon as I drag and drop to that box, everything goes to lower case...
0
 
LVL 16

Accepted Solution

by:
medvedd earned 500 total points
ID: 24863189
If it's impossible to copy files from RH to Centos directly, you should add two lines to smb.conf global section on Centos:


preserve case = yes
short preserve case = yes
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 16

Expert Comment

by:medvedd
ID: 24863206
P.S. Don't forget to re-read smb.conf:

/etc/init.d/smb reload
0
 

Author Comment

by:tenover
ID: 24863284
Looks like that did it.  Thanks very much.  One more question, what would be the preferred way to copy from one linux server to the other?  I can telnet into the old one, but once there, would I just somehow ssh or telnet into the new server from a terminal and copy that way?
0
 
LVL 16

Expert Comment

by:medvedd
ID: 24863326
Best way to copy from one unix box to another is rsync. It'll work over ssh connection, so it's secure too.
0
 

Author Comment

by:tenover
ID: 24863452
Would you be so kind as to tell me how to use rsync or where I can find documentation on it?
0
 

Author Comment

by:tenover
ID: 24863525
So I think I found the documentation, however the old server is RedHat 7.2....Not sure if it even has rsync.  Is there a very simple way to copy from the old server to the new?  I need to copy some very large directories over and would like to do it the proper way.
0
 
LVL 16

Expert Comment

by:medvedd
ID: 24869216
You can download and compile rsync from sources:

http://www.samba.org/rsync/
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
unable to put logic for reading multiple repo in a single file 4 72
open source backup solution 1 45
Connect to CentOS (in a local VMWare VM) using Putty 7 149
SSH in linux 9 69
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

733 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