Have you checked the Grub How-to at <http://geodsoft.com/howto/dualboot/grub.htm>.

Using the above I have been able to do something similar, using OpenBSD, FreeBSD, RH Linux WS, and SuSE 9.2. I used fdisk under linux to partition the disk. I think you may be able to extrapolate from here, I think the important bit is to use fdisk to set the correct Slice/Partition type for Solaris and use the Grub root, makeactive and chainloader commands.

The partitioning reported by fdisk looks something like this:

sudo /sbin/fdisk /dev/hda
This disk has both DOS and BSD magic.
Give the 'b' command to go to BSD mode.

The number of cylinders for this disk is set to 4865.
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/hda: 40.0 GB, 40019582464 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       973   7815591   a6  OpenBSD
/dev/hda2           974       986    104422+  83  Linux
/dev/hda3           987      1959   7815622+  a5  FreeBSD
/dev/hda4          1960      4865  23342445    5  Extended
/dev/hda5          1960      2469   4096543+  83  Linux
/dev/hda6          2470      2660   1534176   83  Linux
/dev/hda7          2661      2799   1116486   82  Linux swap
/dev/hda8          2800      2863    514048+  83  Linux
/dev/hda9          2864      2927    514048+  83  Linux
/dev/hda10         2928      2991    514048+  83  Linux
/dev/hda11         2992      3055    514048+  83  Linux
/dev/hda12         3056      3251   1574338+  83  Linux
/dev/hda13         3252      3264    104391   83  Linux
/dev/hda14         3265      3328    514048+  83  Linux
/dev/hda15         3329      3981   5245191   83  Linux

Command (m for help):

My grub.conf looks like this:

sudo cat /boot/grub/grub.conf
# 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,1)
# kernel /vmlinuz-version ro root=/dev/hda10
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Enterprise Linux WS (2.4.21-27.0.1.EL)
root (hd0,1)
kernel /vmlinuz-2.4.21-27.0.1.EL ro root=LABEL=/
initrd /initrd-2.4.21-27.0.1.EL.img


title Red Hat Enterprise Linux WS (2.4.21-4.EL)
        root (hd0,1)
        kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
        initrd /initrd-2.4.21-4.EL.img

title SuSE Professional Linux 9.2 (2.6.8-24.10-default)
        root (hd0,12)
        kernel /vmlinuz ro root=/dev/hda15
        initrd /initrd

title OpenBSD 3.6
        root (hd0,0)
        makeactive
        chainloader +1

title FreeBSD 5.0
        root (hd0,2)
        makeactive
        chainloader +1

I'm sure this isn't the most elegant, but it does what I want.

Cheers
Shane

On 3 May 2005, at 1:51 PM, Rowling, Jill wrote:

Google came up with a few suggestions - I haven't tried a dual boot myself
though:
http://supportforum.sun.com/sunos/index.php?t=msg&goto=963&rid=0


Regards,

Jill.

<<Snip>>

-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to