OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » indiana » discuss

Thread: restoring grub

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Jul 21, 2008 1:46 PM by: equach
Guest
restoring grub
Posted: Jul 21, 2008 12:15 PM

  Click to reply to this thread Reply

[No Body]

tap

Posts: 55
From: BR

Registered: 6/16/08
Re: restoring grub
Posted: Jul 21, 2008 12:15 PM   in response to: Guest

  Click to reply to this thread Reply

Anyway to do it with OpenSolaris live-cd?

Thanks

TaP

On Mon, Jul 21, 2008 at 4:12 PM, Jürgen Lüters <jlueters@intranet-engineering.de> wrote:
Am Montag, den 21.07.2008, 16:06 -0300 schrieb Thiago Pereira:
> In my case I changed some disk partitions (Windows Vista) and now it`s
> not showing GRUB, it`s loading Windows directly.
>
> How can I reinstall grub?
>
Start with a knoppix live-cd.

sudo su
man grub-install
call grub-install <options> <dev> (/dev/hda or wherever you are booting
from)


> Thanks
>
> TaP
>
>
> On Mon, Jul 21, 2008 at 3:51 PM, Gerard Henry <gerard dot henry at free dot fr>
> wrote:
>         Jürgen Lüters wrote:
>         > hi folks,
>         > i have a notebook with opensolaris and debian. Everything
>         worked fine.
>         > Later i had to install Windows XP wich changed the
>         bootloader. I maneged
>         > to get the debian grub reinstalled.
>         >
>         > Can someone  please explain how to reinstall the opensolaris
>         grub, in
>         > order to get access to the existing solaris installation.
>         >
>         >
>
>         you don't need to reinstall opensolaris grub, just add in the
>         /boot/grub/menu.lst of your debian:
>
>         title        Opensolaris Indiana
>         root        (hd0,2)                          <------ change it
>         to fit
>         your need!
>         savedefault
>         makeactive
>         chainloader    +1
>
>
>         --
>         Gerard HENRY
>
>
>
>         _______________________________________________
>         indiana-discuss mailing list
>         indiana-discuss at opensolaris dot org
>         http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
>
>
>
> _______________________________________________
> indiana-discuss mailing list
> indiana-discuss at opensolaris dot org
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
--
Jürgen Lüters


_______________________________________________ indiana-discuss mailing list indiana-discuss at opensolaris dot org http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


equach

Posts: 951
From: US

Registered: 3/2/06
Re: restoring grub
Posted: Jul 21, 2008 1:46 PM   in response to: tap

  Click to reply to this thread Reply



Thiago Pereira wrote:
> Anyway to do it with OpenSolaris live-cd?

Try booting the OpenSolaris live-cd, and using the format(1M)
command to mark the Solaris2 partition the active partition.

If that doesn't work, you probably need to manually run
installgrub. To do this, boot back into the live-cd media,
import your pool, and install grub onto the slice used for
your pool:

# zpool import -f rpool
# mount -F zfs <dataset_of_your_root> /a
# /sbin/installgrub /a/boot/grub/stage1 /a/boot/grub/stage2 \
</dev/r

where </dev/r is the raw-device of the slice used
for rpool. ("zpool status" will show you that)


If you've re-installed windows on a different partition, you
will need to adjust its Grub menu entry in your existing
OpenSolaris instance.


-ethan


>
> Thanks
>
> TaP
>
> On Mon, Jul 21, 2008 at 4:12 PM, Jürgen Lüters
> <jlueters@intranet-engineering.de
> <mailto:jlueters@intranet-engineering.de>> wrote:
>
> Am Montag, den 21.07.2008, 16:06 -0300 schrieb Thiago Pereira:
> > In my case I changed some disk partitions (Windows Vista) and now
> it`s
> > not showing GRUB, it`s loading Windows directly.
> >
> > How can I reinstall grub?
> >
> Start with a knoppix live-cd.
>
> sudo su
> man grub-install
> call grub-install <options> <dev> (/dev/hda or wherever you are booting
> from)
>
>
> > Thanks
> >
> > TaP
> >
> >
> > On Mon, Jul 21, 2008 at 3:51 PM, Gerard Henry
> <gerard dot henry at free dot fr <mailto:gerard dot henry at free dot fr>>
> > wrote:
> > Jürgen Lüters wrote:
> > > hi folks,
> > > i have a notebook with opensolaris and debian. Everything
> > worked fine.
> > > Later i had to install Windows XP wich changed the
> > bootloader. I maneged
> > > to get the debian grub reinstalled.
> > >
> > > Can someone please explain how to reinstall the
> opensolaris
> > grub, in
> > > order to get access to the existing solaris installation.
> > >
> > >
> >
> > you don't need to reinstall opensolaris grub, just add in the
> > /boot/grub/menu.lst of your debian:
> >
> > title Opensolaris Indiana
> > root (hd0,2) <------
> change it
> > to fit
> > your need!
> > savedefault
> > makeactive
> > chainloader +1
> >
> >
> > --
> > Gerard HENRY
> >
> >
> >
> > _______________________________________________
> > indiana-discuss mailing list
> > indiana-discuss at opensolaris dot org
> <mailto:indiana-discuss at opensolaris dot org>
> > http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
> >
> >
> >
> > _______________________________________________
> > indiana-discuss mailing list
> > indiana-discuss at opensolaris dot org
> <mailto:indiana-discuss at opensolaris dot org>
> > http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
> --
> Jürgen Lüters
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> indiana-discuss mailing list
> indiana-discuss at opensolaris dot org
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss





Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
Copyright © 1995-2005 Sun Microsystems, Inc.