How to repair a corrupted FAT32 file system

Try typing the following command in the Linux terminal:

Install dosfstools package

The package you need to install in your Linux PC to be able to format disk using FAT32 file system is: dosfstools

install dosfstools in Debian / Ubuntu

apt-get install dosfstools


sudo dosfsck -w -r -l -a -v -t /dev/sdc1


sudo fsck.fat -w -r -l -a -v -t /dev/sdc1


If your partition is /dev/sdb1, for example, then unmount it first by running this command:

umount /dev/sdc1

Now you can verify and repair your partition by running this command:

sudo dosfsck -t -a -w /dev/sdc1