GRUB2-Change the background image of GRUB


Using Ubuntu, you have got tired of seeing a purple background of GRUB when the Linux was booting up. But starting from Debian Family, GRUB adds a background image which looks better than a static boring colour of GRUB.

This post explains how to change the background image. The steps mentioned below will let you change the background image, but  following these steps should also work on other similar Linux versions like MINT.

Choosing a GRUB 2 Background Image

GRUB 2 can use PNG, JPG/JPEG and TGA images for the background. The image must meet the following specifications:

  • JPG/JPEG images must be 8-bit (256 colors). Else you will get errors saying “Too many Huffman tables”.
  • Images should be non-indexed, RGB.
  • The GIMP image editor is one application which can edit images of your choice to confirm to the GRUB2 standards. (Use the Image > Mode menu options to set the properties to RGB and ensure the mode is not set to Indexed.)

To install GIMP editor:

sudo apt-get install gimp

Changing the background image is just a few step process:

  • Copy the image of your choice in the following directory mentioned,
cp yourimage.jpg /boot/grub

NOTE: If any image already exists in the directory then first delete it or the new image will not be able to apply to your background.

  • Updating it will make your changes apply,
sudo update-grub


Image Priority

If more than one image is available, the following order is used to determine which image is to be used as the background image.

  1. GRUB_BACKGROUND setting in /etc/default/grub

  2. First image found in /boot/grub
    • The first image found, in this order: jpg, JPG, jpeg, JPEG, png, PNG, tga, TGA
    • If multiple images of the same extension, alphanumerically.
  3. Wallpaper designated in /usr/share/desktop-base/

  4. Default theme (no image): default_theme colors specified in /etc/grub.d/05_debian_theme       

3 thoughts on “GRUB2-Change the background image of GRUB

Leave a Reply

Your email address will not be published. Required fields are marked *

nine − three =