LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Access Solrais OS from Linux GRUB (https://www.linuxquestions.org/questions/linux-software-2/access-solrais-os-from-linux-grub-609027/)

zillah 12-25-2007 07:06 AM

Access Solrais OS from Linux GRUB
 
http://www.linuxquestions.org/questi...ess-ce-602130/

I have installed 3 OSs on my laptop (Win2003, FC7, Solaris Express CE),I used to use Linux grub to boot these 3 OSs without any problem.

Linux OS screwed up for some reasons, I reinstalled linux OS without touching windows nor solrais, as a result I have to edit the Linux grub by adding the same 3 lines that were there before reinstalling linux,:
Code:

title Sun Solaris GRUB Boot Loader
    rootnoverify (hd0,3),,,,,solaris on sda4
    chainloader +1

http://www.sun.drydog.com/faq/9.html

I tried below as well
Code:

title Sun Solaris GRUB Boot Loader
    rootnoverify (hd0,3),,,,,solaris on sda4
    makeactive
    chainloader +1

Although I have added the lines above (which are same to the lines before reinstalling linux) , still Linux's grub can not boot solaris OS!!!!!

At this stage, I do not like to use Solaris's grub to boot linux OS.
http://www.sun.com/bigadmin/features...oot_laptop.jsp
Quote:

If you are going to install the Solaris 10 1/06 OS, navigate to /boot/grub/menu.lst. Make a note of the paths to the Linux partition, Linux kernel, and Linux RAM disk. You will need this information later.
The menu list should be something like this:
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-1.667.img

aus9 12-26-2007 07:09 PM

umm, so my attempts, in link, are a fail??

jlliagre 12-28-2007 12:08 PM

Quote:

Originally Posted by zillah (Post 3001112)
Although I have added the lines above (which are same to the lines before reinstalling linux) , still Linux's grub can not boot solaris OS!!!!!

Linux grub cannot boot Solaris but it should be able to chainload to Solaris Grub.

What is the error message, if any, you got ?

zillah 01-02-2008 02:58 AM

Quote:

What is the error message, if any, you got ?
No error, I will be forwarded to Linux's grub again.

jlliagre 01-02-2008 07:36 AM

Can you post your partition table ? ("fdisk -l" output)

zillah 01-02-2008 12:39 PM

Quote:

Can you post your partition table ? ("fdisk -l" output)
Code:

fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        5222    41945683+  7  HPFS/NTFS
/dev/sda2            5223        6497    10241437+  c  W95 FAT32 (LBA)
/dev/sda4  *        6498        8456    15735667+  bf  Solaris
/dev/sda3            8457      14593    49295452+  5  Extended
/dev/sda5            8457        8482      208813+  83  Linux
/dev/sda6            8483      11915    27575541  83  Linux
/dev/sda7          11916      14465    20482843+  83  Linux
/dev/sda8          14466      14592    1020096  82  Linux swap / Solaris


jlliagre 01-02-2008 05:04 PM

Your primary partitions 3 and 4 seem to have been reordered. That may explain the problem.

aus9 01-02-2008 07:27 PM

I suggest make your system more simple

part 1 primary ntfs
part 2 primary solaris
part 3 linux
part 4 linux swap

if fat32 was for sharing of ms and linux..make part 1 available to be readable and or writeable in your linux fstab....writeable is now possible with ntfs-3g

jlliagre 01-02-2008 07:37 PM

Quote:

Originally Posted by aus9 (Post 3009102)
I suggest make your system more simple

part 1 primary ntfs
part 2 primary solaris
part 3 linux
part 4 linux swap

Beware that if partition 4 is a primary partition, you need to manually change its id to something else than 0x82 otherwise Solaris will probably be in trouble.
Quote:

if fat32 was for sharing of ms and linux..make part 1 available to be readable and or writeable in your linux fstab....writeable is now possible with ntfs-3g
There is no ntfs write support with Solaris so the fat32 partition is still relevant if sharing is expected from the three installed O/Ses. I personally prefer to use an USB memory device for that use instead of wasting a primary partition.

zillah 01-02-2008 08:10 PM

Quote:

Your primary partitions 3 and 4 seem to have been reordered. That may explain the problem.
Sorry for the previous reply that I have posted,showing that line for sda4 before sda3,,,,,I do not how that happened ,,,,,please see the correct one below :

[root@localhost ~]# fdisk -l
Code:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        5222    41945683+  7  HPFS/NTFS
/dev/sda2            5223        6497    10241437+  c  W95 FAT32 (LBA)
/dev/sda3            8457      14592    49287420    5  Extended
/dev/sda4  *        6498        8456    15735667+  bf  Solaris
/dev/sda5            8457        8482      208813+  83  Linux
/dev/sda6            8483      11915    27575541  83  Linux
/dev/sda7          11916      14465    20482843+  83  Linux
/dev/sda8          14466      14592    1020096  82  Linux swap / Solaris
Partition table entries are not in disk order
[root@localhost ~]#


[root@localhost ~]# fdisk /dev/sda
Code:

The number of cylinders for this disk is set to 14593.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        5222    41945683+  7  HPFS/NTFS
/dev/sda2            5223        6497    10241437+  c  W95 FAT32 (LBA)
/dev/sda3            8457      14592    49287420    5  Extended
/dev/sda4  *        6498        8456    15735667+  bf  Solaris
/dev/sda5            8457        8482      208813+  83  Linux
/dev/sda6            8483      11915    27575541  83  Linux
/dev/sda7          11916      14465    20482843+  83  Linux
/dev/sda8          14466      14592    1020096  82  Linux swap / Solaris

Partition table entries are not in disk order

Command (m for help):


zillah 01-02-2008 08:32 PM

http://www.linuxquestions.org/questi...in-fc7-602167/
according to the above thread the origin partition table was like this
Code:

[root@localhost ~]# fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        5222    41945683+  7  HPFS/NTFS
/dev/sda2            5223        6497    10241437+  c  W95 FAT32 (LBA)
/dev/sda3            6498        8456    15735667+  bf  Solaris
/dev/sda4            8457      14593    49295452+  5  Extended
/dev/sda5            8457        8482      208813+  83  Linux
/dev/sda6            8483      11915    27575541  83  Linux
/dev/sda7          11916      14465    20482843+  83  Linux
/dev/sda8          14466      14592    1020096  82  Linux swap / Solaris

When I reinstalled solaris (deleted its partition and recreated it again) the partition table changed to the below : (I guess this is normal)
Code:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        5222    41945683+  7  HPFS/NTFS
/dev/sda2            5223        6497    10241437+  c  W95 FAT32 (LBA)
/dev/sda3            8457      14592    49287420    5  Extended
/dev/sda4  *        6498        8456    15735667+  bf  Solaris
/dev/sda5            8457        8482      208813+  83  Linux
/dev/sda6            8483      11915    27575541  83  Linux
/dev/sda7          11916      14465    20482843+  83  Linux
/dev/sda8          14466      14592    1020096  82  Linux swap / Solaris
Partition table entries are not in disk order

Every thing was working fine (I would have been able to boot all threre OSs by using Linux grub) , till I reinstalled Linux recently because there was a problem with its Xorg11.

Now I can boot Windows and Linux by using Linux grub, but not Solaris

zillah 01-02-2008 10:21 PM

Under Linux fdisk .dev/sda and select the expert options (x) and then select fix partition order f), the order of the partition tables in like below.
[root@localhost ~]# fdisk -l
Code:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        5222    41945683+  7  HPFS/NTFS
/dev/sda2            5223        6497    10241437+  c  W95 FAT32 (LBA)
/dev/sda3  *      6498        8456    15735667+  bf  Solaris
/dev/sda4            8457      14593    49295452+  5  Extended
/dev/sda5            8457        8482      208813+  83  Linux
/dev/sda6            8483      11915    27575541  83  Linux
/dev/sda7          11916      14465    20482843+  83  Linux
/dev/sda8          14466      14592    1020096  82  Linux swap / Solaris


aus9 01-02-2008 11:18 PM

jlliagre

I have never installed solaris but I know you can chainload to solaris or alternatively use grub hide commands to hide partitions after partition 2?

jlliagre 01-03-2008 12:38 AM

After fixing the partition order, did you try
Code:

rootnoverify (hd0,2)
?

zillah 01-03-2008 12:40 AM

Quote:

rootnoverify (hd0,2)
Yes, I did


All times are GMT -5. The time now is 01:12 AM.