Friday, October 3, 2008

Installing GFX GRUB in Ubuntu - grub graphically reloaded

Well, GRUB has grown and has grown to be more beautiful. The new GNU Graphics GRUB is the new improvement to standard GRUB boot screen that adds much visual appeal. To install GFX GRUB, the older GRUB has to be removed. (Warning:- removing grub is tedious. If you don't any idea please suspend this tutorial here itself.)
  • To remove GRUB, open a terminal and type the following command.
sudo apt-get remove grub
  • Download GFX Grub from here.
Before starting make a backup copy of your GRUB menu. goto the folder /boot/grub and copy your menu.lst file .
Now download some additional themes for GFX Grub Menu Click Here.
  • Now unzip the files and move it to /boot/grub .. Since it comes under root file system you need to gain root privileged to do that .. Type the following in Terminal

    sudo su root

    Enter password and then type this nautilus this will open a new Nautilus Window. .Navigate to /boot/grub through root nautilus window.. Copy all the message.xyz (xyz can be anything)file to /boot/grub.

  • Now since you have added theme .. Lets do final settings to make this GFX Grub work.. Open terminal and type this

    sudo gedit /boot/grub/menu.lst

    Add this line at the top of the Menu.lst file

    gfxmenu /boot/grub/message.xyz # the xyz should be replaced with the theme name that you are going to use

  • Since you have removed you older grub you need to restore GFX Grub so that you boot through OS without any problem.. Open Terminal and do these
    Type
    sudo grub
    find /boot/grub/stage1
    You will get a output like (hd0,4) or other depending on you HDD partitions

  • Then type this

    root (hdx,y)
    setup (hdx)
    quit

Where “x” represent the value of hdd sector in which you have installed grub.

  • The last thing you have to do is to install Grub MBR .

    sudo fdisk -l

    You will get an output like this

    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0×0dd6c6bd

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 3187 25599546 7 HPFS/NTFS
    /dev/sda2 3188 8287 40965750 f W95 Ext’d (LBA)
    /dev/sda3 8288 9607 10602900 83 Linux
    /dev/sda4 9608 9729 979965 82 Linux swap / Solaris
    /dev/sda5 3188 5737 20482843+ 7 HPFS/NTFS
    /dev/sda6 5738 8287 20482843+ 7 HPFS/NTFS

    Look for the bold Entry and finally install MBR in Filesystem

    sudo grub-install /dev/sdaX
    Note : Replace sda by hda or anything else, if it is in fdisk -l output. If the grub-install fails you can try adding “–recheck” option to the command.

    Where X represent the number of you Hard Disk sector in which you had installed Grub.
This is what my boot screen looks like:

That must do. If no error occured in any of the steps, Your gfx grub installation has gone well. If any error has occured, please re-install the grub from your repository and follow the final 3 steps (marked by bullets) completely to get working GRUB. and replace the backed up copy of the menu.lst file. I can in no way, help incase of error. Even my understanding of GRUB is minimal. Everything went well for me. So I have posted this here.
All The Best!!!!!!!!!!!

4 comments:

Anonymous said...

Excellent! Where did you get your theme?
I guess: you did it yourself, did you?

Actually it's not bad idea to mention that grub-gfxboot_0.97-5_i386.deb must be installed with "debi" and not unzipped and moved to /boot/grub along with themes like it could be understood, well I read somebody did it:)
It also could be mentioned that grub counts partitions from 0 and not from 1 so for grub sda1=hd0,0

Bad news: I did it, restarted and saw the same black "terminal"! I use gag but it boots into particular grub so I see splash on Suse, Mandriva etc... Is it really necessary to install grub to MBR (I have FreeBSD there)?

Arun Srinivasan said...

zeiz I moderate my comments.So no need to post same twice.

I didn't do it. I got it from gnome-look.org or kde-look.org

search for gfx grub thmese.
Loads of results show up there.Well Gdebi in kubuntu was broken..........

I use the terminal command for installing *.deb packages in ubuntu/kubuntu
:-
sudo dpkg -i *.deb

Thought many knew it. thanks for pointing it out.

You can install grub to any suse or mandriva boot then.If you know the partition where suse is installed.Then make the above changes there. everything will work.

Unknown said...

Unfortunately doesn't work with Intrepid because Intrepid formats its ext3 partitions to use the newer 256 byte inode size file system standard, rather than previous versions of Ubuntu that used a 128 byte inode size.

You'll get:

grub> find /boot/grub/stage1
Error 15: File not found

Arun Srinivasan said...

changes might be made and a new release of gfx grub might soon come out.

I'm in a fix of whether or not upgrading to intrepid.I have my hardy in a very good shape.

I think I'll do it later before next year.