[ug-bosug] recovering solaris from the grub shell

Ananth Shrinivas Ananth.Shrinivas at Sun.COM
Fri Jun 22 00:25:58 PDT 2007


Hi Sreedhar,

On Fri, 22 Jun 2007 06:44:24 +0100 (BST)
GS Sreedhar <sreedhar_gs at yahoo.co.in> wrote:

> Hi All,
> I have solaris 11in my x86 system along with Windows XP. As is common
> with windows, the system hanged and when i reset the system , i lost
> the grub loader and on booting, the system shows the grub shell.Could
> anyone please tell me the file which will generally point to solaris
> in the grub? and how i could recover the lost grub loader? Regards
> Sreedhar GS

Boot from your Solaris Installation CD or the BeleniX live CD and get a
shell prompt. If cNdNtNsN is the slice containing your solaris root
filesystem, execute the following commands.

# mount /dev/dsk/cNdNtNsN /a
# cd /a/boot/grub/
# cp menu.lst menu.lst.bak
# installgrub -m stage1 stage2 /dev/dsk/cNdNtNsN

That should reinstall grub on the MBR. Restore your old menu.lst if you
had any customizations in it.

Cheers,
Ananth



More information about the ug-bosug mailing list