I am taking about the naming of existing/default GRUB boot entry. Currently I've the following options at GRUB screen:
Trisquel GNU/Linux
Advanced options for Trisquel GNU/Linux
Trisquel GNU/Linux, with Linux-Libre 3.13.0-39-lowlatency (recovery mode)
Windows 7 (loader) (on /dev/sda1)
Edubuntu ISO
Where First three entries are default with Trisquel GNU/Linux, 4th is for Windows boot loader and 5th is custom entry defined at /etc/grub.d/40_custom
.Now suppose I want to change the name/text of say 4th entry Windows 7 (loader) (on /dev/sda1)
, then which is the right way?
I found above menu entries at /boot/grub/grub.cfg
. Example for that I want to change:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-0A7072DF7072D145' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 0A7072DF7072D145
else
search --no-floppy --fs-uuid --set=root 0A7072DF7072D145
fi
parttool ${root} hidden-
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
So, Can I safely replace the name/text 'Windows 7 (loader) (on /dev/sda1)'
with which I want and then update-grub2
?
Briefly I want to know How do I change the name of GRUB boot entry?
40_custom
for all your entries. You then disable the other files (chmod -x
them with the exception of00_header
and then runupdate-grub
or whatever it's called on your distro). – don_crissti Jan 09 '16 at 17:04