Smartphone malfunctions often begin with unnoticeable data reading errors. When file system damaged, the device may freeze, applications may crash, and important photos may disappear. Diagnosing the state of the disk subsystem is a critical stage before serious intervention in the operation of the gadget.

In this article we will look at how to check the integrity of data on the internal drive and external media. We will look at both standard OS tools and advanced methods using a computer and the recovery console. It is important to understand that file systems ext4 and F2FSused in Android require a specific approach to checking.

Symptoms of file structure corruption

Before running complex utilities, you should pay attention to indirect signs. If your device suddenly starts running slower and applications take an unusually long time to launch, this may indicate problems with reading sectors or broken file indexes.

One โ€‹โ€‹of the most obvious markers is the appearance of strange artifacts in the gallery. You may find files that cannot be opened or images with distorted colors. This is a sure sign that the directory structure is broken.

  • ๐Ÿ“‰ The smartphone reboots on its own while working with files.
  • ๐Ÿ“ The appearance of files with zero size or unreadable names.
  • ๐Ÿ”‹ Rapid battery drain due to the system's constant attempts to read bad sectors.

Sometimes the operating system itself signals a problem. You may see a message asking you to check your disk the next time you boot. You should not ignore such notifications, as the problem tends to progress.

โš ๏ธ Attention: If you observe physical damage to the case or traces of moisture, a software check may worsen the situation. In such cases, it is better to immediately contact a service center.

Using built-in diagnostic tools

Modern Android shells, such as One UI from Samsung or MIUI from Xiaomi, often have built-in self-diagnosis tools. They allow you to carry out a basic check without the need to obtain root access or connect to a PC.

Usually such functionality is hidden in the device maintenance menu. You need to go to settings and find the section responsible for battery and memory. Here the system can offer optimization, which includes checking for logical errors.

๐Ÿ“Š Have you encountered file corruption on Android?
Yes, I lost important photos
No, everything works stably
There were minor glitches, but the files intact
I only use the cloud

To access diagnostics on many devices, just enter a special code in the phone application. Try dialing #0# or *#9900#. These commands open the service menu where you can run memory and storage tests.

However, it is worth remembering that standard tools often only check the availability of partitions, and not their low-level integrity. For in-depth analysis, more powerful tools will be required.

Checking through Recovery mode

The most reliable way to check the file system without loading the main OS is to use the Recoverymode. In this mode, the system does not mount partitions in recording mode, which allows you to safely scan the disk for errors.

To get to this menu, you need to turn off the smartphone and hold down the button combination. Most often this is Volume up + Power or Volume down + Power. The combination depends on the manufacturer of your device.

How to enter Recovery on different brands

Samsung: Off + Volume up + Home button (if available) + Power. Xiaomi: Off + Volume Up + Power. Pixel: Off + Volume down + Power (then select the mode using the arrows).

In the recovery menu, select Wipe cache partition. Although this function is intended to clear the cache, the process of recalculating checksums often identifies and corrects minor logical errors in the file system.

If you have a custom recovery installed, for example TWRP, the possibilities expand. In the section Advanced -> File Manager you can see the folder structure, and in some versions there is a partition check function (Repair/Change File System).

โš ๏ธ Attention: Be extremely careful in the Recovery menu. Selecting the item Wipe Data/Factory Reset will lead to the complete deletion of all user data without the possibility of recovery.

Diagnostics using ADB and Fastboot

For advanced users, the best tool is the debug bridge Android Debug Bridge (ADB). This method allows you to interact with the file system at the command line level, gaining access to system logs and verification utilities.

First you need to activate developer mode on your smartphone. Go to Settings -> About the phone and quickly click on the build number seven times. After this, an item For developerswill appear in the menu, where you need to enable USB debugging.

Connect your phone to your computer and open the command line. Enter the command to check the connection status:

adb devices

If the device is displayed in the list, you can proceed to the check. Using the shell adb shellyou gain access to the internal Linux commands that Android runs on. Here you can use the utility fsck, but with limitations.

ADB Command Purpose Requirements
adb shell sm list List of drives Basic access
adb shell fsck FS check (limited) root access
adb shell dmesg View kernel logs Basic access
adb reboot bootloader Reboot to Fastboot Unlocked bootloader

It is important to note that a full check with the utility fsck is only possible on unmounted partitions. Since the system partition in a running Android is always mounted, the command may fail or work in read-only mode.

๐Ÿ’ก

Before entering any commands in ADB, be sure to back up your important data. An error in the command syntax can lead to the loss of the partition.

Checking the SD card for errors

External drives fail much more often than the internal memory of a smartphone. If you have a card installed microSDand you suspect it is not working correctly, it is best to check it on a computer.

Remove the card from the smartphone using a special key or paper clip. Insert it into the card reader of your Windows PC. This will allow you to use standard operating system tools for diagnostics.

  • ๐Ÿ’พ Open โ€œMy Computerโ€ and find the removable drive.
  • โš™๏ธ Right-click and select โ€œProperties.โ€
  • ๐Ÿ›  Go to the โ€œServiceโ€ tab and click โ€œCheckโ€.

The system will offer to automatically correct file system errors and restore damaged sectors. This process can take anywhere from a few minutes to an hour, depending on the size of the card and the extent of damage.

If Windows reports that the drive is write-protected or cannot be verified, the card controller may have entered emergency mode. In this case, the data must be copied immediately, since the storage medium may completely fail at any time.

โš ๏ธ Attention: Never remove the SD card while data is being written. This is the most common cause of damage to the file table and loss of information.

Specialized applications for Android

If connecting to a PC is impossible, there are mobile applications that can analyze the state of the storage. However, their functionality is limited by the access rights that a regular application has.

One โ€‹โ€‹of the popular solutions is SD Maid. This application does not check the physical integrity of sectors, but it does an excellent job of finding dead files - entries in the media scanner database that point to non-existent data. This helps clean up logical errors in the file system.

For deeper analysis, you can use applications that work with S.M.A.R.T. data, if your memory controller supports the transfer of such information. An example is DevCheck Device & System Info.

๐Ÿ’ก

Mobile applications can find logical errors and broken links, but are not able to fix physical damage to the memory chip.

Remember that to actually check the disk for bad sectors, the application needs direct access to the storage device, which is impossible without superuser rights. Therefore, trust such checks only partially.

Frequently asked questions and answers (FAQ)

Is it possible to check the file system without root access?

Yes, a basic check can be performed through the built-in settings of the smartphone or the service menu code. Checking the SD card on your computer will also help. However, in-depth diagnostics of the system partition without root access is impossible due to Android security limitations.

What to do if the phone says โ€œDamaged file systemโ€?

Donโ€™t panic. Try restarting your device in safe mode. If the error persists, you will need to enter Recovery mode and clear the cache partition. In the worst case, you may need to reset to factory settings and first save the data.

Does the file system type (ext4 or F2FS) affect the scan?

Yes, it does. The file system F2FS (Flash-Friendly File System) is more resistant to power failures on flash memory, but tools for checking it are less common. ext4 is a standard, and there are many more utilities for working with it.

How often should you check the file system?

Preventive check is not required if the device is operating stably. You should contact diagnostics only when symptoms appear: freezes, file reading errors, or sudden reboots.

Will formatting help fix errors?

Full formatting (not fast) can mark bad sectors as unusable, which will temporarily solve the problem. However, this does not repair the physical wear of the memory, but only hides the damaged areas.