Share your knowledge at the LQ Wiki.
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 05-19-2005, 08:20 PM   #1
LQ Newbie
Registered: May 2005
Posts: 2

Rep: Reputation: 0
Accidentally overwrote MBR - Grub

I have a dual boot setup. I had XP installed, then installed Fedora and set it during the install so that Grub let me choose which to boot. I had some XP trouble, however, and part of the solution in the guide was to run "fixboot" from the Windows Recovery Console. I am an idiot and didn't think about it overwriting Grub (that's what I assume happened). How can I put Grub back where it used to be doing what it used to do? Thanks!
Old 05-19-2005, 08:30 PM   #2
Senior Member
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
boot into fedora with your install disk, and as root in a terminal, rerun grubconfig


btw, you're not an idiot...prolly all of us have overwritten our boot programs at some point...i know i have.

Last edited by detpenguin; 05-19-2005 at 08:31 PM.
Old 05-20-2005, 12:24 AM   #3
Registered: Apr 2005
Location: Birmingham, AL
Distribution: Win XP Pro / Slackware 10.1 dual-boot
Posts: 83

Rep: Reputation: 15
detpenguin is definately right, I know I have actually cleared my MBR with a Slackware install disc. But the good news is is it's fixable.

All you have to do in your case is reinstall Grub to the MBR from the Fedora disc.

If things get messed up, and you happen to have a Windows bootdisk, you can always run fdisk and type "fdisk /mbr" and it will rebuild the MBR using a standard code. You will be able to again boot into Windows, and you could go again at trying to install grub.

Just a good tidbit to know I think, it's what got me back running.


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
Accidentally overwrote /bin/sh roastedmnm SUSE / openSUSE 5 07-26-2005 02:37 AM
windows overwrote my mbr c-- Linux - Newbie 5 03-30-2005 01:23 PM
help: accidentally overwrote on crontab auden Slackware 1 02-14-2005 06:40 AM
winxp overwrote MBR :( rohan208 Red Hat 5 05-17-2004 08:05 AM
OOPS! overwrote MBR, GRUB wont boot :( slacker9876 Linux - Newbie 4 04-16-2004 05:04 PM > Forums > Linux Forums > Linux - Newbie

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