LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 11-01-2007, 12:08 PM   #1
stevie_velvet
Member
 
Registered: Aug 2004
Location: Italia + UK
Distribution: RHEL 4 + Fedora FC5
Posts: 118

Rep: Reputation: 15
Grub Linux & Solaris


I've Install Solaris X AFTER Ubunut Linux

#/dev/sda
/dev/sda3 - Ubuntu - Boots
/dev/sda4 = Soalris

#menu.lst (linux grub)
title = solaris
root = (hd,3)
savedefault
makeactive
chainloader +1



(1) My Solaris doesn't start with the following displayed



Starting Up ...
_




Any ideas ?
 
Old 11-01-2007, 01:19 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
I don't know a whole hell of a lot with the short-and-curlies of Grub's syntax and commands, but try running "dpkg-reconfigure grub" as root to see if it will automatically probe your HD for any bootable kernels.

If this works as I hope it will, it will automatically update your menu.lst file for you with the proper boot-entry syntax for Solaris
 
Old 11-01-2007, 01:47 PM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
What is the X in "Solaris X" ?

Solaris 10 and newer install their own grub with which you should be able to directly boot Ubuntu and Solaris itself without chainloading.
 
Old 11-02-2007, 08:06 AM   #4
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Hmm, the September nevada still didn't. With multiple operating systems, Solaris installs GRUB on its own partition. You have to chainload to make it work with the GRUB on the MBR.

rootnoverify (hd0,3)
chainloader +1
makeactive

Last edited by jay73; 11-02-2007 at 08:07 AM.
 
Old 11-02-2007, 09:22 AM   #5
stevie_velvet
Member
 
Registered: Aug 2004
Location: Italia + UK
Distribution: RHEL 4 + Fedora FC5
Posts: 118

Original Poster
Rep: Reputation: 15
IndieNick - Ubuntu doens't recgnise UFS so that won't work
Jillagrie - X = Roman Numeral for 10, hence Solaris 10

jay73 - the difference in your suggestion & my menu.lst is 'rootnovery' insted of 'root'
- no go, just bounces back to grub

What I DO know is that RHEL's GRUB WILL START Solaris GRUB so may try that
 
Old 11-02-2007, 11:18 AM   #6
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Well, I can spot another difference: you have (hd,3). If that isn't a typo, you should replace it with (hd0,3).

Ubuntu does recognize UFS, by the way, but you need to pass some special options to fstab. Something like fs=solaris, I forget, but it's perfectly possible. Read only, though.
 
Old 11-02-2007, 11:49 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Quote:
Originally Posted by jay73 View Post
Hmm, the September nevada still didn't. With multiple operating systems, Solaris installs GRUB on its own partition. You have to chainload to make it work with the GRUB on the MBR.

rootnoverify (hd0,3)
chainloader +1
makeactive
There is no such requirement.Solaris grub doesn't remove any Linux specific feature. I currently dual boot Solaris Express build 75a and Ubuntu on one laptop using Solaris bundled grub.
 
Old 11-02-2007, 11:52 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Quote:
Originally Posted by jay73 View Post
Well, I can spot another difference: you have (hd,3). If that isn't a typo, you should replace it with (hd0,3).
Indeed.

Quote:
Ubuntu does recognize UFS, by the way, but you need to pass some special options to fstab. Something like fs=solaris, I forget, but it's perfectly possible. Read only, though.
You are correct, but you are referring to Linux ufs kernel support while I guess the point was Linux bundled grub doesn't support reading ufs.
 
Old 11-02-2007, 12:02 PM   #9
stevie_velvet
Member
 
Registered: Aug 2004
Location: Italia + UK
Distribution: RHEL 4 + Fedora FC5
Posts: 118

Original Poster
Rep: Reputation: 15
Jay
yep typo only on here
I reinstalled,but this time created a /boot slice

Once called from Ubuntu GRUB, the Solaris option goes to a Grub> (which I hope is the Solaris GRUB within it's partiton

So after
> kernel /platform/i86pc/multiboot
> module /platform/i86pc/boot_archive

I get teh SunoS 65 lines, then the machine reboots. If i can get into single-user mode & get the iintsall log file, would you like to see it ?


ref: http://blogs.sun.com/rscott/entry/so..._updating_menu
 
Old 11-02-2007, 12:13 PM   #10
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Is that a recent version of Solaris? Until recently, Solaris didn't support AHCI and I've seen quite a few occasions where it either failed to install or to boot up. I'm using the Community Express Edition, which tends to have better hardware support as it is something of a beta for the official Solaris.

By the way, I seem to remember one case where the real problem was the ordering of chainloader and makeactive. They had to be in that exact order or it wouldn't work.

Last edited by jay73; 11-02-2007 at 12:21 PM.
 
Old 11-02-2007, 01:46 PM   #11
stevie_velvet
Member
 
Registered: Aug 2004
Location: Italia + UK
Distribution: RHEL 4 + Fedora FC5
Posts: 118

Original Poster
Rep: Reputation: 15
Hi jay
I'm using the 8/7 U4 build, pretty recent

I'll try the community express edition! thanks!

What ANNOYS me is tryiing to trouble shoot it
theres no boot log file, messages file in /var/adm/log for example

fudge

but thanks!
 
Old 11-02-2007, 03:40 PM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Quote:
Originally Posted by stevie_velvet View Post
I reinstalled,but this time created a /boot slice
This can't work. The /boot directory must reside on the / slice.
 
Old 11-02-2007, 03:50 PM   #13
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Quote:
Originally Posted by stevie_velvet View Post
What ANNOYS me is tryiing to trouble shoot it
theres no boot log file, messages file in /var/adm/log for example
This directory belongs to the O/S but the O/S hasn't booted yet. I doubt any filesystem write support is implemented in grub .

For what it worth, here is a part of my menu.lst which allows booting ubuntu from Solaris bundled grub:

Code:
...
title Solaris Express Community Edition snv_75a X86
kernel$ /platform/i86pc/kernel/$ISADIR/unix
module$ /platform/i86pc/$ISADIR/boot_archive
...
title Solaris xVM
kernel$ /boot/$ISADIR/xen.gz
module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix
module$ /platform/i86pc/$ISADIR/boot_archive
...
title   Ubuntu, kernel 2.6.20-15-generic
root    (hd0,0)
kernel    /boot/vmlinuz-2.6.20-15-generic root=UUID=d42ff9d7-5398-423c-96e2-d75a0b58fc0e ro quiet splash
initrd    /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
...
title Solaris Express Community Edition snv_75a X86 (alternate slice)
root (hd0,2,d)
kernel$ /platform/i86pc/kernel/$ISADIR/unix
module$ /platform/i86pc/$ISADIR/boot_archive

Last edited by jlliagre; 11-02-2007 at 08:52 PM.
 
Old 11-03-2007, 07:09 PM   #14
stevie_velvet
Member
 
Registered: Aug 2004
Location: Italia + UK
Distribution: RHEL 4 + Fedora FC5
Posts: 118

Original Poster
Rep: Reputation: 15
merci plus
solaris express worked prefectlly!
now have a triple-boot environment

avec aussi, merci
 
Old 11-03-2007, 07:15 PM   #15
stevie_velvet
Member
 
Registered: Aug 2004
Location: Italia + UK
Distribution: RHEL 4 + Fedora FC5
Posts: 118

Original Poster
Rep: Reputation: 15
One more thing
OpenSolaris DIDN't install GRUB in the MBR, only in it's partition..exactly what I wnated without asking


GRUB MBR

¶- Ubuntu
¶- Vista
¶- Solaris GRUB

¶-Solaris
¶-Vista (another way)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: ISS first with protection for latest Linux & Solaris LXer Syndicated Linux News 0 10-17-2006 09:21 AM
How to use grub to boot the triple OS: windows,linux,solaris? chuanweizuo Solaris / OpenSolaris 6 09-22-2006 06:10 AM
Solaris & Linux files DarReNz Solaris / OpenSolaris 2 08-08-2006 10:05 AM
Linux GRUB and Solaris 10 1/06 GRUB zillah Linux - Newbie 8 03-29-2006 03:29 AM
Sparc hardware: dual boot solaris & linux bulliver Solaris / OpenSolaris 18 04-25-2005 07:50 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration