Are you trying to format a memory card on your smartphone, but the system gives an error "Failed to format the SD card" or the process freezes at 0%? This problem is familiar to millions of Android users - from budget Xiaomi Redmi to flagship Samsung Galaxy. In 80% of cases, it is not hardware faults that are to blame, but software glitches or incorrect settings. But how to distinguish a โ€œfixableโ€ glitch from a fatal failure of the drive?

In this article we will look all possible reasonswhy Android refuses to format microSD - from the banal protective switch on the card to hidden partitions file system. You will receive 10 proven methods operation restoration, including commands ADB, manual formatting via PC and even โ€œreanimationโ€ of damaged sectors. And at the end - a checklist for diagnostics and a FAQ with answers to the most common questions.

We warn you right away: if the card is defined as โ€œRAWโ€ or has physical damage (scratches on contacts, chips), no software will help - only replacement. But in 9 out of 10 cases, the problem is solved in 10โ€“30 minutes without contacting the service center.

1. Physical blocking: check the Lock switch on the card

The most common, but often overlooked reason is mechanical write protection. On the side of the microSD (or adapter for it) there is a miniature switch with the inscription Lock. If it is moved to the โ€œonโ€ position, Android will not only be able to format the card, but also write data to it.

How to check:

  • ๐Ÿ” Take the card out of the phone and inspect it in the light. The switch is usually located on the left (if the contacts are at the bottom).
  • ๐Ÿ”„ Move the slider to the opposite position (up = unlocked).
  • ๐Ÿ“ฑ Insert the card back and try formatting through Settings โ†’ Memory โ†’ SD card โ†’ Format.
โš ๏ธ Attention: On some cards (for example, SanDisk Ultra old style) the switch may be hidden under a plastic plug. If the slider does not move, do not apply any force - it is not a blockage, but part of the housing.

If the switch is in the correct position, but the error remains, the problem is deeper. Let's move on to the next point.

2. Damaged file system: FAT32 vs exFAT vs NTFS

Android supports only two types of file systems for memory cards: FAT32 and exFAT. If your microSD is formatted in NTFS (for example, after use in Windows or a recorder), the smartphone simply will not see it correctly. Problems also arise if:

  • ๐Ÿ—ƒ๏ธ The file system is damaged due to the sudden removal of the card.
  • ๐Ÿ”„ The card was formatted in ext4 (Linux) or HFS+ (Mac).
  • ๐Ÿ“‰ The cluster size does not meet the standards (for example, 64 KB instead of 32 KB).

How to check the current file system:

  1. Connect the card to the PC via a card reader.
  2. Open Disk Management (Win + R โ†’ diskmgmt.msc).
  3. Find your drive in the list and look at the column "File system".
File system Android supported? Max. file size Recommendations
FAT32 โœ… Yes 4 GB Optimal for cards up to 32 GB
exFAT โœ… Yes (starting from Android 6.0) 16 EB Best choice for cards 64 GB and larger
NTFS โŒ No (read only) 16 EB Reformat to exFAT
ext4 โŒ No 16 TB Use only for Linux systems

If the file system is incompatible, format the card via PC:

  1. B Disk Management right click on the card โ†’ "Format".
  2. Select exFAT (for cards >32 GB) or FAT32 (for cards โ‰ค32 GB).
  3. Specify the size cluster 32768 (32 KB) for optimal performance.
  4. Uncheck "Quick formatting"if the card was previously unstable.
๐Ÿ“Š What file system are you using on memory card?
FAT32
exFAT
NTFS
I donโ€™t know

3. Android software crashes: clearing cache and resetting settings

Sometimes the problem lies not in the card, but in Android system glitches. For example, after updating the OS or installing custom firmware, the settings for working with external drives may be lost. Also often the culprits are:

  • ๐Ÿงน Clogged application cache Storage (Storage).
  • ๐Ÿ”„ Conflicts with access rights (especially on firmware LineageOS or MIUI).
  • ๐Ÿ“ฑ Service failures media.rk (responsible for mounting drives).

How to fix:

Clear the cache of the "Storage" application|Reboot the phone in safe mode|Reset application settings|Update firmware to the latest version-->

If the standard methods did not help, try manually resetting the mount settings via ADB:

adb shell sm list-disks

adb shell sm partition disk:179,64 private

Replace 179,64 with your card ID (find out it on the first command). This method will work if the card is detected by the system, but is not formatted.

โš ๏ธ Attention: On some devices (for example, Huawei s EMUI), these commands may reset the card settings as internal storage. Before executing, make a backup copy of your data. data-i="125">4. Damaged sectors and โ€œrawโ€ (RAW) memory cards

4. Damaged sectors and raw (RAW) memory cards

If the card is detected as ยซRAWยป (in Disk Management Windows) or its capacity is displayed as 0 bytes, this sign:

  • ๐Ÿ’ฅ Damage to partition tables (MBR/GPT).
  • ๐Ÿ”ง Physical wear of memory cells (typical for cheap cards no-name).
  • ๐Ÿฆ  Virus infection (rare, but found on cards from public devices).

You can restore such cards using specialized utilities:

Utility Platform Functions Link (search)
SD Card Formatter Windows/Mac Low-level formatting Official website of SD Association
DiskPart (built-in) Windows Clearing the partition table Command line
GParted Linux/Windows MBR/GPT recovery gparted.org
HDD Low Level Format Tool Windows Full erase (including bad sector) hddguru.com

Instructions for DiskPart (the most reliable method):

  1. Connect the card to the PC and run Command line as administrator.
  2. Enter the commands in order:
    diskpart
    

    list disk

    select disk X (where X is your card number)

    clean

    create partition primary

    format fs=fat32 quick (or fs=exfat quick for cards >32 GB)

    exit

  3. If command clean gives an error, use clean all (will take several hours).

5. Conflicts with the adapter or card slot

Rarely, but it happens that the problem lies not in the card, but in phone hardware:

  • ๐Ÿ”Œ Oxidized contacts in the microSD slot (especially after moisture).
  • ๐Ÿ”„ Faulty adapter (if you use a card through an adapter).
  • ๐Ÿ“ฑ Damaged memory controller in the smartphone itself (typical for Samsung J-series after falls).

How to diagnose:

  1. Try to insert the card into another phone or PC through a card reader. If it works, the problem is in your device.
  2. Inspect the microSD slot for foreign objects (dust, debris) or damaged contacts.
  3. If the slot is external clean, carefully wipe the contacts of the card and phone alcohol solution (at least 70%).

For devices with hybrid slots (microSD + second SIM, as in Xiaomi Redmi Note):

  • ๐Ÿ“ถ Make sure that the slot is configured to prioritize the memory card, not the SIM.
  • ๐Ÿ”ง Reboot the phone after installing the card - some models require this for initialization.

If the contacts in the slot are bent or broken, self-repair is almost impossible - you need to replace the connector at a service center. The cost of repairs varies from 800 to 2500 rubles depending on the model. On some devices (for example Samsung Galaxy S21), the slot is integrated into the motherboard, which makes repairs economically impractical.โ€”>

6. Viruses and malware

If the card was previously used in public devices (cameras for rent, taxi recorders) or connected to infected PCs, viruses could have settled on it, blocking formatting. Typical symptoms:

  • ๐Ÿฆ  The card is detected, but displays an error "The disk is write protected" even when the switch is unlocked.
  • ๐Ÿ“‚ โ€œphantomโ€ files appear with names autorun.inf or ~$*.tmp.
  • ๐Ÿ”„ After formatting, the files โ€œreturnโ€ back.

How to clear:

  1. Connect the card to the PC and scan it two antiviruses (for example, Kaspersky Virus Removal Tool + Dr.Web CureIt!).
  2. Delete all suspicious files manually, especially in the root directory.
  3. Format the card via SD Card Formatter s option ยซOverwrite formatยป (full erasure).
โš ๏ธ Attention: Some viruses (for example, Shortcut Virus) disguise folders as shortcuts. If after removing the โ€œvirusesโ€ the files are gone, check the hidden folders through Control Panel. โ†’ Folder options โ†’ Show hidden files.

7. The memory card is fake or worn out

According to statistics, 30% of memory cards on the market (especially budget ones) are fakes with underestimated real capacity. For example, โ€œ128 GBโ€ turns out to be 16 GB, and the rest of the space is emulated by the controller. When you try to write or format such a drive, it freezes or produces errors.

How to check the authenticity:

  1. Download utility H2testw (free, portable version).
  2. Connect the card to the PC and run a test for full write/read:
    h2testw.exe E: (where E is the letter of your card)
  3. If the actual volume is less than stated, the card is a fake. For example:
    Warning: Only 7.4 of 15.9 GByte tested.

Signs of wear (even for original cards):

  • ๐Ÿข A sharp drop in write/read speed (you can check in CrystalDiskMark).
  • ๐Ÿ”„ Frequent errors "Failed to save file" when writing.
  • ๐Ÿ’ฅ The card โ€œdisappearsโ€ from the system under load (for example, while shooting 4K video).

If the card turns out to be counterfeit or worn out, do not use it for important data โ€”it can fail at any time. Original cards from trusted brands. (SanDisk Extreme, Samsung EVO, Kingston Canvas) last 3-5 times longer.

FAQ: Frequently asked questions about formatting memory cards

Is it possible to format a card as internal memory if it is not formatted as external?

Yes, but it's risky. In Settings โ†’ Memory โ†’ SD card select โ€œInternal memory" and follow the instructions:

  • ๐Ÿ” The card will be encrypted and will not be readable on other devices.
  • ๐Ÿ“ฑ Once extracted, the data on it will become inaccessible (the phone will need to be reset).
  • โš ๏ธ If the card is damaged, this method may lead to phone freezing.

If the process freezes at 0%, interrupt it and try to format the card on a PC via SD Card Formatter.

Why after formatting the card becomes โ€œRAWโ€ again?

This is a sign hardware damage to the controller or wear of memory cells. Possible reasons:

  • ๐Ÿ”ฅ Overheating of the card (for example, in the recorder under direct sunlight).
  • โšก Sudden power surges (with connection to faulty USB ports).
  • ๐Ÿ› ๏ธ Defective batch (often found in cards no-name from China).

Solution: try low-level formatting via HDD Low Level Format Tool. If it doesnโ€™t help, recycle the card.

How to recover data from a card that is not formatted?

If there are important files on the card, do not format it before attempting recovery. Use:

  • ๐Ÿ› ๏ธ Recuva (for photos and documents).
  • ๐ŸŽต EaseUS Data Recovery (for video and audio).
  • ๐Ÿ“ฑ DiskDigger (there is a version for Android, but requires root).

Important: do not save recovered files to the same card โ€”this may overwrite the remaining data.

Why does the phone see the card, but does not allow it to be formatted?

Probable reasons:

  1. The card is used as internal memory โ†’ mount it in settings.
  2. Access rights are disabled โ†’ reset application settings in Settings โ†’ System โ†’ Reset.
  3. Mounting error โ†’ reboot your phone safe mode and try again.

If all else fails, check the card on your PC - it may be locked at the controller level.

Is it possible to format the card via recovery-mode?

Yes, but this is an extreme option method. Go to Recovery (usually Power + Vol Up), select Advanced โ†’ SD Card โ†’ Format. Please note:

  • โš ๏ธ Not all custom recoveries (for example, TWRP) work correctly with cards >64 GB.
  • ๐Ÿ”ง After formatting, you may need re-partitioning via PC.