I have a 5 GB file on my MAC and can not copy it on flash memory or external hard formatted with FAT. How I can split it to some smaller files
migrated from stackoverflow.com Nov 28 '11 at 12:06
This question came from our site for professional and enthusiast programmers.
You can use this command on the shell:
and for recovering it
I hope it be useful for you!
Using hard disk utility you can create a sparse bundle on your fat drive. Inside this also larger files are allowed - the system will take care of the rest.
You can also format the stick with HFS or if you need it also on Windows install NTFS-3G and format the drive NTFS
I needed a bit more detail than Hamed's answer offered, here's what works for me, based on comments at hints.macworld.com:
This results in as many 1024mb files as required, (and one smaller file at the end) like so:
I like to use the original filename and add '.' at the end so that its really clear what the file is at a glance.
I chose 1024mb files because VOBs seem to be that size, and Toast splits files to 1024mb, too - they must have a good reason!
To join these up again:
Note that the first argument here ends in .*, which will get all the aa, ab, ac, etc at once.
Also, if the file your producing already exists, it is silently overwritten (no renamed duplicate like in Finder). The mac version of split is slightly different to the linux version, it seems (for one, numeric suffixes (-d) are not supported).