Commands to reinstall the GRUB
Hi friends,
I have Windows 2000 Professional on my C drive and Red Hat 9 Linux on my E drive. I am about to remove Windows 2000 Professional and do a clean install of Windows XP Professional. I know that Windows XP will overwrite the Linux GRUB (the boot loader on my computer). I need the commands through which I can bring or reinstall the GRUB back. I have all the three Red Hat 9 Linux CDs. Detailed instructions and steps on this will be much appreciated. Please keep in mind that I am totally new to Linux. So, detailed instructions would be useful to me. Thanks & Regards David Harvard |
so you installed GRUB into MBR or what? :) man, the first mistake one can do if there's windows on the same HD..ok, enough of joking. There should be the Grub RPM package(s) on some of the redhat cds, altough I don't know on which one...you'll just have to search. but first things first.
make a bootable floppy so that you can boot your linux after the reinstallation of windoze..RH has some GUI tool for that I think. after that do the reinstallation of windoze, boot from the floppy, mount cdroms, search for an rpm-package for GRUB (like grub-x.xx.rpm where x.xx is the version number) and install it. the installation was something like rpm -ivh grub-whatever.rpm OR rpm -Uvh grub-whatever.rpm I'm not sure about the rpm command...but if you use GUI, double-clicking the file should do. |
HI b0uncer,
That is not what I am referring to, there are some commands through which you can reinstall the GRUB. That's when you insert the Disk 1 and type at the boot promt something this: linux rescue and press enter and then carry on something.... Don't know much on this. Any ideas. Thanks & Regards David Harvard |
Boot the 1st CD into rescue mode. i.e type rescue at the prompt. Your root partition will be mounted at /mnt/sysimage. Enter the following commands:
chroot /mnt/sysimage grub-install BTW Did you search the forum first before asking? |
All times are GMT -5. The time now is 01:59 PM. |