Friday, July 17, 2026
filesystem repair in linux for fat32 filesystem
Filesystem repair in linux for fat32 filesystem:
Yes such old USB drives still lives around :)
--
Open your terminal and list all connected storage blocks to find your FAT32 device name (e.g., /dev/sdb1 or /dev/sdc2).
lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINTS
--
sudo umount /dev/sdb1
--
This scans the filesystem and prompts you for confirmation before fixing any detected errors:
sudo fsck.fat -r -v /dev/sda1
-r: Wisely prompts you for a repair method if inconsistencies are found.
-v: Enables verbose mode so you see what the utility is actively doing.
--
If you want Linux to automatically fix all errors without asking for manual confirmation, run:
sudo fsck.fat -a /dev/sdb1
--
If you only want to inspect the drive for issues without writing changes or altering any data:
sudo fsck.fat -n /dev/sdb1
--