LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-25-2007, 07:06 AM   #1
zillah
Member
 
Registered: Oct 2004
Posts: 536

Rep: Reputation: 30
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

Last edited by zillah; 12-25-2007 at 11:42 PM.
 
Old 12-26-2007, 07:09 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
umm, so my attempts, in link, are a fail??
 
Old 12-28-2007, 12:08 PM   #3
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 zillah View Post
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 ?
 
Old 01-02-2008, 02:58 AM   #4
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
What is the error message, if any, you got ?
No error, I will be forwarded to Linux's grub again.
 
Old 01-02-2008, 07:36 AM   #5
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
Can you post your partition table ? ("fdisk -l" output)
 
Old 01-02-2008, 12:39 PM   #6
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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
 
Old 01-02-2008, 05:04 PM   #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
Your primary partitions 3 and 4 seem to have been reordered. That may explain the problem.
 
Old 01-02-2008, 07:27 PM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 01-02-2008, 07:37 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 aus9 View Post
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.
 
Old 01-02-2008, 08:10 PM   #10
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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):

Last edited by zillah; 01-02-2008 at 08:12 PM.
 
Old 01-02-2008, 08:32 PM   #11
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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
 
Old 01-02-2008, 10:21 PM   #12
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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
 
Old 01-02-2008, 11:18 PM   #13
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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?
 
Old 01-03-2008, 12:38 AM   #14
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
After fixing the partition order, did you try
Code:
rootnoverify (hd0,2)
?
 
Old 01-03-2008, 12:40 AM   #15
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
rootnoverify (hd0,2)
Yes, I did
 
  


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
Formatted Over grub now i can't access my linux partition Mutch Linux - Newbie 5 11-19-2006 03:21 PM
I can't install grub and i can no longer access linux Dark Templar Linux - General 16 06-23-2006 02:26 AM
Grub in MBR no Linux installed can't access hard drive bookmonger Linux - Software 13 02-14-2006 07:06 AM
how to reinstall grub with no linux access or boot disk the ytse cem Linux - Newbie 4 02-08-2006 11:05 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:41 AM.

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