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. How smartphones reacts to IMSI catching attacks?
  2. Android Triage: a really useful forensic tool by Mattia Epifani
  3. How many data are shared by iOS and Android telemetry?
  4. Some useful tips about /dev/tcp
  5. FAMA: Forensic Analysis For Mobile Apps