Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-28-2008, 12:22 AM   #1
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
Grub Reinstall Help

I have installed Linux XP,
After installation my windows became currupt.
After reinstalltion of windows Grub disappear(i can not enter in Linux)
with yhe help of linux rescue i reinstall the grub (i use following commands)
grub> find /boot/grub/stage1
grub> root(hd0,2)
grub> setup(hd0,2)
#process completed
grub> quit

but after this process grub does not reinstall

plz help
Old 10-28-2008, 12:46 AM   #2
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
boot your system with a rescue cd. cd within /mnt/sysimage/

/sbin/grub-install /dev/hda

Old 10-28-2008, 03:35 AM   #3
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
With tis command;
grub> setup(hd0,2)
You installed grub to the first hard drive 3rd partition as grub counts like 0,1,2.
If you want to install grub to the MBR;
grub> setup(hd0)
Old 10-29-2008, 02:42 AM   #4
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Original Poster
Rep: Reputation: 23
grub> setup(hd0)

Thanks ! this works
Now i have installed.
thanks a lot


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 reinstall skeletonca Linux - Desktop 2 11-08-2007 07:35 AM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Can I reinstall GRUB? aznluvsmc Fedora 2 01-14-2006 02:33 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
How to reinstall GRUB?? Ninja_212 Red Hat 2 04-12-2004 02:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 PM.

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