Grub-Gfxboot-Ubuntu Jaunty Jackalop

Hai Friends here we are going to see about Grub-Gfxboot which will enable us to set themes for Grub like the OpenSuse.

I am trying to make the explanation very simple.Pls comment on the Style of explanation so that i can bring necesary changes in the coming posts:

===========================================

Grub-Gfxboot

First of all Get the Latest Version of Grub-gfxbot from the following link:

http://sidux.com/debian/pool/main/g/grub-gfxboot/

Note:One thing to be careful of is to use the latest gfxboot package; Intrepid n Jaunty now formats its ext3 partitions with an inode size of 256 bytes, whereas previous versions of Ubuntu used 128 byte inode sizes. If you try to use an older version of Grub to boot an Intrepid partition, Grub will choke and spit out a Grub error 2.

Installation

Now we should Install the Package,Before that the package ‘grub’ should be removed.

Open a terminal and issue the following commands:

$sudo apt-get remove grub

Give the root password if asked.This will remove the package grub

Now to install the gfxboot package:

$sudo dpkg -i grub-gfxboot_0.97-43_i386.deb

The filename may varry.Now the package is installed

Grub Themes:

Now get some cool themes from the web.Just google and you will get plenty of themes.

Note:Remember that some themes produce an ‘Invalid file format’ error which is because the theme is supported by older versions.

One pretty theme can be downloaded from the following link:

Configuration:

First of all move the theme files to the directory:/boot/grub/

As the directory is readonly you should use command to move the themes to the /boot/grub/ directory.

  • Command mode:

$sudo cp <source path of theme> /boot/grub

This will move the themes to the /boot/grub directory

  • Graphical Mode:

$gksudo nautilus /boot/grub

This will open the /boot/grub directory in a file browser and just drag the themes to the directory

Editing Configuration File

We should add an entry to the /boot/grub/menu.lst file about the theme:

First Lets Backup the file:

$sudo cp /boot/grub/menu.lst   /boot/grub/menu.lst_backup

Editing the file

  • Using Terminal

$sudo nano /boot/grub/menu.lst

  • Graphical

$sudo gedit /boot/grub/menu.lst

Now add the following entry as the first line in the file

gfxmenu /boot/grub/<theme name>

eg: gfxmenu /boot/grub/message.suse

Configuring Grub:

Open Terminal:

$sudo grub

this will open the grub prompt:

now issue the following commands

grub>find /boot/grub/stage1

this will create an output like (hdx,y) ,where x and y will varry depending on your harddisk.

grub>root   (hdx,y)

grub>setup   (hdx)

remember there is space between root (hdx,y) and setup (hdx)

Installing Grub to MBR:

$sudo grub-install /dev/sda

Caution:The above command is issued by assuming the that the grub is to be installed to the MBR of first HDD.Here /dev/sda may be changed to /dev/hda for IDE drives.

Finish:

Now Just Reboot Your System n Enjoy the Grub Theme.