Solved

How to copy files and folders from an EXT3 mount to an NTFS mount and skip illegal names

Posted on 2004-10-20
4
256 Views
Last Modified: 2010-04-19
Hi there
I've just migrated from a Linux server to a Windows 2003 server. I have used some software from Paragon (Mount Everything) to mount our old EXT3 disk on the new server. I am now trying to copy 100gig of data from the EXT3 drive onto a new drive on the server.
The problem is that there are a large number of files and folders that begin with a . (a period). This is used to mark them as hidden under Linux (they are there because of Netatalk). When I try to copy a whole load of folders it says

"Cannot copy xxx The file name, directory name or volume label syntax is incorrect"

I can do a search for all all these files/folders by searching for .*  -  trouble is I can't delete them.

So does anyone know of a way round this. Is there a way to make Windows just skip over illegal files during a copy instead of choking on them.

Many thanks in advance,
Julian
0
Comment
Question by:Boffgroup
[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
4 Comments
 
LVL 7

Assisted Solution

by:corneliup
corneliup earned 300 total points
ID: 12357600
You can use RoboCopy.exe from the win2k3 resource kit with the following switch:

/XF ExFile
Excludes files matching given names, paths, or wildcard characters.


Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
0
 
LVL 15

Accepted Solution

by:
harleyjd earned 200 total points
ID: 12357630
I use xcopy with the /c switch which continues on error.
0
 
LVL 1

Expert Comment

by:blueivy
ID: 12359661
Use xcopy <source> <destination> /s /e /c /h /y

This will copy the source to the destination, copy all subfolders (/s) even if they are empty (/e), continue on error (/c), copy hidden files (/h) and will not prompt you to overwrite.

I use this all the time. A lot quicker than the GUI copying.
0
 
LVL 4

Author Comment

by:Boffgroup
ID: 12359803
I've split the points as corneliup was correct but I actually used harleyjd's solution and it came in only 2 minutes later.
So thanks guys - both right on money and saved me a load of hassle.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

696 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