Sunday, April 20, 2008

Recovering OpenSolaris/Solairs/Linux after Windows Installation

I was running a dual boot configuration with two OSes: Windows XP and Solaris XDE 01/08. I upgraded my system memory but I couldn't visualize the performance difference. This, and a few other reasons made me to opt for a fresh Windows XP installation.

As usual, Windows wiped out the MBR and set it's own partition as active. Following this, I lost my GRUB bootloader and hence the option to boot into Solaris. I played and searched around a little bit and found a couple of good tweaks to recover a Solaris/OpenSolaris boot option, or a Linux boot option by actually recovering the GRUB bootloader.

Recovering GRUB for Linux is different then doing the same for Solaris. Generally Linux installation updates the MBR to load the GRUB, but a Windows installation cleans this MBR. To recover it follow this:
  • Get a live CD of your Linux Distribution,
  • Boot the Linux from this CD,
  • Open a Terminal,
  • Get into GRUB by typing this: sudo grub
  • Then you need to know abou the sequence number of your previous Linux partition (if you don't remember this, you can get an idea from Windows disk management utility).
  • Once you are sure about it, type this if it was the first partiton: root (hd0,0)
    or this if it was second partition on the second harddisk: root (hd0,1)
  • Finally type this: setup (hd0)

You're done!

For Solaris/OpenSolaris, Follow this procedure:
  • Get a OpenSolaris Installation Disk,
  • Boot from CD,
  • type 'c' at boot menu to get the GRUB command line,
  • Type this: rootnoverify (hdX,Y)
    replace X by hdd number, and Y by the sequence number of partition where Solaris is installed. e.g. rootnoverify (hd0,0) for first harddisk and first partition.
  • Now make the Solaris partition active. Type this: makeactive
  • Now chainload the bootsect, which implies that the GRUB bootloader, which is installed through your Solaris will be loaded when you'll startup your system.
  • To do this, type the following: chainloader +1
  • Finally type: boot

You're done!


Anonymous said...

The instructions for Open Solaris worked. Thanks for this clear instruction.

Research Papers Writing said...

Many institutions limit access to their online information. Making this information available will be an asset to all.

dissertation topics said...

Wonderful blog, i recently come to your blog through Google excellent knowledge keep on posting you guys.

Dissertation services
Dissertation writing

Anonymous said...

you have a nice site. thanks for sharing this enormous resources. keep it up. anyway, various kinds of ebooks are available here

creativesumant said...

The Nvidia GeForce Go 7400 TurboCache which is included with the XPS M1210 can function with both the nv module included with Xorg and the Nvidia's proprietary module. For OpenGL support you will need to use the proprietary module.

Some cheaper models of the Dell XPS M1210 include the Intel Graphics Media Accelerator 950. This has not yet been tested but it has been reported to work with the 915resolution tool.

You can use the Linux UVC module to get the webcam working with the M1210. However this module is experimental and quality isn't great at the moment. I could only get a black and white picture from the camera.

Recently I just came across a good article on "Linux"
Here is its link.

Green Parks said...

Hello.. Firstly I would like to send greetings to all readers. After this, I recognize the content so interesting about this article. For me personally I liked all the information. I would like to know of cases like this more often. In my personal experience I might mention a book called Green Parks Costa Rica in this book that I mentioned have very interesting topics, and also you have much to do with the main theme of this article.

lala said...

Thanks for your post and welcome to check: here

lvbagmall said...

Totally perfect for your current life-state. Congrats on your move and I hope it is a dream!
louis vuitton boulogne | louis vuitton musette | louis vuitton tresor wallet | louis vuitton zipped purse

pamella said...

This is my Good luck that I found your post which is according to my search and topic, I think you are a great blogger, thanks for helping me outta my problem..
UK Dissertation

how to write a resume said...

Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to your blog for more soon.

Anonymous said...

I must show some thanks to this writer just for bailing me out of this particular issue. As a result of browsing through the net and seeing views which are not productive, I assumed my life was well over. Being alive devoid of the solutions to the issues you have fixed as a result of your entire post is a serious case, and ones that could have negatively damaged my entire career if I had not come across your web site. That expertise and kindness in dealing with a lot of stuff was crucial. I am not sure what I would’ve done if I had not encountered such a subject like this. I’m able to at this time look forward to my future. Thanks so much for your skilled and sensible guide. I will not hesitate to suggest your blog to anybody who needs and wants support about this topic. Cell Phone Lookup | Outdoor Lighting | Pellet Stoves | Outdoor Flood Lights | Used Pellet Stoves | Outdoor Security Lights | Landscape Lighting Ideas

bathroom designs said...

Salman Jamali
Fairly excellent submit, This webpage presents helpful data to us, I praise you
Thank you!

z toko said...

I found the perfect place for my needs. Contains wonderful and useful messages. I have read most of them and has a lot of them.
harga cmp

sandal pria branded said...

I must say that I truly fancy all of your blog posts mostly Silverlight development, it's very educational. I'm at this moment hooked to psychics in Adelaide and your web page. Keep it up!
sandal branded
toko sendal online
sandal model baru

sandal casual pria said...

Simply desire to say your article is as astonishing. The clearness in your post is simply spectacular and i can assume you’re an expert on this subject. Well with your permission allow me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please carry on the rewarding work.
sandal bagus
sandal pesta terbaru
sendal pria

tips memilih sandal kulit pria keren masa kini said...

Thanks for your marvelous posting! I actually enjoyed reading it, you will be a great author.I will ensure that I bookmark your blog and will come back in the foreseeable future. tips memilih sandal kulit wanita branded
I want to encourage that you continue your great job, have a nice weekend!think you’ve made some truly interesting points