You are trying to save a photo, edit a document or install an application, but the phone gives an error: โ€œFile is write protectedโ€ or โ€œMemory is read onlyโ€? This problem is familiar to many users, especially when working with internal memory or system folders. Read-only mode ( Android, especially when working with SD cards, internal memory or system folders. Read-only mode (read-only) blocks any changes to files, which can be caused by failures in the file system, viruses, improper removal of the drive, or even hardware failures.

In this article we will look at 5 working methods removing protection - from simple (through phone settings) to advanced (using ADB i root). Important: Some methods require technical knowledge and may result in data loss. If you are not sure of your actions, first create a backup copy of all important files.

๐Ÿ“Š What drive are you having a problem with?
Phone internal memory
SD card
USB drive (OTG)
I donโ€™t know

Why did the phone switch to read-only mode?

The reasons for activation read-only are divided into software and hardware. The most common culprits are:

  • ๐Ÿ”น File system damage โ€”for example, after a sudden power outage or removing the SD card during recording.
  • ๐Ÿ”น Viruses or malwarethat block access to memory to protect data.
  • ๐Ÿ”น Failures in the firmware, especially after an unsuccessful update Android.
  • ๐Ÿ”น Hardware problems: worn out flash memory, damage to the contacts of the SD card or controller.
  • ๐Ÿ”น Incorrect settings in the file fstab (for advanced users).

If the problem occurred after the phone was dropped or got wet, there is a high risk physical damage of the drive. In this case, software methods will not help - repair or replacement of the memory module will be required.

โš ๏ธ Attention: If the phone gives an error E: Can't mount /system during boot, this may indicate critical damage to the partition /system. Attempts to remove protection manually can lead to complete inoperability of the device.

Method 1: Checking and fixing the SD card through the Android settings

If the read-only mode appears on SD card, first try the standard tools Android:

  1. Open Settings โ†’ Storage (or Memory).
  2. Find your SD card in the list of drives and tap on it.
  3. Select Settings โ†’ Format as internal drive (if the option is available).
  4. Confirm the action. Attention: all data on the card will be deleted!

If the formatting option is not available or gives an error, try:

  • ๐Ÿ“Œ Remove the card and insert it back (with the phone turned off).
  • ๐Ÿ“Œ Connect the card to the computer via a card reader and check for errors with the utility CHKDSK (for Windows).

Save important files on your PC|Check the card for viruses|Make sure the card is not physically damaged|Use an original card reader (not an adapter)

-->

On some phones (for example Samsung Galaxy or Xiaomi) in the SD card menu there is an option Fix or Restore. It tries to automatically fix file system errors without formatting.

Method 2: Using ADB to remove protection (without root)

ADB (Android Debug Bridge) is a debugging tool that allows you to send commands directly to the system AndroidWith it you can remove protection read-only without superuser rights, but only. for external drives (SD cards or USB drives).

What you will need:

  • ๐Ÿ–ฅ๏ธ Computer with Windows, macOS or Linux.
  • ๐Ÿ”Œ Cable USB (preferably original).
  • ๐Ÿ› ๏ธ Utility ADB (you can download from the official website Android Developers).

Instructions:

  1. Enable on your phone Developer mode: go to Settings โ†’ About phone โ†’ Build number and tap on it 7 times.
  2. Go back to Settings โ†’ System โ†’ For Developers and activate USB Debugging.
  3. Connect your phone to the PC and confirm permission to debug.
  4. Open the command line (CMD or Terminal) and enter:
adb shell

sm list-disks

You will see a list of drives (for example, disk:179,64). Remember the ID of your SD card and do:

sm partition disk:179,64 private

Replace 179,64 with your ID. After rebooting the phone, the card should become writable.

โš ๏ธ Attention: Incorrect use ADB can lead to data loss or system failure. If you are not sure about the commands, skip this method.
๐Ÿ’ก

Before working with ADB, check whether your device is recognized by the command adb devices. If the list is empty, install drivers for your phone model.

Method 3: Editing the fstab file (root required)

File fstab (File System Table) contains settings for mounting partitions in Android. If your phone has root accessyou can manually change the mount parameters to remove protection read-only.

To do this:

  1. Install a file manager that supports root (for example, Root Explorer or Solid Explorer).
  2. Go to the path /etc/fstab or /vendor/etc/fstab (depending on the phone model).
  3. Find the line with mounting the problematic partition (for example, /system or /data).
  4. Delete or replace the parameter ro (read-only) with rw (read-write).
  5. Save the file and reboot the device.

Example line before and after editing:

Original string Modified string
/dev/block/mmcblk0p25 /system ext4 ro,seclabel /dev/block/mmcblk0p25 /system ext4 rw,seclabel
/dev/block/mmcblk1p1 /sdcard vfat defaults ro,uid=1000,gid=1015 /dev/block/mmcblk1p1 /sdcard vfat defaults rw,uid=1000,gid=1015

This method is suitable for advanced users. Incorrect editing fstab can make the phone unbootable.

What to do if after editing fstab the phone does not turn on?

If the device is stuck on the logo or goes into bootloop, try:

1. Boot into recovery-mode (usually by pressing Power + Volume Up).

2. Select Mount โ†’ System and return the original fstab settings.

3. If there is no backup, you will have to reflash the phone.

Method 4: Formatting the internal memory via Recovery

If the problem is with internal memory the phone (and not the SD card), and the system gives errors when writing to any folders, resetting via Recovery Modewill help. This method will help, including applications and settings, but will restore access to the memory. will delete all data, including applications and settings, but will restore access to memory.

How to reset:

  1. Turn off the phone.
  2. Hold the key combination to enter Recovery (for most phones this Power + Volume Up, but on Samsung maybe Power + Volume Up + Bixby).
  3. In the recovery menu, select Wipe data/factory reset (control is carried out with the volume and power buttons).
  4. Confirm the action and wait until completion.
  5. Reboot the phone (Reboot system now).

If after resetting the problem remains, it may be damaged section /data. In this case, only flashing will help.

โš ๏ธ Attention: On some phones (for example, Xiaomi or Realme) resetting via recovery may not delete the data completely. For deep cleaning, use the function Format Data (it erases both the internal memory and account data).

Method 5: Reflashing the phone (as a last resort)

If none of the methods helped and the phone still works in mode read-only, remains reflash the device. This is a radical method that will return the phone to its factory state, but will require:

  • ๐Ÿ”ง Skills in working with firmware (or the help of a specialist).
  • ๐Ÿ“ฅ Official or custom firmware for your model.
  • ๐Ÿ”Œ apps for firmware (Odin for Samsung, Fastboot for Google Pixel, SP Flash Tool for Mediatek).

Step-by-step guide (general diagram):

  1. Download the firmware for your model from official website of the manufacturer or a trusted source (for example, XDA Developers).
  2. Install the drivers and firmware app.
  3. Connect the phone in the mode Fastboot or Download Mode.
  4. Start the firmware process and wait for completion.

After flashing, all data will be erased, but the protection read-only should disappear. If the problem persists, this indicates hardware failure (for example, failure of the memory chip).

๐Ÿ’ก

Flashing is the last chance to bring the phone back to life. If the read-only mode remains, contact the service center: most likely, you will need to replace the memory module.

Frequent errors and how to avoid them

When trying to remove read-only users often make mistakes that aggravate the problem:

  • ๐Ÿšซ Ignoring backup. save data before formatting or flashing!
  • ๐Ÿšซ Using unofficial firmware without checking compatibility. This can lead to brick (complete inoperability) of the phone.
  • ๐Ÿšซ Interrupting the process formatting or flashing. This is almost guaranteed to damage the file system.
  • ๐Ÿšซ Attempts to edit system files without root access. This is useless and can cause crashes.

Another common mistake is confusion between internal memory and SD card. If you format the wrong drive, you will lose data in vain. Always check which drive is mounted as read-onlyusing the commands:

adb shell

mount | grep -E '^/dev|^tmpfs'

Is it possible to remove โ€œread-onlyโ€ without losing data?

In most cases, no. If the file system is damaged, it needs to be recreated (formatting). However, you can try:

  • Copy data to a PC via a card reader (sometimes reading still works).
  • Use utilities like TestDisk or PhotoRec to restore files before formatting.
Why after formatting Does the SD card become read-only again?

This indicates:

  • Physical wear cards (especially if it is old or cheap).
  • Incompatibility from the phone (for example, cards exFAT may does not work correctly on older versions Android).
  • Problems with the slot for the card (try inserting it into another phone).

Solution: replace the card with a new one (we recommend SanDisk Ultra or Samsung EVO).

How to check if a virus is blocking the recording?

Install an antivirus (Malwarebytes or Dr.Web) and scan your phone Pay attention to:

  • Unknown applications. in the installed list.
  • Sharp increase in battery or traffic consumption.
  • Strange processes in Settings โ†’ Applications โ†’ Running.

If a virus is found, remove it and check if the blocking has disappeared.

What to do if the phone does not see the SD card at all?

If the card is not even detected as read-only, try:

  1. Clear card contacts an eraser (without fanaticism!).
  2. Connect it to the PC via a card reader.
  3. Check in another device.

If the card does not work anywhere, it is physically damaged.

You can Is it possible to remove read-only protection on a phone without root?

Yes, but only for SD cards and external drives. Use:

  • Format through phone settings.
  • Commands ADB (method 2).
  • Utilities on PC (SD Formatter or DiskPart).

For internal memory without root, there are few options - only reset via recovery.