A commenter has suggested that a MS-DOS FAT memory stick has a limit of 4GB for each file. I have a 22GB file that when moved or saved to the stick says it is ‘too large for the format’ of my 30GB memory stick. I’ve used the Disk Utility to help reformat/clean the memory stick (which is new by the way).
What else do you suggest please?
You can format the memory stick as ExFAT. Go to Disk Utility, click the Erase button, and select the Format as ExFAT. ExFAT supports much larger file size and you'd be easily able to copy 22GB file on a ExFAT formatted filesystem.
ExFAT is supported on Mac, Windows as well as Linux and any of those OS can both read and write to an ExFAT formatted filesystem.
You can use the
split command-line utility. The
split utility comes pre-installed in macOS (I have assumed you are using a Mac).
split command-line utility lets you split a large file into smaller chunks which can be managed separately. The command lets you specify the size of a chunk and the input file is broken into the chunks of mentioned size with the last chunk equal to or less than the chunk size.
The chunks can at a later point be re-joined to restore the original file.
This command-line utility comes in handy in cases where you have restrictions on file size such as yours (or such as when wanting to email a larger file which is over the limit for the attachment size allowed in an email).
This is how you can use the
split command to break the 22GB file in question into chunks smaller than 4GB each. On your Mac, launch Terminal.app, use the
cd command to navigate to the directory where you have the original 22GB file and type the following command:
split -b 4000m "original_filename" "pattern_name."
original_filename is the name of the input file and
pattern_name. would be the name used for chunks. The chunks would be generated as
pattern_name.ac and so on. The output file chunks would be generated and saved in the current directory. Each chunk would be 4000m or 4000 megabytes in size, which is under 4GB. You can choose any other appropriate chunk size as well.
Now you can copy the individual chunks on the memory sticks as they are smaller than the allowed size for the filesystem.
At a later point, when you want to re-join the chunks, copy the chunks onto a filesystem which supports larger file size (such as other Mac, or the same Mac in future), and run the following command:
cat pattern_name.* > original_filename
original_filename is the name/path for the output file.
Additionally, if you'd also want to make sure that the integrity of the file is maintained, you can derive and verify with the MD5 checksum for the original and the re-joined file.
The MD5 checksum for a file can be obtained by running the following built-in macOS command:
which should give an output similar to the following:
MD5 (original_filename) = 00e47d9d1414d49ab5ab3eee653ed96b
The value for checksum should match before and after the split. The value of checksum shown above would differ in your case.
Answered by Nimesh Neema on December 22, 2020
0 Asked on November 8, 2021 by n1000
3 Asked on November 8, 2021 by ven42
8 Asked on November 8, 2021 by eerikkibak
1 Asked on November 8, 2021
1 Asked on November 8, 2021 by vinu-k-n
1 Asked on November 8, 2021
1 Asked on November 8, 2021 by bryan-dunphy
1 Asked on November 8, 2021 by mason-fuller
1 Asked on November 8, 2021 by emerson-harkin
2 Asked on November 8, 2021
2 Asked on November 6, 2021 by chitharthan
3 Asked on November 6, 2021 by stainly-stewart
2 Asked on October 30, 2021
2 Asked on October 30, 2021 by lennon-mclean
1 Asked on October 30, 2021
Get help from others!