HOWTO:Restore Grub
From PardusWiki
(Difference between revisions)
(→Pardus 2008.x) |
(→Installing Grub) |
||
| Line 33: | Line 33: | ||
= Installing Grub = | = Installing Grub = | ||
| − | * Type '''root (''' and press Tab key. ( there is a blank between '''root''' and '''(''' ). This will list your possible disks. | + | * Type '''root (''' and press 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,' |
| − | * Write | + | and no disk selection is necessary (in this case skip the next step). |
| − | * Write '''setup (hd0)''' and press Enter. | + | * Select the disk by adding '''0,''' or '''1,'''. In this example I will select hd0. |
| − | * Press Ctrl + Alt + Del | + | * Press after ''root (hd0,'' or ''root (hd1,'' the Tab key. This will list your partitions in hd0/hd1. |
| + | |||
| + | Check for the Pardus partition number by looking for disk format ext3 or ext2fs. | ||
| + | In our example it's in '''4'''th partition. Change it when necessary. | ||
| + | * Write root (hd0,'''4)''' and press Enter. ( 4 is your Pardus partition as mentioned at previous item ) | ||
| + | * Write '''setup (hd0)''' and press Enter. | ||
| + | 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. | ||
| + | * Press Ctrl + Alt + Del to restart your PC. | ||
* You must see Grub Menu now. | * You must see Grub Menu now. | ||
| − | |||
[[tr:Nasıl:Grub'u_Kurtarmak]] | [[tr:Nasıl:Grub'u_Kurtarmak]] | ||
Revision as of 13:19, 6 July 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
- Configure your bios settings for booting from CD
Enter The Grub Menu
Pardus 2007.x
- Reboot from CD and wait untill the language screen is shown.
- Push the arrow-down key to stop the timer.
- Push the c key and the grub screen will appear.
Pardus 2008.x
- Boot from the Pardus 2008 (Kurulan) installationCD and select the English (US) language.
- When the "Welcome !!" (license) screen is shown press Ctrl+Alt+F1.
- A console screen will appear with "pardus ~ #" as the last line.
- Write grub at the console, then press Enter. Now you are in grub menu
Installing Grub
- Type root ( and press 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).
- Select the disk by adding 0, or 1,. In this example I will select hd0.
- Press after root (hd0, or root (hd1, the Tab key. This will list your partitions in hd0/hd1.
Check for the Pardus partition number by looking for disk format ext3 or ext2fs. In our example it's in 4th partition. Change it when necessary.
- Write root (hd0,4) and press Enter. ( 4 is your Pardus partition as mentioned at previous item )
- Write setup (hd0) and press Enter.
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.
- Press Ctrl + Alt + Del to restart your PC.
- You must see Grub Menu now.
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.
