copying files

Asked by WolfT4322

I'm trying to copy a ton of files from some WIndows directories (mostly .txt files) to Linux. I've tried it a number of times and it looks like everything is working fine, and about half way through it just quits. And I've checked some of the folders and it seems to copy some files and not others. This is not good (especially for such a basic operation). Any help would be appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Gabriel Puliatti
Solved:
Last query:
Last reply:
Revision history for this message
Gabriel Puliatti (predius) said :
#1

Have you tried using the command line. By using cp you should be able to copy. Furthermore, perhaps you could also submit a bug explaining the specific details of your system.

Revision history for this message
WolfT4322 (wolft) said :
#2

Gabriel Puliatti wrote:
> Support request #2050 on Ubuntu changed:
> https://launchpad.net/distros/ubuntu/+ticket/2050
>
> Comment:
> Have you tried using the command line. By using cp you should be able to copy. Furthermore, perhaps you could also submit a bug explaining the specific details of your system.
No, I haven't yet. I'm still new to Linux. I've tried Linux a few times
and find the usability is not up to snuff yet (at least not for the
average user). Just trying to get my graphics card working was a
nightmare and I'm still not sure that it's working right.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#3

Have a look at the names of the files. I've had problems copy files between filesystems where there have been "odd" - non-ASCII characters in the names.

Revision history for this message
towsonu2003 (towsonu2003) said :
#4

a quick tip: you can use rsync from the command line to copy files and then diff to check if everything is copied successfully. following are the commands I use for my backup purposes (don't include the comments after #; and of course, change the paths for your own conditions :) ):

= Transfering files from dest to target/dest =

rsync -av /dest /target/ # this will copy the directory "dest" under the folder "target"

= Comparing Files =

diff -rq /target /source | less # this will compare all the files inside the folder "target" and the folder "source"

Example:

1. Copy from my own windows documents folder to Linux documents folder (command is one line):
rsync -av /media/ntfs/Documents\ and\ Settings/All\ Users/Documents/ /home/mehmet/documents/WindowsDocuments

2. Compare two folders (source and new) command is one line):
diff -rq /media/ntfs/Documents\ and\ Settings/All\ Users/Documents/ /home/mehmet/documents/WindowsDocuments/Documents | less

Revision history for this message
WolfT4322 (wolft) said :
#5

towsonu2003 wrote:
> Support request #2050 on Ubuntu changed:
> https://launchpad.net/distros/ubuntu/+ticket/2050
>
> Comment:
> a quick tip: you can use rsync from the command line to copy files and then diff to check if everything is copied successfully. following are the commands I use for my backup purposes (don't include the comments after #; and of course, change the paths for your own conditions :) ):
>
> = Transfering files from dest to target/dest =
>
> rsync -av /dest /target/ # this will copy the directory "dest" under the folder "target"
>
> = Comparing Files =
>
> diff -rq /target /source | less # this will compare all the files inside the folder "target" and the folder "source"
>
> Example:
>
> 1. Copy from my own windows documents folder to Linux documents folder (command is one line):
> rsync -av /media/ntfs/Documents\ and\ Settings/All\ Users/Documents/ /home/mehmet/documents/WindowsDocuments
>
> 2. Compare two folders (source and new) command is one line):
> diff -rq /media/ntfs/Documents\ and\ Settings/All\ Users/Documents/ /home/mehmet/documents/WindowsDocuments/Documents | less
>
Thanks for the info.

Revision history for this message
Ubuntu User (anotherubuntuuser) said :
#6

If these comments solved your problem, please consider closing this request as answered. You can find useful information on managing your support requests here: https://wiki.ubuntu.com/SupportRequests

If you are still having problems, let us know and we'll keep working on them.

Thanks-

Jim Jones

Revision history for this message
WolfT4322 (wolft) said :
#7

Many thanks for the answers. I'm not sure I'm going to continue with Unix but consider this request closed.