Grub bootloader of Debian

Grub - GRand Unified Bootloader

Where the Grub bootloader is located in Debian

/etc/default/grub

/etc/grub.d

The Grub 2 bootloader

You need to edit either /etc/default/grub or the scripts from 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"

the picture must first be put into the folder /boot/grub because this folder contains the file grub.cfg that controls the boot.

After changing the picture you may have to change the colour of the text and decoration, to do this you need to add to the end of the file /etc/grub.d/40_custom information about the colours, for example:

set menu_color_normal=red/black set menu_color_highlight=yellow/black set color_normal=yellow/black

For the changes that were written to /etc/default/grub to take effect you need to run

update grub2

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 need to edit 40_custom, if, for example, you installed FreeBSD before Debian and after installing Debian it is not visible at boot, you need to add an entry

menuentry 'FreeBSD 9.0 Release'{ set root=(hd0,2) chainloader +1 }

For the changes to take effect you need to run the command

grub-mkconfig -o /boot/grub/grub.cfg

Links:
wiki.archlinux
mydebianblog
gnu.org

Article author: Andrei Olegovich