Home > Questions

How to check and fix SD card with fsck via Termux?

Is it possible to use 'fsck' to check and fix sd card issues via Termux?

Best Answered by

iBoysoft author Anna Yuan

Anna Yuan

Answered on Wednesday, May 31, 2023

Normally, when your SD card has some file system problems and is not recognized by macOS, you can run fsck on your MacBook or Mac to check and repair it. However, if you want to check and fix an SD card with the fsck command via Termux, is it possible? Actually, if your device is not rooted, then it's impossible.

Though you can't run fsck to repair your SD card via Termux, you can fix this problem with the help of root and another terminal emulator, such as Terminal Emulator for Android.

First, free download Terminal Emulator for Android on the web. Make sure your Android device is rooted. 

Then, open this app and unmount your SD card fully and type in the following command:

fsck.*

This will enumerates your SD card as /dev/block/mmcblk1p*(p* means the partition number). Then input the below command line if the file system is FAT.

fsck.fat

For exFAT file system, simply type in:

fsck.exfat 

Hope the above-mentioned ways should help you repair the unrecognized or corruted SD card, it's worthy mentioning again it's better to always backup your important files to both external storage devices and cloud storage.

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

Fix SD card corrupted on Android

Fix Corrupted SD Card on Android with or without Computer

Found your (micro) SD card corrupted in your Android phone? Here's how to fix a corrupted SD card on Android with or without a computer & recover the data.

SD Card Recovery

SD card is damaged

SD Card is Damaged, Try Reformatting It: Why and How to Fix?

SD card stores lots of important data from its user. Hence, the SD card is damaged, try reformatting it error brings a lot of stress. This article tells you why this error occurs and how to fix it.

SD Card Recovery

SD card fixer

[Full Guide] 5 Best SD Card Repair Tools in 2022

This article presents you with a wonderful helper that can grab your data on the corrupted SD card and repair it with simple clicks. Moreover, some built-in ways to repair your SD card are covered too

SD Card Recovery