Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 20-09-2006, 02:35 PM   #1 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Recover GRUB after Windows reinstall...


The Master Boot Record is erased after a Windows reinstall on a dual-boot. this is the method to recover GRUB in ubuntu and fedora core...

Fedora Core

Boot with a live cd that has grub. Issue these:
logon as root/type su in the terminal/konsole

Quote:
grub (enter)
Quote:
root (hd0,?)
(? being where your controlling distro is)
Quote:
setup (hd0)
Alternative method

login as root/use su

Quote:
grub-install /dev/hda

and then it will tell you that the installation is completed witout errors and you can reboot your machine

it can be done by any of the above methods.


Ubuntu

1.)Boot from the Live CD.
2.)Open the terminal. Quote:
Quote:
sudo grub
this opens the grub prompt

Quote:
find /boot/grub/stage1
this command gives a location (or two)

Quote:
root (hdx,y)
this will inform u about the partition type

Quote:
setup (hdx,y)
where x and y refer to the locations returned by the find command
restart and then GRUB should be there.

Source:- In a linux book

Last edited by saurabh.sauron; 20-09-2006 at 02:40 PM.
saurabh.sauron is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 20-09-2006, 02:46 PM   #2 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default Re: Recover GRUB after Windows reinstall...

good one buddy
It'll really help ppl, who face this problem after installing windows over linux.
__________________
:arrow: http://www.AskVG.com/
Vishal Gupta is offline  
Old 28-03-2009, 08:56 PM   #3 (permalink)
Broken In
 
mak1012's Avatar
 
Join Date: Mar 2005
Location: mumbai
Posts: 168
Angry Re: Recover GRUB after Windows reinstall...

Hi,
My problem is I have two hard drive in one xp and in another fedora, I can boot in both but by setting HD preference in BIOS, I wanna add xp in my grub How do go about this. My grub config look like this
Code:
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Windows XP
               map (hd0) (hd1)
               map (hd1) (hd0)
               rootnoverify (hd1,0)
               chainloader +1

title Fedora (2.6.27.5-117.fc10.i686)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=f26ce451-55a5-4c4d-90b7-c6122bace99f rhgb quiet
	initrd /boot/initrd-2.6.27.5-117.fc10.i686.img
title Other
	rootnoverify (hd0,4)
	chainloader +1
the text in bold I added to do but its not working at all. Please help.
__________________
Every Body Says I'm Fine.

Last edited by mak1012; 28-03-2009 at 08:59 PM. Reason: Automerged Doublepost
mak1012 is offline  
Old 29-03-2009, 01:19 PM   #4 (permalink)
Always confused
 
vamsi360's Avatar
 
Join Date: May 2008
Location: Mandriva Control Center
Posts: 349
Smile Re: Recover GRUB after Windows reinstall...

what is the partition number alloted to your 2nd hdd?
__________________
Vamsi Subhash
visit my blog at www.vamsisubhash.co.cc and taste a bit of IT!
vamsi360 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Tenida
- by clinton
- by Anorion

Advertisement




All times are GMT +5.5. The time now is 03:33 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2