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

Last updated on July 7, 2020 by Dan Nanni

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 /

Support Xmodulo

This website is made possible by minimal ads and your gracious donation via PayPal or credit card

Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.

Xmodulo © 2021 ‒ AboutWrite for UsFeed ‒ Powered by DigitalOcean