How to use grub to boot the triple OS: windows,linux,solaris?
Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to use grub to boot the triple OS: windows,linux,solaris?
Dear All
I intend to install Solaris 10, but I prefer making sure that every step will go well to rescuing a boot failure OS.
I've just looked through this forum, and i'm afraid such a bootloader problem might happen:
after installed Solaris, Linux may failed to boot using the default Solaris boot loader.
So I'm just wondering whether we can use grub to boot the mutiple OS or not.
Can anyone tell if my idea can be practicable? If so, how?
For my part I did install Solaris letting it overwrite the drive boot sector, then
I booted from a Linux rescue CD (slackware 2nd CD)
I mounted my Linux root partition in /mnt/hd, then I used
chroot /mnt/hd
to change root to my Linux root partition and I reinstalled grub with
Code:
grub
grub> root (hd0,0)
grub> setup (hd0)
As you can see my drive is hda and my /boot partition is /dev/hda1
Then I rebooted in Slackware-linux and I edited the grub.conf (or menu.lst)
Code:
title solaris 10
rootnoverify (hd0,1)
chainloader +1
makeactive
boot
I don't think so, I did not even try it though.
But the steps above work fine to use multiboot for Solaris and Linux
I did it twice (I re-installed Solaris to give it more space) and each time it worked
without a problem
If you have to boot the older solaris 10 (before Solaris 10 1/06 - without the GRUB), you can do so by chainloading. But, as remarked before, it will overwrite the MBR. You can reinstall the linux grub on the MBR to get back your original configuration.
If you have linux grub in the MBR, you still need to chainload, since linux grub cannot read ufs, which is the FS that solaris uses.
Solaris grub is installed within the partition on which solaris is installed. So, you can chainload into it like you do with windows, but in this case, you will see yet another grub menu (the solaris grub - which can read ufs), and you can boot into solaris from its menu.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.