This discussion is archived
4 Replies Latest reply: Nov 28, 2013 11:20 AM by 7de6ccf9-6170-4218-940a-a81e7f23be93 RSS

[Solved] Install Oracle's GRUB 1.99 with Windows Loader. Solaris 11.1 (x86) multi-boot solution.

7de6ccf9-6170-4218-940a-a81e7f23be93 Newbie
Currently Being Moderated

I installed Solaris 11.1 x86 on SATA disk using full disk installation option (c10d0 where c10d0s1 is rpool)

After installation finished I can not boot Solaris. No bootable device error.

 

Although I can start system via Solaris Live CD by choosing "Boot from Hard Disk" option.

So Live CD needs to run GRUB at the very first stage.

 

I'm trying to re-install GRUB and getting the error:

 

$ sudo installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c10d0s0

Device is EFI(GPT) labeled. Operation is not supported

Unable to gather device information for /dev/rdsk/c10d0s0


How to work this out, please?

I'm noob in Solaris and ZFS.

 

There some manuals, steps out there like running 'format -e' then something like 'zpool attach -f rpool c1t1d0s0 c1t2d0s0' and then run installgrub as above.

I choose only one hard disk to install and run Solaris. That commands seems not for me.

  • 1. Re: Install GRUB on EFI labeled disk Solaris 11.1 x86
    7de6ccf9-6170-4218-940a-a81e7f23be93 Newbie
    Currently Being Moderated

    Assumed Answered by mistake.

    Unanswered and unresolved yet.

  • 2. Re: Install GRUB on EFI labeled disk Solaris 11.1 x86
    cindys Pro
    Currently Being Moderated

    Can you provide the following info, please:

     

    # zpool status rpool

     

    Then, display the disk label for the device that is displayed above, probably

    some thing like this:

     

    # format c10d0

      >partition

    >print

     

    Thanks, Cindy

  • 3. Re: Install GRUB on EFI labeled disk Solaris 11.1 x86
    7de6ccf9-6170-4218-940a-a81e7f23be93 Newbie
    Currently Being Moderated

    I've played around with many installation options using GParted utility on Live CD as well to wipe out disk or force make it MBR (msdos-like in terms of GParted) before installation.

    Nothing helped actually.

     

    I was able to install Solaris in two ways. But loader always auto-installs on /dev/rdsk/c10d0s1 according to logs.

     

    All of them seems to be all right.

     

    FIRST WAY:

    # zpool status rpool

      pool: rpool

    state: ONLINE

      scan: none requested

    config:

        NAME      STATE    READ WRITE CKSUM

        rpool      ONLINE      0    0    0

          c10d0s1  ONLINE      0    0    0

    errors: No known data errors

     

    # format c10d0

    selecting c10d0

    NO Alt slice

    No defect list found

    [disk formatted, no defect list found]

    /dev/dsk/c10d0s1 is part of active ZFS pool rpool.

     

    partition> print

    Current partition table (unnamed):

    Total disk sectors available: 145209661 + 16384 (reserved sectors)

     

    Part      Tag    Flag    First Sector        Size        Last Sector

      0  BIOS_boot    wm              256      255.88MB          524287 

      1        usr    wm            524288      68.99GB          145208063 

      2   reserved    wm        145208064        8.00MB          145224447 

      3 unassigned    wm                0          0              0 

      4 unassigned    wm                0          0              0 

      5 unassigned    wm                0          0              0 

      6 unassigned    wm                0          0              0 



    SECOND WAY:

    # zpool status rpool

      pool: rpool

    state: ONLINE

      scan: none requested

    config:

        NAME     STATE     READ WRITE CKSUM

        rpool    ONLINE       0     0     0

          c10d0  ONLINE       0     0     0

    errors: No known data errors


    # format c10d0

    selecting c10d0

    NO Alt slice

    No defect list found

    [disk formatted, no defect list found]

    /dev/dsk/c10d0s1 is part of active ZFS pool rpool.

    partition> print

    Current partition table (original):

    Total disk sectors available: 145209661 + 16384 (reserved sectors)

     

    Part      Tag    Flag     First Sector         Size         Last Sector

      0  BIOS_boot    wm               256      256.00MB          524543   

      1        usr    wm            524544       68.99GB          145208158   

      2   reserved    wm         145208159        8.00MB          145224542   

      3 unassigned    wm                 0           0               0   

      4 unassigned    wm                 0           0               0   

      5 unassigned    wm                 0           0               0   

      6 unassigned    wm                 0           0               0   

     


    Minor changes between them. Second way is auto-partitioning performed by Solaris while installation process. Currently I am on a second configuration.

    Still no MBR. Disk marks as EFI while installation by default regardless on how I marked or wiped it before using GParted.

    And this default behavior doesn't make the system to boot promptly after installation (x86).

    Loader exists on c10d0s1, but it doesn't catch by start-up.

    I need Live CD to boot first, then choose "Boot from Hard Disk". This way always works but is annoying and inconvenient.

  • 4. Re: Install GRUB on EFI labeled disk Solaris 11.1 x86
    7de6ccf9-6170-4218-940a-a81e7f23be93 Newbie
    Currently Being Moderated

    I got it finally!

     

    The right solution was hidden in 'Installing on Bare Metal in a Multiboot Scenario' section of 'Taking Your First Steps with Oracle Solaris 11' guide.

     

    This is actually the only option should used on all x86 systems.

     

    As it sounds in the guide:

    "The Oracle Solaris 11 Live Media includes the GNOME Partition Editor, GParted, which you can use to partition your hard disk. You should create a partition of type Linux swap, which the Oracle Solaris installer will recognize.

    If Windows is your existing OS, the Oracle Solaris boot loader will recognize it without difficulty. If Linux is your existing OS, be sure to back up your GRUB configuration file, because you will need to add its entries to the Oracle Solaris GRUB menu."

     

    Standard GParted utility on Solaris 11 Live CD doesn't contain 'linux-swap' option! Ntfs only. That's not a joke, that's the fact! I don't know why, but there is full and the only ntfs-support! Despite of the fact, that nowadays many Windows systems using ReFS as well. And there is no standard FAT/FAT32 option by the way.

     

    So I need no burn another Live CD from GParted iso-image (http://gparted.sf.net) and create linux-swap primary partion with MBR on a disk.

     

    Then reformat partition as 'Solaris 2' during installation. Finish installation as per usual.

     

    Viola! GRUB 1.99 of Oracle Solaris 11.1 welcomes me and it recognize Windows 8 boot loader on another disk with ease.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points