Change Background Image in GRUB through command line

It is actually very simple to change the grub background image in LINUX and edit the grub and put it over there however there are a few ground rules we need to remember .

  • It should be a xpm image with just 14 colours in it ( that is sadist but thats the way it is)
  • It should be a 640 x 480
  • Gzip it

Now going step by step walk through how to change the background through your terminal

  • Once you have gzipped your image copy it into your /boot/grub/
    • sudo cp -v source /boot/grub/splash.xpm.gz
  • Login as root
    • sudo -i
  • Use a text editor gedit or vi
    • gedit /boot/grub/menu.lst ( I prefer vim wirte now)
  • Now you will find something known as #pretty colors
  • Under that splashimage=(hdX,Y)/boot/grub/splash.xpm.gz where X is your hard disk no  and Y refers to the parition in my case it is(hd0,6)
  • Save it and exit

You are done… Cheers

Advertisements

2 thoughts on “Change Background Image in GRUB through command line

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s