While this is not directly related to your issue, it may have some information 
that you can use.

I attempted a triple-boot of Windows XP, Linux Mint 8 (Based on Debian, which 
is also the base for Ubuntu) and OpenSolaris 2009.06 on my Toshiba Satellite 
M115-S3094.

I struggled for many days and read quite a few articles.  As of this morning, I 
have got all three to boot and run successfully.

This will not describe all of the trials and tribulations, but rather the last 
stage of getting this to work.

The first task I performed was to download and burn an iso image of gpartd to 
allow me to start off with the disk partitioned the way I needed.

By needed, I mean that the sequence of partitions plays a major impact with 
Grub working properly.  While reading the available documents, I found that 
OpenSolaris is required to be installed last because it has a modified Grub to 
allow for the booting off of ZFS filesystems.  Then the other obscure item I 
found was that OpenSolaris is required to be installed in front of the Linux 
Swap partition.

Back to gpartd, I partitioned my harddrive for the first partition to be used 
for Windows XP, followed by a partition for OpenSolaris, then the Linux Swap 
and finally the Linux partition.

Once the drive was partitioned the way I wanted, I then installed Windows XP on 
the first partition.  After it installed, I verified that it continued to work 
as expected.  It did!

The next step was to install Linux Mint 8 which was installed to the 4th 
partition.  Upon its reboot, I was able to boot to it and after another reboot 
verified that I could still get into Windows.  Perfect, so far this is going 
well.  I booted back to Linux Mint and copied its grub.cfg to a USB stick.  
This will be needed to be added to the OpenSolaris Grub, menu.lst.

Next was to install OpenSolaris, again this is last because of the modified 
Grub and into the second partition.  Once the installation was complete, and I 
rebooted, the Grub Menu only listed Windows and OpenSolaris, as expected.

I mounted the USB drive so that I could get the Linux Mint grub information.  
Then, made a copy of the /rpool/boot/grub/menu.lst for backout purposes.  Then 
proceeded to modify the menu.lst.  The grub info that I copied to the menu.lst 
was just the data for the Linux Mint:

### BEGIN /etc/grub.d/10_linux ###
menuentry "Linux Mint 8 Helena, linux 2.6.31-14-generic (/dev/sda4)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        set quiet=1
        insmod ext2
        set root=(hd0,4)
        search --no-floppy --fs-uuid --set c03cdf3e-c7d1-4b50-bc21-9e632364f543
        linux   /boot/vmlinuz-2.6.31-14-generic 
root=UUID=c03cdf3e-c7d1-4b50-bc21-9e632364f543 ro   quiet splash
        initrd  /boot/initrd.img-2.6.31-14-generic
}
menuentry "Linux Mint 8 Helena, linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        insmod ext2
        set root=(hd0,4)
        search --no-floppy --fs-uuid --set c03cdf3e-c7d1-4b50-bc21-9e632364f543
        linux   /boot/vmlinuz-2.6.31-14-generic 
root=UUID=c03cdf3e-c7d1-4b50-bc21-9e632364f543 ro single 
        initrd  /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

Since this is not in the format required by the OpenSolaris Grub, I modified it 
to the following:

### BEGIN /etc/grub.d/10_linux ###
title Linux Mint 8 Helena, linux 2.6.31-14-generic (/dev/sda4)
        root (hd0,3)
        kernel  /boot/vmlinuz-2.6.31-14-generic 
root=UUID=c03cdf3e-c7d1-4b50-bc21-9e632364f543 ro   quiet splash
        initrd  /boot/initrd.img-2.6.31-14-generic
}
title Linux Mint 8 Helena, linux 2.6.31-14-generic (recovery mode)
        root (hd0,3)
        kernel  /boot/vmlinuz-2.6.31-14-generic 
root=UUID=c03cdf3e-c7d1-4b50-bc21-9e632364f543 ro single 
        initrd  /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

I then saved this newly modifed menu.lst and rebooted.

After the reboot, I saw the entries I expected.  Then the tests, first can I 
boot into OpenSolaris?  This went well.  Then another reboot and selected 
Windows, it also went well.  Finally the test to see if I can boot into Linux 
Mint, voila!, it worked!

So, in a nutshell, and so that you do not need to research as long and hard as 
I did, here are the key items to remember:

1.  OpenSolaris needs to be installed last (due to modifications to support ZFS)

2.  OpenSolaris needs to be installed on a partition in front of the Linux Swap 
partition.  My layout:
   sda1         sda2               sda3       sda4     <------ disk partition 
names
|----------|-------------------|----------|---------------|
|   XP      |  OpenSolaris  |  SWAP  | Linux Mint |
|----------|-------------------|----------|---------------|
   (hd0,0)    (hd0,1)             (hd0,2)    (hd0,3)    <------------- Grub 
partition names

3.  Modify the grub.cfg to the format required for OpenSolaris' Grub (remember 
that Grub's numbering of partitions starts at 0 so when you install Linux on 
the 4th partition its partition for Grub is hd0,3 not 4)

That's all I had to do to get this working.  I hope you will be able to extract 
the key items that will help you to resolve your issue.
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to