Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th September 2012, 08:00 AM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Error copying large files

When I attempt to copy large files (over 4GB) between two external hard drives, the process fails, telling me the file is too large. I've experienced this using cp and rsync, and graphically through thunar.

I doubt this is an issue with the filesystems since they're both NTFS, and I can't imagine it'd be an issue with memory since I have 4GB RAM and 6GB swap (surely more than enough for a 5.2GB file?)

I'm using 32-bit F16; is this likely to be the source of the problem? If so, I'd guess that installing a PAE kernel would resolve it, but does this pose any risk of causing conflicts with the rest of my system? (i.e. is there a risk of PAE not playing nice with any already-installed 32-bit packages, or would it be just like any other kernel update?)

Thanks in advance for any responses!
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
  #2  
Old 28th September 2012, 03:19 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: Error copying large files

Well, I'm not sure that your issue will be resolved by using the PAE kernel, but to answer your question on that.. You can install the PAE kernel without a problem with your other packages. the PAE kernel is still a 32 bit kernel.

If you have the kernel-devel or th kernel-modules-extra packages installed, you will also need to install the PAE version of those. Also, if you have some of the kmods installed (like kmod-nvidia) you will need the PAE version of those as well.

To get your PAE kernel, all you need to do is a yum install

yum install kernel-PAE

and if you have the kernel-devel and kernel-modules-extra packages installed:

yum install kernel-PAE-devel kernel-PAE-modules extra

You should then have the PAE kernel as an option in your grub2 boot menu.
Reply With Quote
  #3  
Old 29th September 2012, 09:01 AM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Error copying large files

Good to hear that the PAE kernel won't break things, at the very least I still find it strange that >4GB files won't copy though!

---------- Post added 29th September 2012 at 09:01 AM ---------- Previous post was 28th September 2012 at 09:05 PM ----------

Had a trawl through every result for a "copy large files" search, and got nothing I can split+cat the files to copy them, but that doesn't resolve doing it through rsync/cp. I suppose doing it with dd might work, but they're 1TB drives connected by USB - that somewhat ruins the concept of doing it quickly! (My reason for using rsync)

One point that did come up in one thread was ulimit values; however:
Code:
$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 28168
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1024
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
I can't see anything in there that suggests it could be causing a problem?
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
  #4  
Old 29th September 2012, 12:33 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,092
linuxfirefox
Re: Error copying large files

actuall, dd in some cases will be faster - you can specify larger buffers for use.

Cutting off at 4G looks more like a filesystem limit. How do you have the volume mounted?
Reply With Quote
  #5  
Old 29th September 2012, 01:23 PM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Error copying large files

The 'source' drive automounts on boot through /etc/fstab:
Code:
UUID=24586C8B586C5D94    /mnt/Storage    ntfs     defaults,nofail     0 0
The second drive doesn't have any special settings - it just automounts when I plug the USB in (it usually sits on a shelf, rather than attached to the PC - it's a 'monthly back-up' sort of drive).



Is it actually possible that dd could be faster? That may be the case for the first time the back-up's created, but I'd have thought that rsync would be faster from then on owing to the amount of files it can skip - it wouldn't do the 30+gb of Linux iso's or 8+gb of music the second time, for example? That said, I've only used dd once before, and that was a straight "if=[src] of=[dest]" case, so I'm not exactly qualified to make judgements on it
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
  #6  
Old 29th September 2012, 02:53 PM
kkshethin Offline
Registered User
 
Join Date: Dec 2009
Location: India
Posts: 253
linuxubuntufirefox
Re: Error copying large files

is correct fstab entry should read ntfs-3g instead of ntfs?
Reply With Quote
  #7  
Old 29th September 2012, 02:59 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,092
linuxfirefox
Re: Error copying large files

Try using "ntfs-3g". If you have the >4G files already existing on input, and copying to the USB disk, you might check how it is mounting the output.

As for dd It depends entirely on what you are copying. If you are copying iso files, that don't change, then rsync is better on the second copy. Creating an iso is only good for a quick image copy - it wastes a lot of space due to the unused data blocks and metadata in the input. I think an iso would be ok for /boot for instance, but not for anything else (it would copy the partition boot block, but won't copy the MBR unless you are copying a full disk device)

The problem rsync has is that it does not use large buffers - it was originally designed for remote sync (hence the "r"sync). dd, can use large buffers (largest I've ever used was 16MB or so) and that allows the disk controller to be busy copying/filling the buffer in one go- then busy emptying it in one go (scatter/gather works well for this). For synching a lot of small files, rsync would be very hard to beat.

If you are copying single, small files, it doesn't matter much about the buffering..

Last edited by jpollard; 29th September 2012 at 03:01 PM. Reason: sorry - mis reference to rsync in a sentence
Reply With Quote
  #8  
Old 29th September 2012, 03:55 PM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Error copying large files

I'll have a go at the ntfs-3g setting - thanks

Would I be correct in thinking that I'd want that setting on both of them, since they're both ntfs filesystems? (They're shared with my Windows partition ) If so, would I be correct in thinking that setting an fstab entry for the second external drive:
Code:
UUID=24586C8B586C5D94    /mnt/Storage    ntfs-3g     defaults,nofail     0 0
UUID=################    /mnt/Backup     ntfs-3g     defaults,nofail     0 0
would result in that drive mounting as ntfs-3g when I plug it in?

---------- Post added at 03:37 PM ---------- Previous post was at 03:18 PM ----------

I've possibly found the source of the problem - plugged in my Backup drive, and ran fdisk -l:
Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1              63  1953520064   976760001    7  HPFS/NTFS/exFAT
That result is what made me assume it was an ntfs volume. However, when I run blkid:
Code:
/dev/sdc1: LABEL="NEKO~ROAMIN" UUID="F830-8F13" TYPE="vfat"
And if I recall correctly, vfat can only handle up to 4gb files?

Time to format the drive and try again...!

---------- Post added at 03:55 PM ---------- Previous post was at 03:37 PM ----------

With the backup volume changed to ntfs, the files copy correctly. Problem solved!

Thank you for your replies, everyone
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
Reply

Tags
copying, error, files, large

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Input/output error when copying files to Fedora Live CD kenneho Installation and Live Media 0 20th December 2010 12:58 PM
"I/O Error" When copying files??? ClintRedifun Using Fedora 0 15th June 2009 10:20 PM
'File too large' when copying 6.3GB file from ext3 to USB arun_maurya Using Fedora 4 8th December 2008 11:24 AM
copying files ColonelPenguin Linux Chat 2 8th June 2007 10:13 AM
Copying files wgh Using Fedora 8 15th July 2006 04:00 AM


Current GMT-time: 01:52 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat