HOWTO:Restore Grub

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(Restoring Grub when the Pardus OS is active)
Line 5: Line 5:
 
This is a manual to restore Grub without a new installation of Pardus.
 
This is a manual to restore Grub without a new installation of Pardus.
  
= What do we need ? =
+
== What do we need ? ==
  
 
* We need the Pardus Live or Installation CD or USB version.
 
* We need the Pardus Live or Installation CD or USB version.
Line 13: Line 13:
 
* Configure your bios settings for booting from CD or USB.
 
* Configure your bios settings for booting from CD or USB.
  
= Enter The Grub Menu =
+
== Enter The Grub Menu ==
== With Pardus 2007.x CD ==
+
=== With Pardus 2007.x CD ===
  
 
*Reboot from CD and wait untill the language screen is shown.
 
*Reboot from CD and wait untill the language screen is shown.
Line 26: Line 26:
 
*Continue with "Installing Grub"
 
*Continue with "Installing Grub"
  
== With Pardus 2008.x/2009 CD and USB version==
+
=== With Pardus 2008.x/2009 CD and USB version===
  
 
* Boot "Pardus 2008/2009" with F2=English (US) language selected. (this is to have the proper keyboard layout)
 
* Boot "Pardus 2008/2009" with F2=English (US) language selected. (this is to have the proper keyboard layout)
Line 33: Line 33:
 
* Enter '''grub''' in the console, then press <enter> and the grub screen (with "grub>" as the last line) will appear.
 
* Enter '''grub''' in the console, then press <enter> and the grub screen (with "grub>" as the last line) will appear.
  
= Installing Grub =
+
== Installing Grub ==
  
 
* Type '''root (''' and then press the Tab key. ( there is a blank between '''root''' and '''(''' ). This will list your possible disks (hd0 hd1).
 
* Type '''root (''' and then press the Tab key. ( there is a blank between '''root''' and '''(''' ). This will list your possible disks (hd0 hd1).
Line 49: Line 49:
 
* Press Ctrl+Alt+Del to restart your computer.
 
* Press Ctrl+Alt+Del to restart your computer.
 
* And the Grub Menu will appear.
 
* And the Grub Menu will appear.
 +
 
= Restoring Grub when the Pardus OS is active =
 
= Restoring Grub when the Pardus OS is active =
 
With this method we don't need the Pardus Live CD or Installation CD or USB version as the Linux kernel is already active.
 
With this method we don't need the Pardus Live CD or Installation CD or USB version as the Linux kernel is already active.

Revision as of 08:22, 28 September 2009

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

With this method we don't need the Pardus Live CD or Installation CD or USB version as the Linux kernel is already active.

  sudo 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.
  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