On Nov 14, 2007 1:49 PM, Hans Lombard <[EMAIL PROTECTED]> wrote:
> I removed a hard drive from my Opensuse 10.3 PC - without realising that
> Grub was installed on the drive.  The PC has only one SATA drive left
> containing the various Linux partitions but it will obviously not boot
> up.  What do I need to do to get it to boot up again? I have looked at
> GNU Grub Manual 0.97 - it is rather intimidating for a newbie like me.
> Any advice would be appreciated.
>
> Hans Lombard
> Pretoria, South Africa

In my dual-boot laptop sometimes I re-install Windows after SUSE. I
know that the GRUB boot manager files are in the same hard disk just
that Windows has over-written the first stage of the boot loader in
the master boot record (MBR).

So I only need to replace Windows' boot loader with GRUB. To do this,
I put in the installation disc, choose Rescue mode. After some waiting
the login prompt will appear. Simply type 'root' - there is no need
for a password because this is the rescue mode (duh...)

After that, you will see the 'rescue' prompt. Then type 'grub' to
start the GRUB program. The rescue> prompt will turn into the grub>
prompt.

Type 'find /boot/grub/stage1'

Now because I have my boot loader in the same hard disk, this command
will return the location of the stage 1 loader. In your situation, I
don't know if this will work in the same way, but it's worth a shot, I
guess.

If you get the return value (which will be something like (hd0,2)) use
this value for the next step.

Type the command 'root (hd0,2)'. Replace (hd02) with the return value
from the previous step.

Next install the boot loader by typing the command setup (hd0). Note
that I installed in my primary master's MBR which is why it is (hd0).
Change yours accordingly.

Finally, type 'quit' to exit GRUB. Then type reboot to restart the
machine. Hopefully this works for you. Do let us know if it works.

Good luck!

Chua
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to