LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2004, 02:21 PM   #1
david_harvard
LQ Newbie
 
Registered: Jun 2004
Posts: 15

Rep: Reputation: 0
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
 
Old 06-28-2004, 02:40 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
Old 06-28-2004, 03:54 PM   #3
david_harvard
LQ Newbie
 
Registered: Jun 2004
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 06-28-2004, 04:22 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
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?

Last edited by michaelk; 06-28-2004 at 04:26 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 11:29 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 11:50 AM
How to reinstall GRUB?? Ninja_212 Red Hat 2 04-12-2004 03:08 AM
commands work with interactive grub, but not in grub.conf richardg Linux - Newbie 2 11-23-2003 05:36 AM
Reinstall GRUB gtgoku Red Hat 2 09-12-2003 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration