File archivers also usually support a "store" or "no compression" mode which can be used if you know the contents of the file cannot be usefully further losslessly compressed, as is often the case with already compressed archives, movies, music and so on. Many file archivers also support splitting the file into multi-part archive files earlier, this was used to fit large archives onto floppy disks, but these days it can just as well be used to overcome maximum file size limitations like these. This can be used with any maximum file size limitation. To combine them, just use cat (con catenate): $ cat my6gbfile.part* > my6gbfile.recombinedĬonfirm that the two are identical: $ md5sum -binary my6gbfile my6gbfile.recombinedĥ8cf638a733f919007b4287cf5396d0c *my6gbfileĥ8cf638a733f919007b4287cf5396d0c *my6gbfile.recombined You can also, instead of -bytes=2GB, use -number=4 if you wish to split the file into four equally-sized chunks the size of each chunk in that case would be 1 610 612 736 bytes or about 1.6 GiB. (Just substitute your own.) Then, I split them into segments approximately 2 GiB in size each the last segment is smaller, but that does not present a problem in any situation I can come up with. Here, I use truncate to create a sparse file 6 GiB in size. My6gbfile my6gbfile.part00 my6gbfile.part01 $ split -bytes=2GB -numeric-suffixes my6gbfile my6gbfile.part For example, on Linux you can do something similar to: $ truncate -s 6G my6gbfile However, if you split the file into multiple files and recombine them later, that will allow you to transfer all of the data, just not as a single file (so you'll likely need to recombine the file before it is useful). So you cannot copy a file that is larger than 4 GiB to any plain FAT volume.ĮxFAT solves this by using a 64-bit field to store the file size but that doesn't really help you as it requires a reformat of the partition. The 4 GiB barrier is a hard limit of FAT: the file system uses a 32-bit field to store the file size in bytes, and 2^32 bytes = 4 GiB (actually, the real limit is 4 GiB minus one byte, or 4 294 967 295 bytes, because you can have files of zero length). Natively, you cannot store files larger than 4 GiB on a FAT file system.
0 Comments
Leave a Reply. |