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.
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 errorE: Can't mount /systemduring 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:
- Open
Settings โ Storage(orMemory). - Find your SD card in the list of drives and tap on it.
- Select
Settings โ Format as internal drive(if the option is available). - 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:
- Enable on your phone
Developer mode: go toSettings โ About phone โ Build numberand tap on it 7 times. - Go back to
Settings โ System โ For Developersand activateUSB Debugging. - Connect your phone to the PC and confirm permission to debug.
- 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:
- Install a file manager that supports root (for example, Root Explorer or Solid Explorer).
- Go to the path
/etc/fstabor/vendor/etc/fstab(depending on the phone model). - Find the line with mounting the problematic partition (for example,
/systemor/data). - Delete or replace the parameter
ro(read-only) withrw(read-write). - 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:
- Turn off the phone.
- Hold the key combination to enter Recovery (for most phones this
Power + Volume Up, but on Samsung maybePower + Volume Up + Bixby). - In the recovery menu, select
Wipe data/factory reset(control is carried out with the volume and power buttons). - Confirm the action and wait until completion.
- 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):
- Download the firmware for your model from official website of the manufacturer or a trusted source (for example, XDA Developers).
- Install the drivers and firmware app.
- Connect the phone in the mode
FastbootorDownload Mode. - 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'
FAQ: Answers to popular questions
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:
- Clear card contacts an eraser (without fanaticism!).
- Connect it to the PC via a card reader.
- 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.