Recover Linux GRUB after Solaris reinstall with Ubuntu Alternate install disc

I have a setup where I multiboot Solaris and Ubuntu, and I occasionally install the newest release of Solaris to try out new features.  Each time I do so, however, Solaris overwrites the existing Linux GRUB install with its own, and I lose the ability to boot to Ubuntu, even though it's still there on the disk.  Here is one method to recover the Linux GRUB (using the Ubuntu Alternate install disc, since that's what I have) and the choices I select:

  1. Boot from Alternate CD
  2. Choose "Rescue a broken system"
  3. Choose Language (English, United States)
  4. Detect Keyboard Layout (No, U.S. English, U.S. English)
  5. Detecting HW, Scanning CDROM, Additional components
  6. Configure networking (Cancel, Continue, Do not configure at this time)
  7. Hostname (Default, Continue)
  8. Detecting HW...
  9. Choose root filesystem device (/dev/sda1)
  10. Rescue Operations Mode (Reinstall GRUB boot loader)
  11. I need to install GRUB to MBR, so type hd0 and press continue
  12. System runs grub-install hd0 to write boot loader to MBR
  13. Reboot
Upon reboot, I now see my original GRUB boot menu, and I can now boot into my Ubuntu installation.  Note that these steps are not specific to an Ubuntu/Solaris setup, but should also work for Ubuntu/<other OS> or even Linux/<other OS>, depending on recovery disk options.

 

Comments:

Hi

when I instaled Soalris X, it failed to complete the final tage oof installing Grub (failed bootmanager(1M)

What entry do you have for your menu.lst

Also...on My PC, Solaris does start, but has it's own grub..is your install similar ?

Posted by Stevie Solaris 8 SCSA on November 01, 2007 at 05:11 AM CDT #

Hi Stevie,

I actually recently re-installed my machine with Ubuntu 7.10 and don't have my old menu.lst anymore. I do remember having to chain-load solaris and using the linux grub in the MBR. What I describe above is how to overwrite the solaris grub with the linux one so that the chainloading will work.

Posted by Gabriel Carrillo on November 02, 2007 at 05:38 AM CDT #

Hi Gabrille
Gave up on the end, tried Solaris Express which worked seemlesly ...grub installed into the root partition, not over the MBR of Ubuntu..so quite happy with the Triple-Boot, with Vist Business also installed

Now in the murky world of source & rebuilding which is still a enigma to me & looking at your BGE patch

thx
stevie

Posted by stevie on November 05, 2007 at 08:46 AM CST #

Hi, I read your article. But I first install the Ubuntu, can I install Solaris directly? Will this demage anything?

Posted by George on February 26, 2008 at 12:30 PM CST #

thnks for the help, dusch

Posted by adsfdsf on July 09, 2008 at 10:13 AM CDT #

Request :
kindly send the solution of the issue

while installing the os x-86 solaris 10 after installation I'm getting " grub> " prompt.
to retrieve from that what I have to do ?

Thanks & Regards
Ratnakar

I'M SORRY TO ASK FOR SOLUTION INSTEAD OF GIVING COMMENT , SENDING A REQUEST.

Posted by Ratnakar bhushan on December 27, 2008 at 12:17 AM CST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

I'm a Software Engineer at Sun Microsystems, and an alumnus of the University of Texas at Austin - Hook 'Em Horns!

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today