LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-16-2007, 11:30 AM   #1
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Rep: Reputation: 31
Help required installing Solaris 10 as dual boot.


I'm a complete Solaris and I'm trying to install Solaris alongside Debian Etch. (Hopefully without losing my Debian Install.)

However, the Solaris installer doesn't like my Linux partitions, and wants to nuke the whole disc. I have my documents backed up, I just don't want to have to go through re-installing Debian and tweaking it back into what I had before.

Currently my disc is partitioned as below:

Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device | Boot |    Start  |       End  |    Blocks  | Id | System
/dev/hda1 |  *   |        1  |       608  |   4883728+ | 83 | Linux
/dev/hda2 |      |      609  |      1958  |  10843875  | be | Solaris boot
/dev/hda3 |      |     1959  |      2113  |   1245037+ | 82 | Linux swap / Solaris
/dev/hda4 |      |     2114  |      9729  |  61175520  |  5 | Extended
/dev/hda5 |      |     2114  |      5936  |  30708216  | 83 | Linux
/dev/hda6 |      |     5937  |      9729  |  30467241  | bf | Solaris
The highlighted partitions are my Debian install and my documents, respectively.

I don't think this is quite right, so I'm looking for some guidance.

Last edited by hacker supreme; 06-16-2007 at 11:35 AM.
 
Old 06-16-2007, 02:15 PM   #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
You are planning to install Solaris on hda6. Unfortunately Solaris requires a primary partition so the only choice you have with your current partitioning is to install Solaris on hda2. Solaris 10 and newer make no use of a boot partition (be), grub is used and the boot data is on the ufs file-system.

Last edited by jlliagre; 06-16-2007 at 02:16 PM.
 
Old 06-16-2007, 02:17 PM   #3
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Ah, OK.
So, if I understand you correctly, I should change hda2 to type 'bf' and install on that.
If that's all then I have no problem with that.
 
Old 06-16-2007, 02:31 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
Yes. Perhaps is it not even necessary. You should just be able to tell the installer to use the second partition.
 
Old 06-16-2007, 03:13 PM   #5
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Ok. I've renamed hda2, because (IIRC) It only shows the first four partitions in the installer, and I'm going to go install.

Wish me luck.
 
Old 06-19-2007, 03:25 PM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
You'll need to add Debian to your grub menu.lst in Solaris because the Solaris installer replaces your MBR a la winbloze.
 
Old 06-20-2007, 12:48 AM   #7
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
Quote:
Originally Posted by Randux
You'll need to add Debian to your grub menu.lst in Solaris because the Solaris installer replaces your MBR a la winbloze.
It has no other choice, has it ?
 
Old 06-20-2007, 08:32 AM   #8
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by jlliagre
It has no other choice, has it ?
If you're saying "what else could it do?" then I suppose I have to agree with you because Solaris seems to have been engineered to have an unhealthy dependency on a customised version of Grub.

If it weren't for that, the installer could give you a choice not to install a bootloader like installers for other UNIX-like OS (FreeBSD, OpenBSD, NetBSD, DragonFly BSD) and all Linux distros do. Then you wouldn't automatically lose the ability to boot your pre-existing OS after installing Solaris.

Since it seems to be the standard to be able to choose not to update the MBR and only Winbloze and Solaris are the exceptions, it's worth pointing this out to someone asking questions on multibooting with Solaris. That was the point I was trying to make.
 
Old 06-20-2007, 02:35 PM   #9
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
Quote:
Originally Posted by Randux
If you're saying "what else could it do?" then I suppose I have to agree with you because Solaris seems to have been engineered to have an unhealthy dependency on a customised version of Grub.
What do you mean by "unhealthy" ?

What's wrong with picking Grub, an open source boot loader which is not bound to a single O/S and add the capability to directly boot Solaris ufs (and now ZFS) to it ?
Quote:
If it weren't for that, the installer could give you a choice not to install a bootloader like installers for other UNIX-like OS (FreeBSD, OpenBSD, NetBSD, DragonFly BSD) and all Linux distros do. Then you wouldn't automatically lose the ability to boot your pre-existing OS after installing Solaris.
But won't you loose the ability to boot Solaris then ?
Quote:
Since it seems to be the standard to be able to choose not to update the MBR and only Winbloze and Solaris are the exceptions, it's worth pointing this out to someone asking questions on multibooting with Solaris. That was the point I was trying to make.
Are you sure Solaris installs grub in the MBR ? I thought Grub was installed on the Solaris partition and that Solaris partition was made active, which indeed implies a minor but recoverable change in the MBR.
 
Old 06-21-2007, 08:03 AM   #10
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by jlliagre
What do you mean by "unhealthy" ?
It seems to me that Grub can only be booted directly by this customised version of Grub which Solaris patched to work with their OS. I think it would be better if you could boot Solaris with the bootloader of your choice like you can do with all the other UNIX-like OS (BSD) and Linux distros I mentioned.

Quote:
Originally Posted by jlliagre
What's wrong with picking Grub, an open source boot loader which is not bound to a single O/S and add the capability to directly boot Solaris ufs (and now ZFS) to it ?
Grub is certainly in the top 2 bootloaders in my view but if I understand correctly, Solaris has their own patched version of Grub and implies that you MUST use Grub to boot Solaris. I didn't see that any BSD or Linux distro say that you MUST use a certain bootloader to boot their OS.

Quote:
Originally Posted by jlliagre
But won't you loose the ability to boot Solaris then ?
No, I tested this in LILO. What you have to do is boot Solaris as chainloader entry like you do with Windows or an OS that LILO can't boot (or you don't want, for some reason) to boot directly. As long as Grub is installed in the partition superblock this works fine, but it's not very pretty since you get the LILO menu for all your OS and then you get a Grub menu when you select Solaris. In all other chainloading situations I've seen (which includes all of the BSD, Winbloze, and Linux) you can boot everything in one hop: even though LILO does give control to the 2nd stage bootloader on the superblock when he boots a chainloaded OS the user doesn't see it. All he has to do is select it from the LILO menu. But with Solaris, because of the dependence on Grub, you have to go through two bootloader menus.

Quote:
Originally Posted by jlliagre
Are you sure Solaris installs grub in the MBR ? I thought Grub was installed on the Solaris partition and that Solaris partition was made active, which indeed implies a minor but recoverable change in the MBR.
You may be correct, I can't remember. My PC that I had Solaris on died so I can't check. I think I remember that it updated the MBR but I cannot be sure.
 
Old 06-21-2007, 12:17 PM   #11
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
Quote:
Originally Posted by Randux
It seems to me that Grub can only be booted directly by this customised version of Grub which Solaris patched to work with their OS. I think it would be better if you could boot Solaris with the bootloader of your choice like you can do with all the other UNIX-like OS (BSD) and Linux distros I mentioned.
It would be great if every boot loader would be able to boot Solaris, unfortunately, they can't. Solaris used to have its own proprietary boot loader, and I think it was a smart move to substitute it by the most flexible available (GRUB).
Quote:
Grub is certainly in the top 2 bootloaders in my view but if I understand correctly, Solaris has their own patched version of Grub and implies that you MUST use Grub to boot Solaris. I didn't see that any BSD or Linux distro say that you MUST use a certain bootloader to boot their OS.
Only a boot loader that support your O/S can boot it, there is no generic way to boot an O/S, and in particular no generic way to access a file on a given file-system. Neither the stock GRUB nor Lilo can boot Solaris and this cannot be changed on the O/S side. A boot loader must be aware of the target O/S to be able to boot it. There is no other choice.
Quote:
In all other chainloading situations I've seen (which includes all of the BSD, Winbloze, and Linux) you can boot everything in one hop: even though LILO does give control to the 2nd stage bootloader on the superblock when he boots a chainloaded OS the user doesn't see it. All he has to do is select it from the LILO menu. But with Solaris, because of the dependence on Grub, you have to go through two bootloader menus.
Actually, you can setup a system where the main bootloader is Lilo which pass the control to Solaris GRUB thus booting it directly. You simply need to set the timeout to 0 in the Solaris boot menu.lst.
I personally prefer to have Solaris grub being the first called, as it can boot every O/S around, well perhaps not Mac OS/X but I have no Mac anyway.
Quote:
You may be correct, I can't remember. My PC that I had Solaris on died so I can't check. I think I remember that it updated the MBR but I cannot be sure.
I found this statement on an interesting blog with some details about Grub enhancements made by the Solaris engineering ( http://blogs.sun.com/szhou/entry/sol...b_enhancements ) :
The standard installation procedure does not put GRUB stage1 in the master boot sector.
 
  


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
Changes required for 1.0x vs. 2.xx puppy dual boot? Jim_B Puppy 3 03-22-2007 11:33 PM
Parition configuration required for dual-boot stefan1 Fedora - Installation 2 11-16-2006 06:00 AM
Solaris and Ubuntu dual-boot linux-rulz Solaris / OpenSolaris 2 06-19-2005 05:53 AM
how to dual boot solaris 8 and linux 8 sridhar11 Solaris / OpenSolaris 3 10-25-2004 02:26 AM
Dual boot for Redhat 9 and Solaris 9 boot manager problems steve_2010 Red Hat 1 01-30-2004 09:14 PM

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

All times are GMT -5. The time now is 09:50 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