LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2004, 06:25 PM   #1
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Rep: Reputation: 15
how to reinstall grub?


Hi

I'm a linux newbie, and I'm running Red Hat 9.0. I just installed Windows XP recently, and it seems I cannot boot back to Linux . I can only boot to Linux using my boot disk. so how do I reinstall my grub to boot to Linux normally? (I don't want a dual-boot now cause I've removed Windows XP thinking the machine will enter linux like before)

Thank you very much

Last edited by spchehe; 08-17-2004 at 06:46 PM.
 
Old 08-17-2004, 06:56 PM   #2
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Hello!

Yes, Windows has destroyed your Grub. To reinstall it you have to do this:

boot with your first RedHat cd
type linux rescue in the menu
then chroot /mnt/sysimage
and the last step is /sbin/grub-install /dev/hda

If your partition changed, you have to edit your /boot/grub/grub.conf -file [usually this is not necessary].

Good luck!
Boby
 
Old 08-17-2004, 07:09 PM   #3
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Original Poster
Rep: Reputation: 15
thanks it worked!
 
  


Reply



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 10:29 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
Can't reinstall GRUB gandalfthewite Linux - General 4 01-26-2004 03:31 AM
Reinstall GRUB Staticreator Linux - Software 0 08-10-2003 04:14 PM
how to reinstall grub? Pimp Linux - General 1 08-04-2003 04:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:21 AM.

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
Open Source Consulting | Domain Registration