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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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