How to remount filesystem as read-write in Ubuntu recovery mode

Question: I booted Ubuntu into recovery mode to fix a configuration file, but I noticed that the root filesystem is mounted as read-only. How can I remount a filesystem as "read-write" in Ubuntu recovery mode?

When you enter a recovery mode in Ubuntu, the root filesystem gets mounted as "ready-only" by default, not allowing you to update or recover any file in the root file system.

You can actually remount a filesystem as read-write on-the-fly by using mount command.

To remount the root filesystem as read-write:

# mount -o rw,remount /

Subscribe to Ask Xmodulo

Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.

Leave a comment

Your email address will not be published. Required fields are marked *

Current ye@r *