LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-20-2015, 05:58 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
I don't know what I am doing


So I have a VM setup, and trying to setup a dualboot Slackware and Solaris 11.2. I partitioned the drive like so:

Code:
/dev/sda1  ext4     10GB
/dev/sda2  xfs      25GB
/dev/sda3  Solaris  75GB
Sda1 and sda3 has a boot flag set.

I installed Solaris first, then installed Linux, and added the following in LILO:

Code:
other=/dev/sda3
label=Solaris
table=/dev/sda
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80
But I get this error when trying to update lilo:

Code:
Added Linux *
FATAL: First sector of /dev/sda3 does not have a valid boot signature.
So, how do I proceed to get lilo to boot my Solaris partition?
 
Old 01-20-2015, 11:55 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
When I installed Debian alongside my Slackware I learned from a member here that you have to tell LILO about the other os.
You'll have to edit your lilo configuration file. (lilo.conf)

The entry that I made in lilo.conf looked like this:
Code:
other = /dev/sdb
label = debian
In your case it would be /dev/sda3 and the label would be Solaris; which I see you have already done.
However as soon as you make that change you should re-run LILO right away if you haven't already.


This only worked for me because I installed Grub to the master boot record of Debian.
And booting Debian for the first time I had to run:
Code:
sudo os-prober
sudo update-grub

I noticed that the EXT 4 partition that you created:
Code:
/dev/sda1  ext4     10GB
is only 10 GB's. Any time that I have created a EXT 4 journaling fs/partiton I created at least 20 GB as a base and than created a 1-2 GB swap partition. You may want to resize your partitions and include at least one swap for both os's to use.

This link should help:-
You can use the Solaris Boot Manager, LILO or Grub. I use Grub because I had trouble figuring our LILO-
http://www.tldp.org/HOWTO/Linux+Solaris-5.html

http://www.linuxquestions.org/questi...ng-4175468199/

Hope that helps:-
 
Old 01-21-2015, 04:06 AM   #3
edwardm
LQ Newbie
 
Registered: Mar 2014
Distribution: DragonFlyBSD
Posts: 18

Rep: Reputation: Disabled
If I remember correctly lilo nor grub that is supplied with linux is zfs(solaris 11 filesystem) aware, there for will not
be able to boot solaris 11.

old, may help:
https://github.com/zfsonlinux/pkg-zf...ware-GRUB-0.97
 
Old 01-21-2015, 06:19 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Well you can set MSDOS partition boot flag for one partition only.
 
Old 01-21-2015, 06:38 AM   #5
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
I don't know what I am doing
Like this?
 
Old 01-21-2015, 09:31 PM   #6
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
I guess I could go the other way and just let Grub be the default bootloader. Still I would have thought that since Solaris uses grub, it would have noticed the Linux partition and give me an option to have grub load it. Of course that would be too easy. I am not too familiar with grub though.
 
Old 01-21-2015, 10:04 PM   #7
edwardm
LQ Newbie
 
Registered: Mar 2014
Distribution: DragonFlyBSD
Posts: 18

Rep: Reputation: Disabled
Quote:
Originally Posted by Jeebizz View Post
I guess I could go the other way and just let Grub be the default bootloader. Still I would have thought that since Solaris uses grub, it would have noticed the Linux partition and give me an option to have grub load it. Of course that would be too easy. I am not too familiar with grub though.

Googled and found a few howtos that may help with solaris 11:

https://blogs.oracle.com/Hartmut/ent...cle_solaris_11

http://docs.oracle.com/cd/E36784_01/...html#scrolltoc
 
Old 01-21-2015, 11:38 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Jeebizz View Post
I guess I could go the other way and just let Grub be the default bootloader. Still I would have thought that since Solaris uses grub, it would have noticed the Linux partition and give me an option to have grub load it. Of course that would be too easy. I am not too familiar with grub though.
Yes, you could do that.
-:-To install the bootloader to the MBR of /dev/sda just run grub-install as "root"
Than run grub-update.-:-

When your installing another os you don't get the partition in the Grub Menu you can run:
Code:
grub-mkconfig
By doing that it invokes 'os-prober.'


If a new kernel is updated or installed you will have to update Grub.

**The GRUB Manual**
http://www.gnu.org/software/grub/man...l-boot-methods
 
Old 02-19-2015, 07:36 PM   #9
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Quote:
Originally Posted by Ztcoracat View Post
Yes, you could do that.
-:-To install the bootloader to the MBR of /dev/sda just run grub-install as "root"
Than run grub-update.-:-

When your installing another os you don't get the partition in the Grub Menu you can run:
Code:
grub-mkconfig
By doing that it invokes 'os-prober.'
Maybe this makes a difference but I installed the livecd version of Solaris11.2 , so when I run that command I just get 'command not found'
 
Old 02-19-2015, 09:29 PM   #10
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Well I decided to reinstall Solaris using the 'text' installer ISO. It seems that 11.2 you only get a text iso , unlike Solaris 10 where you have an iso that allows either a text option or install using CDE as the gui. Oh well, no big deal the install went fine but when I rebooted it just hangs and I get this:
Click image for larger version

Name:	Solaris.png
Views:	27
Size:	31.1 KB
ID:	17618

I guess if you install the text option it doesn't automatically go to a gui? Still it won't even go to a command-line either. What did I do wrong?
 
Old 02-19-2015, 09:43 PM   #11
edwardm
LQ Newbie
 
Registered: Mar 2014
Distribution: DragonFlyBSD
Posts: 18

Rep: Reputation: Disabled
Quote:
Originally Posted by Jeebizz View Post
Well I decided to reinstall Solaris using the 'text' installer ISO. It seems that 11.2 you only get a text iso , unlike Solaris 10 where you have an iso that allows either a text option or install using CDE as the gui. Oh well, no big deal the install went fine but when I rebooted it just hangs and I get this:

I guess if you install the text option it doesn't automatically go to a gui? Still it won't even go to a command-line either. What did I do wrong?

The solaris 11.2 livecd has a gui installer and desktop.
you can try make it continue booting to a login screen when it hangs by pressing ctrl+c keys.
 
Old 02-19-2015, 09:57 PM   #12
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
So the text installer is just that then, Solaris without a desktop?

Ok I will stick with the livecd, but that still does not solve my multiboot issue, since 'grub' or any grub-related command just doesn't exist.
 
Old 02-19-2015, 11:16 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Jeebizz View Post
So the text installer is just that then, Solaris without a desktop?

Ok I will stick with the livecd, but that still does not solve my multiboot issue, since 'grub' or any grub-related command just doesn't exist.
Is your multiboot all on one drive or 3 different drives?

-:- Slackware uses LILO so you will have to tell LILO about Solaris and any other distro's by editing the lilo.config file with a chain-load entry.-:- Than re-run LILO-

To solve the grub bootloader issue try running these commands as root and it should find your other distro and add it to your GNU Grub Menu-

Code:
os-prober
grub-update
 
Old 02-19-2015, 11:34 PM   #14
edwardm
LQ Newbie
 
Registered: Mar 2014
Distribution: DragonFlyBSD
Posts: 18

Rep: Reputation: Disabled
Quote:
Originally Posted by Jeebizz View Post
since 'grub' or any grub-related command just doesn't exist.
suggest to read bootadm man page, (however not sure if it will work
in a multiboot configuration).
within solaris grub file '/rpool/boot/grub/menu.conf'
add:

Code:
Title name_of_linux_distro Grub
    rootnoverify (hd0,1)     
    makeactive
    chainloader +1
If you do decide give it to try, it appears those settings need to be added to the solaris's menu.conf by
using the bootadm command and not editing the file directly with
an editor.

Last edited by edwardm; 02-20-2015 at 01:19 AM.
 
Old 02-20-2015, 12:00 AM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
@edwardm:

Do you think editing the grub.d file with a Solaris entry will help?


--:-This link might help- Jeebizz-:--
http://gotoanswer.stanford.edu/?q=Ho...x%2Csolaris%3F
 
  


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
Some Menu Icons don't appear in GNOME if I don't install KDE - How can I fix it? doraimom Linux - Desktop 4 04-14-2007 01:37 AM
Suse dontīt boot X; donīt ask for root passwd, YAST donīt work... carrie Linux - Newbie 4 10-08-2004 07:46 AM

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

All times are GMT -5. The time now is 07:15 AM.

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