Skip to content

Instantly share code, notes, and snippets.

@emotality
Created September 26, 2018 23:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emotality/2189c36cff7d616773e3d049e40b70ee to your computer and use it in GitHub Desktop.
Save emotality/2189c36cff7d616773e3d049e40b70ee to your computer and use it in GitHub Desktop.
Split files bigger than 4GB for FAT drives on macOS

Split big files

Split files bigger than 4GB for FAT drives on macOS

To split files (into 1Gb files in this example)

# If your file is named YourFile.iso
$ split -b 1024m "YourFile.iso" "YourFile.iso."
# split -b <size> <in_filename> <out_filenames>

After copy and you want to merge them back together

$ cat YourFile.iso.* > YourFile.iso

If that doesn't work

$ cat YourFile.iso.aa YourFile.iso.ab YourFile.iso.ac > YourFile.iso
# cat <filename_1> <filename_2> <filename_etc> > <single_filename> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment