Views:
1,654
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:
September 15, 2024
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?