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 /
Download this article as ad-free PDF (made possible by your kind donation): 
Download PDF

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.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

3 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.

  2. What I have done is.

    Mounted root.disk to /home/1
    Modified ro to rw in /home/1/boot/grub/grub.cfg
    success Ubuntu loaded.


    sudo mkdir /home/1
    sudo mount -t ext4 -o loop /host/ubuntu/disks/root.disk /home/1
    sudo vi /home/1/boot/grub/grb.cfg
    replace the ro to rw in lines which looks like
    linux /vmlinuz-2.6.28-13-generic root=UUID=9018bfe2-9de3-4692-9883-fc2f875e6455 ro quiet splash
    to linux /vmlinuz-2.6.28-13-generic root=UUID=9018bfe2-9de3-4692-9883-fc2f875e6455 ro quiet splash
    save using wq!
    success Ubuntu loaded

Leave a Reply to Raymond Day Cancel reply

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