HOWTO:Restore Grub

From PardusWiki
Revision as of 08:09, 28 September 2009 by Atolboo (Talk | contribs)
Jump to: navigation, search

Contents

Introduction

A (re)installation of Windows will overwrite the Grub bootloader.

This is a manual to restore Grub without a new installation of Pardus.

What do we need ?

If you haven't any Pardus CD. Check: http://www.pardus.org.tr/eng/products/index.html

Enter The Grub Menu

With Pardus 2007.x CD

language screen

With Pardus 2008.x/2009 CD and USB version

Installing Grub

  When there is only one disk installed the filling up of 'root ( +Tab' will be 'root (hd0,' 
  and no disk selection is necessary (in this case skip the next step).
  Check for the Pardus partition number by looking for disk format ext3 or ext2fs. 
  In this example I presume partition number 4 is the Pardus partition. Change the number when necessary.
  When we get 'Error 15: File not found" it is not the correct partition and we can start at 'Type root (' again, 
  and when we get "...... succeeded. Done." Grub has been restored in MBR of hd0.

Restoring Grub when the Pardus OS is active

  1. Open a Konsole and switch to Grub-mode with
sudo grub
  1. Type root ( and then press the Tab key. ( there is a blank between root and ( ). This will list your possible disks (hd0 hd1).
  When there is only one disk installed the filling up of 'root ( +Tab' will be 'root (hd0,' 
  and no disk selection is necessary (in this case skip the next step).
  1. Press again the Tab key and the partitions from hd0/hd1 will be listed.
  Check for the Pardus partition number by looking for disk format ext3 or ext2fs. 
  In this example I presume partition number 4 is the Pardus partition. Change the number when necessary.
  1. Write root (hd0,4) and press <enter>. ( 4 is the Pardus partition as mentioned in the previous item )
  2. Write setup (hd0) and press <enter>. (hd0 is the first hard disk from which the bios will boot)
  When we get 'Error 15: File not found" it is not the correct partition and we can start at 'Type root (' again, 
  and when we get "...... succeeded. Done." Grub has been restored in MBR of hd0.
  1. Exit Grub-mode with
  quit

Tips

Delete Grub

If the Grub installation failed, you can not access neither Pardus nor Windows. In such a scenerio you can delete Grub and get in Windows. Reboot your PC from a Windows Cd. Then press R ( restore ) button on installation screen. Select your installed Windows. And write this command:

FIXMBR

Press Enter. Answer all the question as y ( yes ). You're done. Just restart your pc.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox
In other languages