Results 1 to 7 of 7

Thread: Copying files with cp results in "file to large" error

  1. #1
    Join Date
    Jul 2008
    Location
    Texas A&M
    Beans
    23
    Distro
    Ubuntu Intrepid Ibex (testing)

    Angry Copying files with cp results in "file to large" error

    I'm trying to copy two folders, one of size 4gb and one of 6.2gb from one partition to another using cp, and i get the following result:

    Code:
    USERNAME@COMPUTERNAME:~/Desktop$ cp -r FOLDERNAME/ /DESTINATION/
    cp: writing `/DESTINATION/FOLDERNAME FILENAME': File too large
    attempting to tar the file in order to cp it later results in:
    Code:
    tar: /media/disk/.fr-lsDMPX/FILENAME.tar: Wrote only 4095 of 10240 bytes
    tar: Error is not recoverable: exiting now
    
    bzip2: I/O or other error, bailing out.  Possible reason follows.
    bzip2: File too large
    	Input file = /media/disk/.fr-lsDMPX/FILENAME.tar, output file = /media/disk/.fr-lsDMPX/FILENAME.tar.bz2
    bzip2: Deleting output file /media/disk/.fr-lsDMPX/FILENAME.tar.bz2, if it exists.
    mv: cannot stat `/media/disk/.fr-lsDMPX/FILENAME.tar.bz2': No such file or directory

    anyone have any ideas?
    thanks

  2. #2
    Join Date
    Oct 2005
    Location
    Queensland, Australia
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Copying files with cp results in "file to large" error

    What format is the destination?

  3. #3
    Join Date
    Oct 2005
    Location
    Canada eh!
    Beans
    1,148
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Copying files with cp results in "file to large" error

    good point... 4gb file limit on fat32.

  4. #4
    Join Date
    Jul 2008
    Location
    Texas A&M
    Beans
    23
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: Copying files with cp results in "file to large" error

    good point... 4gb file limit on fat32.
    well that is just stupid. why would you limit file sizes at all?

    Hardyn - good guess, the destination is formated fat32.

    luckily, i supose i can just put it on the ext3 spare i have lying around? will try that now and post back.

    also, is there any way around the file limit?

  5. #5
    Join Date
    Jan 2008
    Beans
    173

    Re: Copying files with cp results in "file to large" error

    Quote Originally Posted by waltons_pacman View Post
    well that is just stupid. why would you limit file sizes at all?
    It makes the programmers' life easier because they know that certain variables associated with the file (i.e. its length or a position inside the file) can be stored in a (C) "unsigned long int" variable. Without that assumption and especially at a time where "unsigned long long" was not available they would need to write explicit code to do arithmetic on quantities larger than 32 bits.
    Member of the Planetary Society.

  6. #6
    Join Date
    Oct 2005
    Location
    Canada eh!
    Beans
    1,148
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Copying files with cp results in "file to large" error

    same reason that 4gb of addressing is the limit for a 32bit system. the largest value representable with a 32bit unsigned integer is ~4bil. and like mentioned above it is easier to impose a limit than get into some addressing tricks.





    Quote Originally Posted by waltons_pacman View Post
    well that is just stupid. why would you limit file sizes at all?

    Hardyn - good guess, the destination is formated fat32.

    luckily, i supose i can just put it on the ext3 spare i have lying around? will try that now and post back.

    also, is there any way around the file limit?

  7. #7
    Join Date
    Jul 2008
    Location
    Texas A&M
    Beans
    23
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: Copying files with cp results in "file to large" error

    wow. those were very good, and very 'on-time' responces. thanks.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •