By bingfenghong on 三月 30, 2008
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.
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:
OR: grub>find /boot/grub/menu.lst
4) Set the output to root device
Filesystem type is ufs, partition type 0xbf
5) Set the boot and archive files and boot from grub
So we can boot Solaris X86 from grub.
6) After logining to Solaris, steup grub as root, and reboot
#installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0d0s0
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
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.