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

dosfstools-3.0.13:

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

or
dosfstools-3.0.26

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

20141117_fsckfat

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

廣告