Are you trying to copy photos to a memory card, but your phone gives the error โ€œThe disk is write protectedโ€? Or when you try to format a MicroSD, the system reports that the operation is impossible? This problem is familiar to many Android device users. Write protection can be activated both due to hardware features of the card (for example, a broken switch), and due to software failures - from viruses to incorrect file system settings.

In this article we will analyze all possible ways to remove protection - from basic (checking the physical lock) to advanced (working with ADB and changing attributes via DiskPart). We will pay special attention to methods that can be applied directly from the phonewithout connecting to a PC. You will also find out why protection can return after a reboot and how to avoid it.

Before taking action, make sure that the problem is not related to damage to the card itself. If the MicroSD is not detected on any device or makes characteristic clicks when connected, it will most likely have to be replaced. In other cases, our instructions will help restore the card to functionality.

1. Checking the physical protection switch

The most obvious, but often ignored reason is mechanical lock on the card body. Most MicroSD (especially format SDHC and SDXC) are equipped with a small slider on the side that blocks recording when moved to position Lock. Even if you never touched this switch, it could move accidentally - for example, when removing the card from the adapter or phone.

What to do:

  • ๐Ÿ” Remove card from the phone (having previously unmounted it in the settings).
  • ๐Ÿ”„ Check the position of the switch โ€”it should be shifted in the direction opposite to the inscription Lock (usually up).
  • ๐Ÿ“ฑ Insert the card back and try to write a file or format it.

If the switch is broken or missing (as on some MicroSD without an adapter), proceed to the next method. Also note that on some phones (for example Samsung Galaxy or Xiaomi) the card slot may be located so that the physical lock is blocked by the device body - in this case, try inserting the card into the adapter and testing it on the PC.

โš ๏ธ Attention: Do not try to repair a broken switch with tape or superglue - this may damage the card contacts. If the lock is faulty, it is better to replace the card or use it only for reading.

2. Formatting a card through Android settings

If a physical lock is not an issue, try format the card directly from your phone. This method will work if the protection is caused by a software failure (for example, after an incorrect extraction or a virus). Please note that formatting will completely delete all data from the card copy important files to another medium in advance.

Instructions:

  1. Open Settings โ†’ Memory (or Storage, depending on the Android version).
  2. Find the section SD card or External storage and tap on it.
  3. Select Format (or Clear โ†’ Format as internal memory).
  4. Confirm the action. If an error appears, try formatting as portable device.

On some firmware (for example, MIUI or ColorOS) the path may differ:

Settings โ†’ Additional settings โ†’ Memory โ†’ SD card โ†’ Format

If the phone does not allow you to format the card, proceed to the next method.

Save important data from the card to the cloud or PC

Check the battery charge (at least 50%)

Disconnect the card from applications (for example, in camera settings)

Reboot the phone before formatting-->

3. Using ADB commands to remove protection

If the standard methods did not help, developer toolsmethod with ADB (Android Debug Bridge) is suitable for experienced users and requires connecting the phone to a PC. often saves in cases where the card is โ€œlockedโ€ at the file system level.

What you will need:

  • ๐Ÿ’ป A computer with installed drivers for your phone.
  • ๐Ÿ”Œ Cable USB Type-C (or Micro-USB, depending on the model).
  • ๐Ÿ› ๏ธ Utility ADB Tools (download from the official website Android Developers).

Step-by-step guide:

  1. Enable on your phone Developer mode (tap 7 times on the build number in Settings โ†’ About phone).
  2. Activate USB debugging in the developer settings.
  3. Connect your phone to the PC and run cmd (or Terminal on Mac/Linux) in the folder with ADB.
  4. Enter the commands in order:
    adb shell
    

    sm list-disks

    sm partition DISK_ID private

    Replace DISK_ID with your card ID (for example, disk:179,64).

  5. Reboot your phone and check the card.
โš ๏ธ Attention: Commands ADB may lead to data loss or system crash if entered incorrectly. Do not use this method if you are not confident in your actions. For cards formatted as internal memory, you may need to reset the phone to factory settings.
What to do if ADB does not see the card?

If the command sm list-disks returns an empty list, try:

1. Reconnect the phone to the PC with file transfer enabled (MTP).

2. Use a different USB cable (preferably the original one).

3. Update the ADB drivers on the PC via SDK Manager.

4. Check if your Android model supports ADB for external ones. drives (this function is disabled on some budget phones).

4. Changing card attributes via DiskPart (for PC)

If you have access to a computer with Windows, you can try to remove the protection through the utility DiskPart. is detected by the system, but does not allow data to be written. Important: Do not confuse MicroSD with other drives โ€” an error can lead to loss of data on the hard drive!

Instructions:

  1. Connect the card to the PC via a card reader.
  2. Run Command Line as administrator (click Win + X โ†’ Terminal (administrator)).
  3. Enter the commands in order:
    diskpart
    

    list disk

    select disk N (where N is your card number)

    attributes disk clear readonly

    clean

    create partition primary

    format fs=fat32 quick

    exit

After executing the commands, the card will be formatted in FAT32 (suitable for most Android devices). If you need to save data, first try the command attributes disk clear readonly without formatting.

Command Description When to use
list disk Shows all connected drives To determine the card number
attributes disk clear readonly Removes the "read-only" attribute If the card is visible, but locked
clean Deletes all partitions on the disk If the card is not formatted using standard methods
format fs=fat32 quick Quick formatting in FAT32 For compatibility with Android
๐Ÿ’ก

If DiskPart gives the error "The disk is write-protected", try connecting the card to another USB port (preferably USB 2.0) or using a different card reader. Sometimes the problem lies in the USB controller, and not in the card itself.

5. Checking for viruses and resetting access rights

Protection from entries may be the result of malware that has changed the access rights to the card. This is especially true for users who connect the phone to public chargers or install applications from unverified sources. In this case, resetting the rights will help. checking for viruses and reset rights.

How to check the card for viruses:

  • ๐Ÿ›ก๏ธ Install an antivirus (for example, Malwarebytes or Dr.Web Light) and scan the card.
  • ๐Ÿ“ฑ Connect your phone to the PC and check the card via Windows Defender or Kaspersky Virus Removal Tool.
  • ๐Ÿ” Pay attention to suspicious files with extensions .exe, .apk or .bat โ€”it is better to delete them.

If no viruses are found, but protection remains, try resetting access rights via File Manager:

  1. Open any file manager (for example, Solid Explorer or FX File Manager).
  2. Go to the memory card and find the folder Android or DCIM.
  3. Long-press the folder, select Properties โ†’ Permissions.
  4. Set the checkboxes for Read and Write for all users.
โš ๏ธ Attention: Some viruses disguise themselves as system files (for example, autorun.inf or thumbs.dbIf, after deleting such files, the card is no longer detected, format it - most likely, the virus has damaged the file system.

Once. per month

Only if there are suspicions

Never

I donโ€™t know how to do this-->

6. Alternative methods: from low-level formatting to replacing the card

If none of them the above methods did not work, radical measures remain. Let's consider them in order - from the least risky to the most extreme.

Low-level formatting:

  • ๐Ÿ’พ Use utilities like HDD Low Level Format Tool or SD Formatter (official utility from SD Association). These apps reset all sectors of the card, which often helps with hardware failures.
  • โš ๏ธ After low-level formatting, the card will need to be formatted again in FAT32 or exFAT.

Updating the phone firmware:

In rare cases, write protection is associated with a bug in the Android firmware. Check for updates in Settings โ†’ System โ†’ Software update. If there are no updates, but the problem appeared after the last update, try rolling back to the previous version (if your phone supports downgrade).

Replacing a memory card:

If the card:

  • ๐Ÿ”‹ Not detected on any device.
  • ๐Ÿ”ฅ It heats up or makes clicking noises.
  • ๐Ÿ“‰ It has a write/read speed close to zero (checked through CrystalDiskMark).

โ€”then its resource is exhausted. Modern MicroSDs are designed for a limited number of write cycles (especially cheap models classes Class 4 or Class 6. In this case, the only solution is to buy a new card (we recommend SanDisk Ultra or Samsung EVO Plus with class A2 for Android).

๐Ÿ’ก

If the card formatted as internal Android memory, it cannot be simply removed and used on another device. To do this, you must first transfer the data back to the main drive through Settings โ†’ Memory โ†’ SD card โ†’ Data transfer Settings โ†’ Storage โ†’ SD card โ†’ Data transfer.

7 How to avoid blocking the card again

Even if you managed to remove it. protection, it may return. To prevent this from happening, follow these simple rules:

  • โœ… Safe removal: Always disconnect the card via Settings โ†’ Storage โ†’ Remove SD card (or through a notification in the curtain). data-i="229">Settings โ†’ Memory โ†’ Remove SD card
  • โœ… Regular formatting: Once every 3-6 months, format the card (saving the data) via your phone or PC. This clears temporary files and prevents crashes.
  • โœ… Virus protection: Do not connect your phone to public USB ports (for example, in airports or cafes) and install applications only from Google Play.
  • โœ… High-quality card readers: Cheap adapters often damage the card contacts. Use original accessories or certified devices (for example, from Anker or SanDisk).

If you often work with large files (for example, record video to 4K), choose cards with a high speed class (UHS-I U3 or V30).They are less susceptible to failures under intense loads.

FAQ: Frequently asked questions about write protection on MicroSD

Is it possible to remove protection without losing data?

Yes, but only if the problem is not related to damage to the file system. Try:

  1. Checking the physical switch.
  2. Command attributes disk clear readonly v DiskPart (without formatting).
  3. Scanner for viruses - sometimes they block recording.

If these methods did not help, the data will have to be saved to another medium before formatting.

Why is the card blocked again after formatting?

This is typical for:

  • Cards with damaged sectors (check through CrystalDiskInfo).
  • Phones with custom firmwarethat forcibly mount external drives in mode read-only.
  • Viruses that restore locking after reboot.

Solution: low-level formatting or replacing the card.

Is it possible to use a card with read-only protection?

Yes, but with limitations:

  • ๐Ÿ“ท You can view photos and videos, but do not save new ones.
  • ๐ŸŽต Music and movies will be played, but playlists will not be updated.
  • ๐Ÿ“ฑ Some applications (for example, Google Maps) do not will be able to cache data on the card.

For full use, the protection must be removed.

What to do if the phone does not see the card after removing the protection?

Try:

  1. Reboot the phone.
  2. Clear cache in Settings โ†’ Applications โ†’ Memory (for the system process external_storage).
  3. Connect the card to the PC and check it for errors via chkdsk /f in the command line.
  4. Format card in exFAT (if the phone supports this format).
Which memory cards are least susceptible to blocking?

Reliability depends on:

  • ๐Ÿท๏ธ Brand: Leaders - SanDisk, Samsung, Kingston (avoid no-name cards).
  • ๐Ÿ“Š Class: Cards Class 10, UHS-I U3 or A2 have better protection against failures.
  • ๐Ÿ”„ Technologies: Models with MLC chips (for example, SanDisk Extreme Pro) last longer than cheap ones TLC.

Service life also depends on the conditions of use: avoid overheating, moisture and magnetic fields.