LinuxQuestions.org
Review your favorite Linux distribution.
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-17-2012, 01:18 PM   #1
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 773
Blog Entries: 6

Rep: Reputation: 75
Solaris 11 + CentOS 6 dual boot , how to make it work


Hi , today my solaris 11 goes crazy , its create so many core
so i decide to install Solaris 11 with CentOS 6 as second boot

first i install CentOS 6 and next i install Solaris 11, install Solaris goes right without touching CentOS partitions

but once Solaris 11 boot up, there is no any info about CentOS in Solaris 11 grup.conf

i am trying to edit /rpool/boot/grub/menu.1st
I added this way at the end of the line

Code:
title CentOS (2.6.32-279.14.1.el6.i686)
       	root (hd0,1)
        kernel /boot/vmlinuz-2.6.32-279.14.1.el6.i686 ro root=UUID=a1af40e5-04f$
        initrd /boot/initramfs-2.6.32-279.14.1.el6.i686.img
        make active
        chanloader +1
        boot
but not workable

here is my CentOS 6 grub.conf


Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,1)
#          kernel /boot/vmlinuz-version ro root=/dev/sda2
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-279.14.1.el6.i686)
	root (hd0,1)
	kernel /boot/vmlinuz-2.6.32-279.14.1.el6.i686 ro root=UUID=a1af40e5-04fb-496c-96c4-7a0e3519169d rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
	initrd /boot/initramfs-2.6.32-279.14.1.el6.i686.img
is there a way to settle this issue

thanks a lot

regards

Routers
 
Old 11-17-2012, 03:07 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by routers View Post
i am trying to edit /rpool/boot/grub/menu.1st
I added this way at the end of the line

Code:
title CentOS (2.6.32-279.14.1.el6.i686)
           root (hd0,1)
        kernel /boot/vmlinuz-2.6.32-279.14.1.el6.i686 ro root=UUID=a1af40e5-04f$
        initrd /boot/initramfs-2.6.32-279.14.1.el6.i686.img
        make active
        chanloader +1
        boot
but not workable
Chainloading is the way to go but there is a typo (chanloader vs chainloader) and you don't need the kernel and initrd commands, just something like:

Code:
Title Centos Grub
  rootnoverify (hd0,1)
  makeactive
  chainloader +1
 
Old 11-17-2012, 11:57 PM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 773
Blog Entries: 6

Original Poster
Rep: Reputation: 75
thanks jlliagre

its worked, i will provide the detail later
 
Old 11-18-2012, 12:25 AM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 773
Blog Entries: 6

Original Poster
Rep: Reputation: 75
here goes

#####CentOS

df -h output
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              99G  712M   93G   1% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm
/dev/sda1              73M   33M   36M  48% /boot
here is /sbin/fdisk -l
Code:
isk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008374c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          10       76800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              10       13064   104857600   83  Linux
/dev/sda3           13064       13325     2097152   82  Linux swap / Solaris
/dev/sda4           13326       30401   137162970   bf  Solaris
I set MBR at /dev/sda1 or /dev/sda ( forgotten, sorry maybe need to reproduce) , solaris install in /dev/sda4, first install linux then second install Solaris

and here is grub.conf
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sda2
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda1
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-279.el6.i686)
	root (hd0,0)
	kernel /vmlinuz-2.6.32-279.el6.i686 ro root=UUID=e49bb085-fa9a-4bb7-8a46-ace9fc8d5992 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
	initrd /initramfs-2.6.32-279.el6.i686.img
title Solaris 11
	rootnoverify (hd0,4)
	makeactive
	chainloader +1
###Solaris 11
Below is Solaris 11 menu.1st
Code:
noc@sol-11:~$ cat /rpool/boot/grub/menu.lst 
# default menu entry to boot
default 0
#
# menu timeout in second before default OS is booted
# set to -1 to wait for user input
timeout 30
#
# To enable grub serial console to ttya uncomment the following lines
# and comment out the splashimage line below
# WARNING: do not enable grub serial console when BIOS console serial
#       redirection is active.
#   serial --unit=0 --speed=9600
#   terminal serial
#
# Uncomment the following line to enable GRUB splashimage on console
splashimage /boot/grub/splash.xpm.gz
foreground 343434
background F7FBFF
#
# To chainload another OS
#
# title Another OS
#       root (hd<disk no>,<partition no>)
#       chainloader +1
#
# To chainload a Solaris release not based on GRUB:
#
# title Solaris 9
#       root (hd<disk no>,<partition no>)
#       chainloader +1
#       makeactive
#
# To load a Solaris instance based on GRUB:
#
# title Solaris <version>
#       bootfs <poolname>/ROOT/<BE_name>
#       kernel /platform/i86pc/kernel/amd64/unix
#       module /platform/i86pc/amd64/boot_archive

#
# To override Solaris boot args (see kernel(1M)), console device and
# properties set via eeprom(1M) edit the "kernel" line to:
#
#   kernel /platform/i86pc/kernel/amd64/unix <boot-args> -B prop=value,...
#
#
#
title Oracle Solaris 11 11/11
bootfs rpool/ROOT/solaris
kernel$ /platform/i86pc/kernel/amd64/unix -B $ZFS-BOOTFS,console=graphics
module$ /platform/i86pc/amd64/boot_archive


title Centos Grub
  rootnoverify (hd0,0)
  makeactive
  chainloader +1
ok that's all

thanks mate

Routers
 
  


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
[SOLVED] Dual Boot Slackware with CentOS using CentOS GRUB frankbell Slackware 9 10-26-2011 12:04 PM
Dual Drive/ Dual Boot > Open Solaris 2008.05 + Windows XP SP2 starwarp2000 General 2 07-14-2008 07:01 AM
need to dual boot centos 5.1 with xp but centos is already installed. extendedping Linux - Software 4 05-13-2008 09:40 PM
wishes to all,,how to make dual boot linux-rhel-4,win2003 and solaris-9 anandabalan Linux - General 2 06-05-2006 04:15 PM


All times are GMT -5. The time now is 06:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration