Grub2 – In Ubuntu 9.10

How to update Grub2  in ubuntu 9.10

Grub2 is the powerful tool to update the grub while installing multi-operating system .

upto ubuntu 9.04 releases, we have only Grub .

From ubuntu 9.10 , we have the next version of Grub. Its most powerful tool to normal Linux users.

Here we will see , how to setup Grub-2.

In my system , first I installed opensolaris .   Then I installed ubuntu 9.10 . But , the bad thing is , linux ext3 and ext4 file formates os like ubuntu can not update opensolaris , automatically.

For that, we need to do the following  four simple steps.

Grub2 Seetings.

step0:

arul@arul-desktop:~$ sudo fdisk -l

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x42b442b3

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1218     9783553+  83  Linux
/dev/sda2   *        1219        2537    10590208   bf  Solaris
/dev/sda3            2538        4865    18699660    5  Extended
/dev/sda5            2538        3771     9912073+  83  Linux
/dev/sda6            3772        4865     8787523+  83  Linux


step1:

sudo gedit /etc/grub.d/40_custom

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the ‘exec tail’ line above.

menuentry “OpenSolaris 06-2009” {
set root=(hd0,2)
chainloader +1
}

# we have to add these three lines to add opensolaris os into our grub
# here , /dev/sda2 is equavellent to (hd0,2).


step2:

sudo chmod a+x /etc/grub.d/40_custom

step3:

sudo update-grub2

Thats all.   simply superb ! Now reboot your system and access other os via Grub2 .

🙂

அருளாளன் . த

Advertisements

One response to this post.

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

%d bloggers like this: