cp: error writing '/location-to-file/file.zip': File too large

7,916

FAT 32 has a 4GB maximum file size and 8TB maximum partition size, whereas you can store files that are larger than 4GB each on a flash drive or SD card formatted with exFAT. exFAT's maximum file size limit is 16EiB (Exbibyte).

Share:
7,916

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin almost 2 years

    Log:

    ~$ cp -r folder /media/usr/media-name/
    cp: error writing '/location-to-file/file.zip': File too large
    

    Question: How to copy large files/folders to media in Linux?


    Excess Details

    500 GB Sandisk Drive (recently formatted to FAT using GNOME Disks)

    Folder of under 20 GB

    • Admin
      Admin over 4 years
      FAT 32 has a 4GB maximum file size. The '32' is a bit-size built into the FAT structures, and 2^^32 is 4GB. So your .zip file can't be written to it. Linux is best with ext4 or ext3 file systems, exFAT and NTFS are possible, but FAT is a bad choice.
    • Admin
      Admin over 4 years
  • gignu
    gignu over 2 years
    16 EiB (Exbibyte) is enormous! Just in case anybody is wondering if it would be enough, hahah