Grub bootloader of Ubuntu
Grub - GRand Unified Bootloader
Where the Grub bootloader lives in Ubuntu
/etc/default/grub
/etc/grub.d
The Grub 2 bootloader
Edit either /etc/default/grub or the scripts in the folder
/etc/grub.d
For example
vi /etc/default/grub
Change the timeout / screen resolution / set a background image
GRUB_TIMEOUT=10
GRUB_GFXMODE=1920x1200
GRUB_BACKGROUND="new_pict.jpg"
Put the picture into the folder /boot/grub first. This folder holds the file
grub.cfg
, which controls the boot process.
After changing the picture you may have to change the text colour and the style. To do that, add the colour settings to the end of /etc/grub.d/40_custom , for example:
set menu_color_normal=red/black
set menu_color_highlight=yellow/black
set color_normal=yellow/black
For the changes saved in /etc/default/grub to take effect, run
sudo update-grub
Editing the scripts:
cd /etc/grub.d
ls
Contents of the folder:
00_header 10_linux 30_os-prober 41_custom
05_debian_theme 20_linux_xen 40_custom README
Usually you edit 40_custom. For example, if you installed FreeBSD before Ubuntu and it does not show up in the boot menu after Ubuntu was installed, add this entry
menuentry 'FreeBSD 9.0 Release'{
set root=(hd0,2)
chainloader +1
}
For the changes to take effect, run
grub-mkconfig -o /boot/grub/grub.cfg
Links:
wiki.archlinux
mydebianblog
gnu.org
Article author: Andrei Olegovich