Problem copying large amount of files from IDE external case in Fedora C4
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem copying large amount of files from IDE external case in Fedora C4
hi
i got some 15gb of files im trying to copy from an external ide case (connected trough usb) drive patitition (ntfs -> i installed linux-ntfs (cant post link :s)) to my home folder. I can read ALL files in original folder trough file brower;
Im logged in as root (otherwise couldnt mount external ide partits).
After copy process im missing some 300 files ~1gb in destination folders, spread by many completly different subfolder/subfolder/files.xpto single files (not a single subfolder). im trying to identify and copy those missing files manually atm. No error displayed any time during process copy.
Apparently it just "forgot" some 300 files during mass copy.
It this 'possible'?
Any ideas?
linux-ntfs 'copy()' bug?
thx
Last edited by TruthSeeker; 10-25-2005 at 03:03 PM.
Damn! Missing 100 files or so. so many folders i just cant go on. anyone know of an easy way to "compare" the two folders content? so i can identify and copy the missing files?
any1 got any little app that does it or src code? chiuf
ill be out 4 coffe 4 a while.
bbl to continue my file finding and school programming saga.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
If you are using the external drive, it has to have a mount point. A mount point is a directory, off the linux root directory tree somewhere where the disk is mounted.
Launch a console
cd to the mount point of the external:
cd /mnt/usbdrive
run this command:
cp<space>-r<space>*<space>/home/sam/directory
Don't run the command exactly like that, change the last part to where your are copying your files.
I know you can do it. The Portugese are awesome people. You have great capability. I have faith in you.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Quote:
(ntfs -> i installed linux-ntfs
Do you say here that you created an NTFS partition in Linux and tried to copy to that NTFS partition in Linux?
If so, it is common opinion that writing to NTFS in Linux is tricky and unreliable. It would explain the many missing files and the wrong subdirectories etc.
If so, why did you create an NTFS partition in Linux? ext3 is much more suitable.
Copied 7104 files. 7229 total, still missing 125 files... puf!
any can get me C code for getting index of all files in a folder so i can build an app to solve the problem?
i could compare those existing in original folder with those in dest folder and copy those that dont exist. And if i am to use this disk often i really need it.
i know how to get and copy a specific file, dunno how to get all in a specific location tough.
Since you are running out of options, why not give rsync a try?
Rsync is associated with Samba (see: http://rsync.samba.org/ ) and was originally developed for copying across networks. It works fine on local files and only copies files that have changed. Using ntfs files as a source may cause problems, but it's worth a try.
Using rsync is a lot like using cp:
rsync -r /mnt/source/ /mnt/destination/
That would recursively copy whatever was in /mnt/source to /mnt/destination. In a linux-type filesystem setting, you would usually run it like this:
rsync -a /mnt/source/ /mnt/destination/
where -a is archival and is similar to cp archival copies. Since the concept of preserving the owner, group, permission, etc. does not really apply to ntfs files, the -a option might have unexpected consequences when copying ntfs files.
You could always try -a v.s -r on a small directory and see what happens. In any case, you can always run chown, chgrp and chmod after you're finished.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.