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.

2 thoughts on “How to remount filesystem as read-write in Ubuntu recovery mode

  1. root@ubuntu-i3:/media/USBdisk1-3TB/MEDIA/Audeo/Cyndi Lauper# mount -o rw,remount /
    root@ubuntu-i3:/media/USBdisk1-3TB/MEDIA/Audeo/Cyndi Lauper# mkdir test
    mkdir: cannot create directory ‘test’: Read-only file system
    root@ubuntu-i3:/media/USBdisk1-3TB/MEDIA/Audeo/Cyndi Lauper#

    Can see it doesn't work for me.

Leave a comment

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