Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com Nov 28 '11 at 12:06

This question came from our site for professional and enthusiast programmers.

    
Look into RAR tools. –  Alex Reynolds Nov 28 '11 at 11:37
    
I am looking for a free solution. –  Abbas Mousavi Nov 28 '11 at 11:40
add comment

3 Answers

up vote 10 down vote accepted

You can use this command on the shell:

split -b YOUR_EXPECTED_SIZES YOUR_FILE_NAME PATTERN_NAME_AS_OUTPUT

and for recovering it

cat SPITED_FILES_AS_LIST > NEW_FILE

I hope it be useful for you!

share|improve this answer
add comment

I needed a bit more detail than Hamed's answer offered, here's what works for me, based on comments at hints.macworld.com:

split -b 1024m "YourFile.iso" "YourFile.iso."

This results in as many 1024mb files as required, (and one smaller file at the end) like so:

  • YourFile.iso.aa
  • YourFile.iso.ab
  • ...
  • YourFile.iso.af (the last file will be less than 1024mb)

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:

cat YourFile.iso.* > YourFile.iso

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).

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.