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

mount | grep sdcard1

Now we can go for the repair job:

fsck_msdos -y /dev/block/vold/179:65
fsck output

And after simply reboot the phone!

Related posts

  1. Weekly Cybersecurity Roundup #8
  2. i3: how to make a pretty lock screen with a small bash script
  3. Weekly Privacy Roundup #2
  4. Weekly Privacy Roundup #1
  5. Hacking Android Smart TVs using the IR remote control