HOWTO:Restore Grub

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(Installing Grub =)
(Lots of changes, some cleaning)
Line 34: Line 34:
 
= Installing Grub =
 
= Installing Grub =
  
Give the command  '''root (hd0,''' (without Enter)
+
* Write '''root (''' and press Tab key. ( there is a blank between '''root''' and '''(''' ). This will list your partition table.
 
+
* Look for the Pardus partition. In our example it is in '''hd0''', if different for you, change due to your partitions.
[[Image:grub-restore4.png|grub1]]
+
* Write '''root (hd0''' and press Tab key. This will list your partitions under hd0. Look for the Pardus partition number. You can understand it by checking disk format ( ext3 ) and it's capacity. In our example it's in '''4'''th partition. Change it due to your partitions.
 
+
* Write '''root (hd0,4)''' and press Enter. ( 4 is your Pardus partition as mentioned at previous item )
Next hit the '''Tab''' key.
+
* Write '''setup (hd0)''' and press Enter. This will install grub to the reccomended place.  
 
+
* Press Ctrl + Alt + Del, restart your PC.
After ~2 seconds the partition table will be shown.
+
* You must see Grub Menu now.
 
+
* Get well soon. Enjoy it :)
The Linux partitions in our example are number 5 and 6.
+
 
+
I will try partition number 6. and add '''6)''' + Enter.
+
 
+
To install Grub in the MBR of the first harddisk give the command: '''setup (hd0)'''
+
 
+
[[Image:grub-restore5.png|grub2]]
+
 
+
This not successfull.
+
 
+
The next one to try is number 5.
+
 
+
[[Image:grub-restore7.png|grub3]]
+
 
+
This is a success.
+
 
+
Use the 'Esc' key to get to the language screen (top image).
+
 
+
Select '''English''' and '''Continue From Harddisk''' in the next screen.
+
 
+
The menu screen of Grub will appear now.
+
  
 
[[tr:Nasıl:Grub'u_Kurtarmak]]
 
[[tr:Nasıl:Grub'u_Kurtarmak]]

Revision as of 15:49, 15 June 2008

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 ?

We need the Pardus Live or Installation CD

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

A PC which has been configured in the bios so that it will start from CD.

This can not be a problem when Pardus/Windows are installed on the PC.

Enter The Grub Menu

Pardus 2007.x

language screen

Pardus 2008.x

Installing Grub

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