DaemonForums  

Go Back   DaemonForums > Other Operating Systems > Solaris

Solaris SUN Solaris & OpenSolaris.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th May 2008
Nobber's Avatar
Nobber Nobber is offline
Port Guard
 
Join Date: May 2008
Location: Nova Scotia
Posts: 11
Default Help me boot OpenSolaris again!

I did something stupid.

I have three operating systems on my laptop: NetBSD in (hd0,0), FreeBSD in (hd0,1), and OpenSolaris in (hd0,2). OpenSolaris was the last to go on, and it installed GRUB in the MBR - which is fine, because GRUB can boot anything.

Then I installed GRUB from within FreeBSD, and copied the relevant lines from OpenSolaris's menu.lst to enable (so I thought) OpenSolaris to boot:

Code:
title OpenSolaris 2008.05 snv_86_rc3 X86
bootfs rpool/ROOT/opensolaris
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
Now, I did remark to myself at the time that these lines were the weirdest I'd ever seen in a grub config file, but I had faith - if they worked with GRUB 0.95 from OpenSolaris, they'd work with GRUB 0.97 from FreeBSD, eh? - and ploughed on.

The OpenSolaris gurus among you will no doubt already be sensing what happened next. And what happened after I rebooted was indeed that OpenSolaris failed to boot. In fact, OpenSolaris failed to show up in the GRUB menu at all.

Now that I've laid bare my complete ignorance of how GRUB works, and how OpenSolaris uses it, could anyone tell me how to fix this and make OpenSolaris bootable again?

Please?
Reply With Quote
  #2   (View Single Post)  
Old 14th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

last i checked only the (open)solaris version of grub can boot (open)solaris. i believe that sun is working to the modifications required to boot solaris into the standard grub source tree.

1. you can chainload the solaris grub. opensolaris entry in freebsd:

title OpenSolaris 2008.05 snv_86_rc3 X86
root (hd0,2)
chainloader +1


2. or you can reinstall the solaris grub into mbr and use it instead. boot solaris and run:

# /sbin/installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/cXdYs0

Last edited by ephemera; 14th May 2008 at 12:56 PM.
Reply With Quote
  #3   (View Single Post)  
Old 14th May 2008
Nobber's Avatar
Nobber Nobber is offline
Port Guard
 
Join Date: May 2008
Location: Nova Scotia
Posts: 11
Default

Thank you. The chainloading trick worked. I didn't expect GRUB to be installed in the OpenSolaris partition (slice) as well as the MBR. A pleasant surprise, indeed!
Reply With Quote
Reply

Tags
boot, grub, opensolaris

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSolaris equivalent of systrace? DraconianTimes Solaris 9 31st January 2009 05:36 AM
Help with OpenSolaris package management roddierod Solaris 2 6th August 2008 03:11 PM
where all packages OpenSolaris whispersGhost Solaris 15 11th June 2008 09:55 AM
Xfce on OpenSolaris aleunix Solaris 0 4th June 2008 06:23 AM
Dual-boot laptop won't boot OpenBSD after upgrade to 4.3 kbeaucha OpenBSD Installation and Upgrading 17 30th May 2008 02:40 PM


All times are GMT. The time now is 04:11 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick