Recovering Solaris after Windows installation, Part 2


In my earlier post , I had just given a brief overview as to how you can recover your favorite OS after you install windows.

A bit more in detail now,

The problem with windows is that it furnishes a single boot loader , which means that if you have Solaris/Linux installed on your machine prior to windows installation it will wipe out a part of  menu.lst( more on it in a while) . So grub is not initialized and you dont get the option.

As mentioned earlier you need to pop in the Solaris disk and then enter  grub ,make changes and boot .But this will only boot the Hard disk<no> / partition  you specify.

In order to make this permanent and automatic… Insert the disk ,for the first time.. Follow the procedure in my previous post ,then..

Open up the terminal

# vim /boot/grub/menu.lst

navigate to the end of the file and add the following.

rootnoverify (hd0,c)
makeactive
chainloader +1

[here in my case solaris was installed on Hard disk<0>, and partition ‘c’, it wil be different/same in your case,look into that first. ] .This will bring up only the solaris kernel on the grub screen. (Obvious since you’ve just updated menu.lst to show this)

To have windows on the grub screen adopt the same method described so far to locate the partition on which windows is installed. then ,

title Windos
rootnoverify (hd0,1)
chainloader +1

[Again in my case it was present on HD-0 and partition 1, title <something> will give you a display name thats all, so you can have anything you want.)

Once this is set up ,save menu.lst and then reboot.

You will see both the kernel displayed ,choose Solaris 🙂

Let me know if anyone of you still have any issues… Will be glad to help 🙂

Opensource rules!!!

PS: All this works under the presumption that you have actually installed windows on separate partition and on which Solaris was, or else you’ve just wiped out Solaris from your machine… (DONT REMOVE SOLARIS!!)

Advertisements

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