Software⏱️ 3 min read📅 2026-06-19

How to Fix: Error while remount a partition read only

Error while remounting a partition read-only in Android.

Quick Answer: The issue is caused by the fact that when you remount /system in readonly, the file system becomes unmountable and the file disappears. To fix this, try remounting /system in readonly before creating the file.

The error 'Error while remount a partition read only' occurs when attempting to create or modify files in the /system/xbin directory on a rooted HTC device. This issue affects users who have manually modified their system files, leading to unexpected behavior and file loss.

This problem is frustrating because it can result in data loss and system instability. Fortunately, by following the steps outlined below, you should be able to resolve this issue and regain control over your system files.

💡 Why You Are Getting This Error

  • The primary reason for this error is that when remounting /system in read-only mode, the file system becomes inaccessible, causing any changes made previously to be lost. This is due to the nature of the ext4 file system and its handling of mount options.
  • An alternative reason could be related to the HTC device's custom recovery or rooting process, potentially introducing conflicts with the system file permissions.

🛠️ Step-by-Step Verified Fixes

Modifying Mount Options

  1. Step 1: To resolve this issue, modify the mount options when remounting /system in read-only mode. Use the '-o' flag to specify additional options, such as 'noatime' or 'nodirbind', which can help prevent file loss.
  2. Step 2: Open a terminal and execute the following command: `mount -o ro,remount -o noatime,nodirbind /dev/block/mmcblk0p35 /system`. This will remount /system in read-only mode while preventing time-related issues and directory binding conflicts.
  3. Step 3: After executing this command, verify that your file has been preserved by checking its existence using the 'ls' command.

Restoring System File Permissions

  1. Step 1: If modifying mount options does not resolve the issue, try restoring system file permissions to their default values. This may involve deleting or renaming files in the /system/xbin directory.
  2. Step 2: Use a terminal and execute the following command: `rm -rf /system/xbin/su` (replace 'su' with any file that might be causing conflicts). Be cautious when executing this command, as it will delete system files. Use at your own risk.

✨ Wrapping Up

By modifying mount options or restoring system file permissions, you should be able to resolve the 'Error while remount a partition read only' issue and regain control over your system files. If you encounter any further issues, consider seeking assistance from HTC support or a qualified device repair professional.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions