Changing the background image of Grub

June 2017




Intro


To change the background image for Grub, which is in the archive /boot/gfxmenu, simply replace it with another image of the same size and same name,

Defaultly named(800*600, back.jpg )

Solution

  • Open a console and login as root:


su -  
password
  • Before any manipulation, make a backup of the original file

cp /boot/gfxmenu /boot/gfxmenu.orig
  • Then create a temporary directory in which it will work:

mkdir/ tmp/temporary
  • And put it in the temporary directory:

cd/tmp/temporary  
  • We extract the archive:

cat /boot/gfxmenu | cpio -i
  • It copies our new image, assuming it is in: /home/your_login/Images

cp -vf /home/your_login/Images/back.jpg /tmp/temporairy 
  • And finally, return the archive in /boot:

find . | cpio -o > /boot/gfxmenu
  • From therer you can delete the temporary directory and reboot to see the result :-)

rm -vfR /tmp/temporary

Related


Published by deri58. Latest update on May 15, 2010 at 07:40 AM by jak58.
This document, titled "Changing the background image of Grub," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).