-   Linux - Networking (
-   -   Grub Restore (

roopunix 08-27-2005 11:54 PM

Grub Restore
Hello all.
i am using redhat AS 3. But a friend of mine installed windows 2000 after i installed Linux.Now i think the boot loader information or grub has been removed or overridden.Now what is the soloution.When i had viewed my partition table before the boot partition was hda1. Can any one say me how to take the steps now, such that windows also stays and linux also stay.

Thanking You.

vimal 08-28-2005 12:47 AM

boot from the first cd of your distro:. after that type "linux rescue" at the grub prompt. this will bring the system in rescue mode. after that u will get a shell. now execute the command " grub-install /dev/hdX". change the letter X to a,b,c,d etc.... depending on your hard disk connection. /dev/hda denotes that it is primary master, /dev/hdb denotes it is primary slave etc...
if the prompt returns with no errormessages, exit twice. this will reboot the system and you will have the grub installed. vimal..........

roopunix 08-28-2005 12:53 AM

Thankyou very much .
we this steps don't i have to configure my grub file.That is grub.conf
secondly will the windows still be in existence. [ i want to exist the both ]

jdogpc 08-28-2005 05:09 PM

Those steps won't remove windowz but you won't be able to boot it before you correct your grub.conf file.

edit your grub.conf so that it looks something like this. this one is my grub.conf
title Fedora Core (2.6.11-1.1369_FC4smp)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4smp ro root=LABEL=/ acpi=force rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4smp.img
------------------------new lines--------------------------------------------
title "Windows something"
rootnoverify (hdX,Y) --- X hdd # hda=0,hdb=1:Y partition # hda1=0,hda2=1,etc..
chainloader +1

archtoad6 08-29-2005 02:27 PM

Don't forget that Winders sometimes likes a makeactive line:

-------  new lines  -------
title "Windows something"
rootnoverify (hdX,Y)
chainloader +1

jdogpc 08-29-2005 05:29 PM

In my case I haven't need the makeactive because my notebook is always dual booting and as I have to install windowz first it make the first partition active, that's why I missed that one. Sorry if things didn't went because of that.

All times are GMT -5. The time now is 09:49 AM.