Installation of Ubuntu/Linux and Solaris(SXDE/OpenSolaris) - Dual Boot
By Avinash Joshi on Sep 13, 2008
Here, first I will tell you the problems that I faced after installing Ubuntu and OpenSolaris on my laptop.
PS: Please take a back up of your ubuntu grub into a pendrive (copy the file /boot/grub/menu.lst to a pendrive - Solaris doesnt yet automatically detect Linux OS)
I) Installing Ubuntu with Solaris(SXDE/OpenSolaris)
- After installing Ubuntu, my your hard drive looked like this:
Device Boot Size System
/dev/sda1 \* 50.37 GiB Linux
/dev/sda2 4.14 GiB Linux swap / Solaris
/dev/sda3 94.50 GiB Free
- Now to install Solaris, I need to create a "unformatted" partition. I did this using the GParted tool
- Here comes the most important hitch.
When you try to install SXDE/OpenSolaris, it detects the linux-swap partition as its default install drive.
The worst part being, If you tell Solaris to install on the "unformatted" partition that we created, it deletes the linux-swap partition and puts it into the "unallocated" pool!!!! ( great na - thats why i said it is fun to work with solaris - it has a lot of hassles)
You may think - "So what. Let me install Solaris on the "unformatted" drive and create a new linux-swap partition later." - You can do that, but provided you do necessary changes in the ubuntu's fstab and other related files. And the most important thing is that when you boot into Ubuntu, it detects Solaris partition as a linux-swap partition (Thats why it is written as - Linux swap / Solaris in front of /dev/sda2) and tries to write data into that partition. This screws up the solaris grub. and your system is not bootable anymore unless you re-install the grub using OpenSolaris live CD
So you put in your GParted CD, right click on the swap partition and click on "Swap Off". After doing this, format this swap patition into a new partition - say ntfs or fat32.
Now you are ready to install SXDE/Open Solaris.
Reboot and insert the installation media and go ahead. There wouldnt be any issues during the installation.
- All done???? Ok now boot into Solaris and edit /boot/grub/menu.lst and insert the ubunut's grub entry.
- Wait we are not done yet!!!
Now you need to reboot with the GParted CD and get back the linux-swap
So to do that, you boot with GParted CD and right click on /dev/sda2 and format it to linux-swap.
Click on Apply (on the top)
Now again right click on /dev/sda2 and click on "Swap On" which switches on the swap mode so that linux can use that partition as a swap partition.
- Now you can reboot and use both linux(ubuntu) and OpenSolaris.
So see you next time. My next post would be on triple boot - ubuntu, SXDE and OpenSolaris
Until then, Cheers!!