LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02: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, 04:55 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
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, 05: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



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 11:37 AM
moving files from windows to linux...urgent samyakm Linux - Newbie 5 01-02-2005 02:56 AM
moving files between windows and linux endezeichen Linux - Software 4 11-19-2003 02:39 AM
Linux Fileserver w/ Windows Clients rufius Linux - Networking 10 09-17-2003 10:58 PM
accessing Windows fileserver from linux nuzzy Linux - Networking 1 08-30-2001 04:04 PM

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

All times are GMT -5. The time now is 08:48 PM.

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