LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-02-2007, 07:29 PM   #1
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Restore Solaris 10's GRUB


Disclaimer: relative Solaris n00b here

Problem:

I have a (x86) PC that I use for playing around with various Linux distros, BSDs etc. It also has Solaris on it. The HDD layout is thus (please forgive the Linux-centric nomenclature):

80GB IDE HDD:

10GB /dev/hda1 (or /dev/rdsk/c0d0 in Solaris): Solaris
--/dev/rdsk/c0d0s1 = /
--/dev/rdsk/c0d0s2 = overlap (whatever that is)
--/dev/rdsk/c0d0s7 = /export/home
(this is how Solaris 'autolayouts' c0d0 on installation)
10GB /dev/hda2: FreeBSD
10GB /dev/hda3: unused (awaiting another *BSD)
/dev/hda4: Logical partition containing 4 or 5 Linux distros (10GB ish per)

Today I installed Kubuntu on /dev/hda9 (one of the logical partitions within /dev/hda4). Despite telling it not to install GRUB, it did (grrr). This installation of GRUB (along with the other Linuxes') will not recognise Solaris' partition/slices and thus I cannot boot Solaris.

I can boot from CD1 of the Solaris 10 install CDs and get a single-user console, run the install-grub command, but cannot mount any of the solaris partitions/slices (from which to source stage-1 stage-2 and menu.lst).

So, my question is: how the heck can I restore Solaris' GRUB (which happily boots all the Linux distros (unless they're on XFS) as well as itself)?

Appreciation in advance,

odevans
 
Old 07-03-2007, 04:14 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If the Kubuntu installation hasn't touched the Solaris partition, you can chainload it from the current boot grub and get Solaris grub from there.

Add this to the menu.lst file:
Code:
title Solaris Chainload
rootnoverify (hd0,0)
If that works, you can then just make the Solaris partition bootable.
 
Old 07-03-2007, 01:49 PM   #3
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Original Poster
Rep: Reputation: 30
Thanks for the reply jlliagre. Unfortunately, that wont work as Solaris installed GRUB to the MBR (where it was replaced by Kubuntu's GRUB), so there's nothing to 'chainload'.
 
Old 07-04-2007, 01:29 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
AFAIK, Solaris doesn't install GRUB on the MBR but on its own partition.

Did you try to chainload ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restore GRUB Nilesh.Shah Linux - Hardware 6 01-09-2010 11:43 AM
how to restore grub in suse 10 akshay_jp SUSE / openSUSE 2 03-05-2006 01:27 PM
Grub Restore roopunix Linux - Networking 5 08-29-2005 05:29 PM
Restore Grub Help gackt3541 Linux - General 8 06-06-2004 04:17 PM
How can I restore GRUB ? xtrips Linux - Software 5 07-30-2003 03:22 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration