Wednesday, August 26, 2009

DUAL BOOT OS with SOLARIS

Hi,

I installed SOLARIS recently in my Laptop.
SOLARIS is Free software from SUN

https://sdlc2d.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo;jsessionid=388758B4FFA04045AA4E4F893EE54656;jsessionid=388758B4FFA04045AA4E4F893EE54656


Need to follow some rules to Install SOLARIS
Since VISTA knows NTFS but SOLARIS can understand ZFS file system.
Please folow below steps to install or go throug the below link


http://linux.wordpress.com/2007/02/17/vista-and-solaris-express-dual-boot/


  1. You need to have a GParted or QTParted LiveCD (System Rescue CD) handy. You also need to have a FAT-formatted USB Key (readable on Windows).
  2. Boot the QTParted/GParted cd and create a primary partition for Windows but do not format it.
  3. Now boot from the Solaris Express DVD and install Solaris in another primary partition
  4. Boot into Solaris Express and run: installgrub -m /boot/grub/staqe1 /boot/grub/stage2 /dev/rdsk/c[...]s0. You can get the value for […] by executing df -h and seeing the device name for mountpoint “/”. This puts GRUB stage1 into MBR instead of mboot. This allows Solaris to boot even if the Solaris Partition is not active.
  5. Now dump a copy of the MBR to a file: dd if=/dev/dsk/c[...]p0 of=/solmbr bs=512 count=1
  6. Plugin the USB Key and copy the file solmbr to your USB Key
  7. Insert the GParted CD and reboot into GParted.
  8. Remove the “Boot” or “Active” flag from the Solaris Partition
  9. Reboot and start Windows Vista installation
  10. Once Vista is ready copy the file solmbr from the USB Key to C:\
  11. Now you have to use bcdedit.exe. But before you can use that you need Administrator rights. So in start menu right-click on the Command Window entry and select “run as Administrator” option.
  12. Execute the following in the command window:
    bcdedit /create {ntldr} /d "Solaris Express"
    bcdedit /set {ntldr} device boot
    bcdedit /set {ntldr} path \solmbr
    bcdedit /displayorder {ntldr} /addlast

    This creates a new Legacy boot entry in the BCD.
  13. Now you have to reboot and if all is well you will be presented with 2 boot options by the Vista bootloader. The Solaris Express option will bring up the GRUB menu next from where you can boot Solaris.

You have a system already having Vista and wish to install Solaris

  1. You need to have one free Primary partition. You also need an OpenSolaris LiveCD like BeleniX.
  2. If you have at least 10GB free space on disk then skip to step #5
  3. You may have multiple Windows logical drives and reclaim space by deleting one. Skip to step #5
  4. You have one big Windows partition and need to resize it. So do the following:
    • You need the QTParted LiveCD (System Rescue CD).
    • Defragment your drive
    • Reboot and run chkdsk
    • Boot into the QTParted cd and you will get a partitioning GUI. You can resize the Windows partition here
    • After resizing, boot into windows again and run chkdsk
  5. Now take a backup of the MBR. Boot from BeleniX and execute: dd if=/dev/dsk/c[...]p0 of=mbrback bs=512 count=1 and copy the file to a USB Key.
  6. Now install Solaris Express.
  7. Boot into Solaris Express and run: installgrub -m /boot/grub/staqe1 /boot/grub/stage2 /dev/rdsk/c[...]s0. You can get the value for […] by executing df -h and seeing the device name for mountpoint “/”. This puts GRUB stage1 into MBR instead of mboot. This allows Solaris to boot even if the Solaris Partition is not active.
  8. Dump a copy of the MBR to a file: dd if=/dev/dsk/c[...]p0 of=/solmbr bs=512 count=1
  9. Plugin the USB Key and copy the file solmbr to your USB Key
  10. Boot into the GParted/QTParted CD and remove the boot/active flag from the Solaris Partition and enable the boot/active flag for the Windows Partition.
  11. Now you need to restore the MBR backup you had taken in step #5. Boot again into BeleniX, insert the USB Key having the mbrback file and execute the following: dd if=/path/to/mbrback of=/dev/dsk/c[...]p0 bs=446 count=1. Note the bs=446. You need to only restore the Vista bootloader. If you restore the entire MBR you will lose the partition info for the Solaris Partition!
  12. Reboot and this time it should boot directly into Windows Vista
  13. Copy the file solmbr from the USB Key to C:\
  14. Now you have to use bcdedit.exe. But before you can use that you need Administrator rights. So in start menu right-click on the Command Window entry and select “run as Administrator” option.
  15. Execute the following in the command window:
    bcdedit /enum all | find "{ntldr}"
    If this command returns: identifier {ntldr}, that means you already have a legacy boot loader in your system. Do the following:
    bcdedit /copy {ntldr} /d "Solaris Express"This should display a message similar to:
    The entry was successfully copied to {bcfa924e-07e0-11db-9d86-accf6fd346a1}

    You need to use the long GUID value from the above message in the following commands wherever {GUID} is mentioned:
    bcdedit /set {GUID} device boot
    bcdedit /set {GUID} path \solmbr
    bcdedit /displayorder {GUID} /addlast

    If the earlier find command did not return any entry, you need to do the following to create a new legacy bootloader:
    bcdedit /create {ntldr} /d "Solaris Express"
    bcdedit /set {ntldr} device boot
    bcdedit /set {ntldr} path \solmbr
    bcdedit /displayorder {ntldr} /addlast

  16. Finally reboot your system and if everything is hunky dory you will get multiple boot options from the Vista Bootloader
Please contact me if you need more info : srampv@gmail.com

1 comment: