LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-10-2011, 04:57 AM   #1
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
Dual boot, now upgrading WinXP to Win7. GRUB problems?


I am using dual boot, Solaris 11 Express and WinXP. Now I want to upgrade WinXP to Win7. How do I do that? What are the steps?

If I format the WinXP partition and make a clean install of Win7, it will over write the GRUB. This means I can not access Solaris anymore. I must somehow fix GRUB. How to do this? Does it suffice to activate the Solaris partition in Win7 - and GRUB will automatically load?
 
Old 03-10-2011, 05:23 AM   #2
spoovy
Member
 
Registered: Feb 2010
Location: London, UK
Distribution: Scientific, Ubuntu, Fedora
Posts: 373

Rep: Reputation: 43
A new Win7 installation won't pick up Solaris, and I wouldn't imagine success from anything you can do from within Win7. MS go out of their way to make sure Windows won't play with other vendors' OS's.

If it were a linux OS rather than solaris you could intall Win7, then boot into a linux live environment, mount --bind your /proc and /dev filesystems from the installed OS, chroot into the new environment, then reinstall grub into the MBR. Grub would then pick up both OS's and you're done. I have done this before and it does work (with linux).

Whether solaris is the same I don't know. If it has the same arrangement of /proc and /dev filesystems etc then this should work. I would think ..

Last edited by spoovy; 03-10-2011 at 05:26 AM.
 
Old 03-13-2011, 11:42 AM   #3
asyropoulos
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 4
Quote:
Originally Posted by spoovy View Post
If it were a linux OS rather than solaris you could intall Win7, then boot into a linux live environment, mount --bind your /proc and /dev filesystems from the installed OS, chroot into the new environment, then reinstall grub into the MBR. Grub would then pick up both OS's and you're done. I have done this before and it does work (with linux).

Whether solaris is the same I don't know. If it has the same arrangement of /proc and /dev filesystems etc then this should work. I would think ..
Well it does! Here are the steps one has to follow:

1. Start OpenSolaris/OpenIndiana LiveCD and select second "text console" option.

2. Select Language (not important!).

3. Login - Live CD user is "jack" and password "jack", then switch to
root "su -", password is "opensolaris" or "openindiana" depending on which
LiveCD you have used to boot.

4. Check if see what is the name of the "basic" zfs pool with

# zpool import

Remember that the default name is "rpool"

5. Import this pool with

# zpool import -f rpool

6. Find the active boot environment (BE) with

# beadm list.

You will something like the following table:

BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
opensolaris-7 NR / 72.53G static 2010-12-18 15:38


7. Mount the active BE under /a

mkdir /a; beadm mount opensolaris-7 /a

8. Intsall grub with the following command:

# /a/sbin/installgrub /a/boot/grub/stage1 /a/boot/grub/stage2 /dev/rdsk/c0d0s0

To find out what is the device name of your hard disk partition use

# iostat -En
c13t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: ATA Product: WDC WD6400AAKS-6 Revision: 3B01 Serial No:
Size: 640,14GB <640135028736 bytes>

Here the name is c13t0d0 and so the device is /dev/rdsk/c13t0d0s0

9. Umount the BE with

# beadm unmount opensolaris-7; sync;sync

10. Reboot with

# init 6

That all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems creating a dual boot WinXP (Win7) & Fedora Core9 on HP XW6400 andygravity Linux - Newbie 3 09-13-2009 05:08 PM
GRUB / Dual boot problems Fedora 8 / WinXP macca12321 Fedora 7 06-08-2009 07:53 AM
Lenny Dual Boot w/ Win7 - GRUB problems! Leon W. Malinofsky Debian 3 02-25-2009 09:35 PM
GRUB / Dual boot problems Fedora 8 / WinXP murtaza_78 Linux - Newbie 9 01-05-2009 06:50 AM
winXP / FC 2.4 GRUB Dual boot problems again jjisnow Linux - Newbie 4 03-23-2004 09:30 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:11 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