LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-28-2008, 12:22 AM   #1
sohail0399
Member
 
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
(hd0,2)
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
shahz
Member
 
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

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

Rep: Reputation: 58
With tis command;
Code:
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;
Code:
grub> setup(hd0)
 
Old 10-29-2008, 02:42 AM   #4
sohail0399
Member
 
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
 
  


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 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

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

All times are GMT -5. The time now is 07:30 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
Open Source Consulting | Domain Registration