Editing grub.cfg to survive upgrades

Asked by Emrys Tyler

I need to change the "quiet splash" in my grub.cfg in order for Ubuntu to use my graphics card. Two updates have now reset the "quiet splash" setting, and I must use "gksudo gedit" in order to change grub.cfg manually. Is there a way to edit grub.cfg so that my change will survive all upgrades?

Please be simple in your response--I'm new to Linux.

Thanks,
emrys

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
Emrys Tyler
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You don't edit the file. The file even says to not edit it and it is chmodded so you can't edit it. Your system is telling you not to edit it. You are editting grub in completely the wrong fashion.

if you run:

gksudo gedit /etc/default/grub

You will see the options there, edit the options, save the new file and run:

sudo update-grub

The options you set will NOW be in grub.cfg and will be applied to every kernel which gets installed.

Revision history for this message
Sam_ (and-sam) said :
#2
Revision history for this message
Emrys Tyler (emrystyler) said :
#3

Thanks! I edited default/grub as you suggested. We'll see if it survives the upgrades.