The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 878     Votes:  3 
Tags: grub2   files   configuration   wacom   text-editor  
Link: 🔍 See Original Answer on Ask Ubuntu 🔗

URL: https://askubuntu.com/q/1160778
Title: Grub file can't be saved after modification
ID: /2019/07/24/Grub-file-can_t-be-saved-after-modification
Created: July 24, 2019    Edited:  August 24, 2019
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


grub is a system owned application so you need to use sudo to edit the file:

sudo -H gedit /etc/default/grub

If you omit sudo -H you can view the file but not save any changes.

After editing the file you need to run:

sudo update-grub

This will compile the changes you made to /etc/default/grub and compile them with grub functions to create a new /boot/grub/grub.cfg which is the actual file parsed at boot time.

Note: Related question today: How do I edit configuration files?

⇧ How do I edit configuration files? Finally updated laptop from Windows 10 to Ubuntu 18.04; the keyboard and mouse no longer works after getting to the lock screen  ⇩