Welcome to the Linux Foundation Forum!

Lab 42.2

Battogtokh
Battogtokh Posts: 23

Hi, I am having trouble with updating /boot/grub/grub.cfg file on Ubuntu 16.04. I tried rescue mode, but it is still doesn't accept my edit because it is "Read only" file. I tried /etc/default/grub, but there is nothing to change for UUID. Please advise where I am lost. I googled for hours to get through it. But still scratching my head ...

Comments

  • Battogtokh
    Battogtokh Posts: 23
    edited February 2017

    Oh i see that file can be updated with :wq! in vim, even it is readonly. Please advise what else I could try updating read only files?

  • luisviveropena
    luisviveropena Posts: 1,144
    edited March 2017

    Hi Battogtokh,

    You can use the following command to remount a partition as read write:

    mount -o remount, rw /

    In case that you want to remount the root partition as read-write.

    Regards,

    Luis.

Categories

Upcoming Training