星期日 三月 30, 2008

Windows on Solaris10 && Repair Grub

Problem:


1.      We install Solaris b79 first and install Windows later in the lab, but the MBR was destroyed and the Grub does not work.


2.      Only one PC in the lab has CD-ROM and others does not have.


Solutions:


1.      Solution of PC with CD-ROM


1)     Prepare a Solaris X86 CD or DVD. Set up the machine boot from CD-ROM.


2)     Enter “c” into the grub in the grub form.


3)     Find the installed Solaris with following methods:


grub>find /platform/i86pc/multiboot


(hd0,1,a)--------------------output


OR:  grub>find /boot/grub/menu.lst


       (hd0,1,a)--------------------output


4)     Set the output to root device


grub>root (hd0,1,a)
Filesystem type is ufs, partition type 0xbf


5)     Set the boot and archive files and boot from grub


grub>kernel /platform/i86pc/kernel/unix
grub>module /platform/i86pc/boot_archive
grub>boot


So we can boot Solaris X86 from grub.


6)     After logining to Solaris, steup grub as root, and reboot


#cd /usr/sbin
#installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0d0s0


Output:


Updating master boot sector destorys existing boot managers (if any)
Continue (y/n)? y
stage1 written to partition 1 sector 0 (abs 31455270)
stage2 written to partition 1, 233 sectors starting at 50 (abs 31455320)
stage1 written to master boot sector


#reboot


7)     Successful….


2.      Solution of PC without CD-ROM


1) Set the Solaris partition active in Windows


   Find the partition Which Solaris installed and set it active.


2    2) Reboot the computer. Because the MBR has been changed, the Windows cannot be boot. But after it we can enter the grub.


3) After entering the grub, we can adopt the solution above from the third step to the seventh step. And we can relax after installed the grub again.


See: http://developers.sun.com.cn/blog/BingfengHong/entry/solaris10_x86_windows%E5%8F%8C%E7%B3%BB%E7%BB%9Fgrub%E5%BC%95%E5%AF%BC%E4%BF%AE%E5%A4%8D%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88

About

This is Chinese Functional CA Team Blog. Any suggestion is appreciated.

Search

Archives
« 四月 2014
星期日星期一星期二星期三星期四星期五星期六
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
今天