Restore your USB device to its original state while formatting it as FAT32.
Yes, I know that this specific type of software that allows formatting USB devices with FAT32 format is not lacking, but the truth is that I do not intend to offer an alternative to existing programs for this task, much less.
What I intend is to speed up the process of fixing when a device begins to have problems in relation to the loss of its total capacity, i.e.: if our device had the total capacity of 16 GB of memory, our computer shows us that it has any other capacity except that one.
This mostly happens when we use tools to burn ISO files to our USB device and then later, after reintroducing our USB device to our computer, it seems that our USB device "has lost some of its capacity", and here is where this small program comes into play, it basically the partition table of our device and then creates a new one, and this is how we have our total capacity 'restored', 99% of the situations in which it seems that our device has lost part of its total capacity, is because our device has an incorrect or damaged partition table so this tool does not only do a FAT32 formatting but it also creates a new partition table.
I will leave some links related to this problem.
- Superuser - 16 GB USB flash drive capacity down to 938 MB
- AskUbuntu - 16GB pen drive showing 2MB space after formatting on windows 7
- AskUbuntu - USB's storage capacity reduced to 2 MB from 16 GB
- Superuser - How do I fix my USB drive to get its original 8GB size back?
- Pendrivelinux - Restore Your USB Key to its original state
You can download the script through curl, add the execution bit, and open it. Just execute the following three lines (once opened it will ask for your sudo password)
curl https://raw.githubusercontent.com/filisko/fat32-formatter/master/fat32_formatter.sh > fat32_formatter.sh
chmod +x fat32_formatter.sh
./fat32_formatter.sh