[mythtv-users] Knopmyth R5B7: Copying >2GB files

Nicolas Mainil nicolas.mainil at gmail.com
Tue Apr 18 18:57:09 UTC 2006


On 4/18/06, lee1 at jamjar.demon.co.uk <lee1 at jamjar.demon.co.uk> wrote:
> Hi,
>
> I have recently built a Knoppmyth box R5B7 (Auto installed from the CD image), and it seems to be running ok.  I had a few troubles with tv_grab_uk_rt initially, but have sorted that out now.
>
> The system is working fine, and successfully recorded the first Dr Who on Saturday (a 3.5GB file).  Now I can record all the things I want while away with work - yippee!
>
> Now comes the problem....
>
> I cannot copy, move, or create files >2GB from the command line - even as root.
>
> Ok, the story so far:
>
> I salvaged an 80GB hard disk out of another system to increase the available recording space, and started to follow the instructions for setting up LVM.  During the procedure, i needed to copy the Dr Who episode onto the temporary LVM mount.  The copy started ok, but failed at the 2GB point with the message "maximum file size exceeded".
>
> I tried the copy as root, it failed again, same point.
> I tried copying the files to a shared windows directory (smbmount) (XP SP2, 80GB+ free, no file quotas).
> I tried gzip - still too big.
> I then tarred the file in 1GB lumps to the new drive.  Ok so far... Tried un-tarring them - same problem....
>
> I then editied limits.conf, and added a line to allow files of 10GB - tried all the above, still the same problem.
>
> I searched the gossamer-threads archive for clues, and Googled too.  This can't be happening to just me (!!!)
>
> Clearly, the file system supports >2GB files, as I have recorded and played a 3.5GB file all the way through.  Is there another option somewhere that I need to enable, or do I need to re-compile the kernel with some other support.  I don't want to lose the Dr Who episode, and I'm flying off to China this weekend.

You're saying the source filesystem can handle 2GB+ files cause you
recorded a 3.5GB show but what about the target filesystem (if not the
same). If you are 100% sure your filesystem supports 2GB+ files, then
it might be, but IMHO highly improbable, that the program you're using
to copy the file ( cp? ) wasn't compiled with proper cflags
(-D_FILE_OFFSET_BITS=64 -D_LARGE_FILE_SOURCE) needed to handle 2GB+
files.

Nicolas


More information about the mythtv-users mailing list