LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Solaris 11 + CentOS 6 dual boot , how to make it work (http://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris-11-centos-6-dual-boot-how-to-make-it-work-4175437594/)

routers 11-17-2012 12:18 PM

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

jlliagre 11-17-2012 02:07 PM

Quote:

Originally Posted by routers (Post 4831460)
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


routers 11-17-2012 10:57 PM

thanks jlliagre

its worked, i will provide the detail later

routers 11-17-2012 11:25 PM

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


All times are GMT -5. The time now is 08:19 AM.