How to Remount Filesystem Read-Write in Linux

In this guide I will be showing you how to remount filesystem read-write using the Android operating system on a smartphone.

By Tim Trott | Linux Tips and Tutorials | February 18, 2012

Linux (and Android) can mount a file system read-only to prevent unauthorised modification, particularly to system files. This guide shows you how to remount these file systems so that changes can be made. In this guide, I will be showing you how to remount filesystem read-write using the Android operating system on a smartphone, however, since it is Linux based this guide should work on most variants and distributions of Linux.

Android Bootloop Firmware Error Security Vulnerability
Care must be taken when remounting filesystem read-write

The system partition on Android is read-only to prevent an application or user changes which may adversely affect the operation or function of the device, however, there are some instances where it is useful to have access to write information to the system partition, for example removing bloatware, changing the host's file or modifying init.d.

If you do not have access to write to the partition your request to save or change data will result in a "Permission Denied" error. To get around this, you need to remount filesystem read-write permission.

Remount filesystem as read-write can only be done with root access. You can do this by installing a terminal on the device if it isn't already installed and running the following commands.

$ su
$ mount -o rw,remount /system

Where /system is the filesystem to remount read-write. Now you can perform any action you wish on the system partition. Be careful what you do though, as it was protected for a reason.

You should reboot the device to reset permissions back to their defaults and prevent any accidental changes.

Was this article helpful to you?
 

Related ArticlesThese articles may also be of interest to you

CommentsShare your thoughts in the comments below

If you enjoyed reading this article, or it helped you in some way, all I ask in return is you leave a comment below or share this page with your friends. Thank you.

There are no comments yet. Why not get the discussion started?

We respect your privacy, and will not make your email public. Learn how your comment data is processed.