Change GRUB Screen in Ubuntu 16.04

Change GRUB Screen in Ubuntu

In this short article we will see how to change grub screen in Ubuntu 16.04. As we know that GRUB 2( GRand Unified Bootloader) is default boot loader for most Linux operating systems. It is used to load the first program(i.e Kernel) that runs when the computer starts. When you  start your Ubuntu desktop, the default GRUB background image is shown as below;


1) Edit the GRUB file on Ubuntu 16.04.

Firstly, Take the backup of GRUB file before edit that.

#sudo cp /etc/default/grub /etc/default/grub.bak

gaurav@ubuntuclient:~$sudo cp /etc/default/grub /etc/default/grub.bak

Using below command you can edit the grub file.

#sudo nano /etc/default/grub

gaurav@ubuntuclient:~$ sudo nano /etc/default/grub

Now, Change these parameter(Shown on colors) on GRUB file:

# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

# Uncomment to enable BadRAM filtering, modify to suit your needs


Warning: If you modify and edit GRUB 2 settings in production systems. We recommend you to test these settings in any virtual machine first, and then apply to the production systems.

2) Copy the image to /boot/grub/ directory.

Now, We need to copy our preferred image to “/boot/grub/” location for change the GRUB background image.

gaurav@ubuntuclient:~$ ls
Desktop  Documents  Downloads  examples.desktop  image.png  Music  Pictures  Public  Templates  Videos
gaurav@ubuntuclient:~$ sudo cp -v image.png /boot/grub/
'image.png' -> '/boot/grub/image.png'
gaurav@ubuntuclient:~$ ls /boot/grub/
fonts  gfxblacklist.txt  grub.cfg  grubenv  i386-pc  image.png  locale  unicode.pf2

Note: GRUB supports only 256 color JPG/JPEG image formats only. So, it is better to use PNG format images.

3) Update the grub.

Finally, you need to update the grub to apply the changes, using below command.

gaurav@ubuntuclient:~$ sudo update-grub
Generating grub configuration file ...
Found background image: image.png
Found linux image: /boot/vmlinuz-4.4.0-31-generic
Found initrd image: /boot/initrd.img-4.4.0-31-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin

Now Reboot the system and check whether the changes are working or not.


Hope this post will help Linux/Unix beginners. Please share you feedback and Comments. Stay tune for more updates with …!!!

Leave a Reply


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Notify of