# How do I get a single file that is 22GB onto a MS-DOS FAT 30GB memory stick?

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.

### Alternate approach, if you wish to stick with MS-DOS FAT 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).

The 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."


where the 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.aa, pattern_name.ab, 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


where the 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:

md5 original_filename


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

## Related Questions

### Dual SIM iPhone sends silent SMS although iMessage and Facetime are turned off

0  Asked on November 8, 2021 by n1000

### How can I increase text size in single-user mode?

3  Asked on November 8, 2021 by ven42

### How can I find out the size of a video file on my iPhone 6 camera roll?

8  Asked on November 8, 2021 by eerikkibak

### How to fix “Killed: 9” error in mac os?

5  Asked on November 8, 2021

### How to create link aggregates (bonded interfaces) in shell?

1  Asked on November 8, 2021

9  Asked on November 8, 2021

1  Asked on November 8, 2021 by vinu-k-n

### Does Apple save a (hashed) version of my device passwords?

1  Asked on November 8, 2021

### Why is my 2016 iMac “Beach Balling” a lot after upgrading hardware?

1  Asked on November 8, 2021 by bryan-dunphy

1  Asked on November 8, 2021 by mason-fuller

### Types of memory: Why do private and shared not add up to real memory?

1  Asked on November 8, 2021 by emerson-harkin

### Can iPhone get damaged by magnets in case?

1  Asked on November 8, 2021

### Which Siri on which device does what?

3  Asked on November 8, 2021

### MacBook Air 2015 MagSafe charger is too hot to touch

2  Asked on November 8, 2021

### Im trying to use xcrun altool to get my app notarised, what is –asc-provider parameter?

2  Asked on November 6, 2021 by chitharthan

### How to map a MacBook keyboard to write different characters?

3  Asked on November 6, 2021 by stainly-stewart

### Do the Airpods Pro change how your internal voice sounds?

2  Asked on October 30, 2021

### How can I access a computer behind internet sharing?

2  Asked on October 30, 2021 by lennon-mclean

### Use an External USB SSD before logon (daemon)

1  Asked on October 30, 2021

### DNS problems with Wireguard VPN

1  Asked on October 30, 2021 by nick2k3