LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-23-2013, 03:23 PM   #1
stgiaf
LQ Newbie
 
Registered: Nov 2013
Posts: 7

Rep: Reputation: Disabled
Moving FIles from Windows fileserver to Linux


Hi,
I'm in the process of migrating a Windows fileserver to Linux Centos 6.4 and I face the following problem:
The customer has really long paths more than 255 characters long. The problem is that the folder names are in greek an while they are transferre to linux whith any method (cp, rsycn, mount cifs and then copy files) I get the "Filename too long error'. As far as I understood while researching the problem is that Greek characters are stored in linux as double byte and this exceeds the limit of 255 characters. I tried to use iconv=UTF-8, ISO-8859-7 to no luck (errors from rsync) so I'm fully stacked and cannot migrate the server ..
Any ideas?
The conversion was done with the expectation that if i set the linux locale to ISO-8859-7 the greek characters will be stored as single bytes. But the conversion give errors..
Thanks in advance for any help.
 
Old 11-23-2013, 05:55 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 7
Posts: 3,453

Rep: Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924
A filename is just a string of bytes that does not include NUL or '/' and it is up to you what you put in it. If you want single-byte Greek characters you need iso 8859-7 encoding. UTF-8 and any others will give multi-byte. You'll need to set LC_ALL or at least LC_CTYPE properly as described here (I think):

http://www.tldp.org/HOWTO/Hellenic-HOWTO-4.html
 
Old 11-23-2013, 06:31 PM   #3
stgiaf
LQ Newbie
 
Registered: Nov 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks a lot for your help. The problem is that (it seems) in Windows the filename are saved as Unicode , so i cannot simply use ISO-8859-7 since the characters are not recognized.. Tha is why i tried to use --iconv option with rsync, but it didn't work..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving files beetween Linux and Windows partitions Homerous Linux - Newbie 5 06-22-2006 12:37 PM
moving files from windows to linux...urgent samyakm Linux - Newbie 5 01-02-2005 03:56 AM
moving files between windows and linux endezeichen Linux - Software 4 11-19-2003 03:39 AM
Linux Fileserver w/ Windows Clients rufius Linux - Networking 10 09-17-2003 11:58 PM
accessing Windows fileserver from linux nuzzy Linux - Networking 1 08-30-2001 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration