Check and Fix SD Card from the android terminal emulator
Your Android SD card gets “corrupted” and you don’t have a PC to connect the smartphone and make the check of SD card?
It’s possibile to make this operation directly from the smartphone? (rooted and with busybox installed, of course!)
“It Could Work!”
The binary to do the job is called fsck* (or fsck_msdos), and usually located in /system/bin.
First we need to find the device your SD card is bound to. If it’s mounted, the mount command will assist us:
mount | grep -i sdcard
Check the output and see where your SD card sits.
Output may include something like
Now we can go for the repair job:
su fsck_msdos -y /dev/block/vold/179:65
And after simply reboot the phone!