I wish to change a menu entry in grub.cfg, for example:
From
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu is wonderful'
To
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu is world famous'
|
I wish to change a menu entry in grub.cfg, for example: From
To
|
|||||||||||||||||
|
|
Edit Or you can use Grub Customizer. To install it:
|
|||||||||
|
|
How to do it from an emulator to learn how GRUB works, without the risk of breaking anything.
This will boot into GRUB, and you will see an entry called Now edit I have posted the exact code for this example at: https://github.com/cirosantilli/x86-bare-metal-examples/tree/d217b180be4220a0b4a453f31275d38e697a99e0/multiboot/hello-world As others said, don't do it in practice, since that is normally an output file and will get overwritten on |
||||
|
|
|
You just have to edit grub.cfg like you did (sudo [textEditor] /boot/grub/grub.cfg), save and reboot. Don't run sudo update-grub, it will overwrite grub.cfg. |
|||||||||||||||||
|
|
yes you can edit this file /boot/grub/grub.cfg |
|||
|
|