LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-26-2005, 01:22 PM   #1
bernstein
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Rep: Reputation: 0
fixing my mbr


Hi.

Problem: I had xp pro on hd1 and mandrake on hd2. Yesterday, I erased hd2 with and reformatted to ntfs. I just want to use xp pro now. The problem is that grub is still in my mbr and it boots the console whenever I startup.


I have tried using xp recovery console and fixboot, but after successfully repairing the mbr and rebooting, grub still shows up.

Has anybody dealt with this before? Any help is much appreciated.
 
Old 06-26-2005, 01:42 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
let's not call it "fixing" huh? nothing technically broken about having grub installed... Either way the usual fix was always to run "FDISK /MBR" from a dos boot disk.
 
Old 06-26-2005, 02:03 PM   #3
broggyr
Member
 
Registered: May 2005
Location: CT
Distribution: Lubuntu
Posts: 32

Rep: Reputation: 15
Insert your WinXP CD and boot it. When you get prompted to install, choose the "Repair" option. Don't do anything until it asks "Which system you want to log into".

You might not need a password (just hit enter at pwd prompt) and you should get a Cursor.

type 'help' for a lost of commands.

to fix your MBR, type 'fixmbr'

I think there is also a 'fixboot' option - may need to run that also.

That should get your system back to your original state

(Apologies up front, I am doing this all from memory, but that's the basic idea).
 
Old 06-26-2005, 07:39 PM   #4
saltron
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0
fixing mbr

First of all grub is there due to you installing it on the mbr. So even though you removed hda2 (Mandrake Partition) you still have Grub. So, I suggest doing the following ->

boot into knoppix (or any other live cd)
type: dd if=/dev/zero of=/dev/null
^^ Will remove the mbr.
then you should install windows default mbr.

~saltron
 
Old 06-26-2005, 09:20 PM   #5
Bluenoser
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 138

Rep: Reputation: 15
I'll second the fixmbr solution. Boot your xp cd, go to the console and type fixmbr as stated above. Always worked for me
 
Old 06-26-2005, 09:25 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,125

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
Re: fixing my mbr

Quote:
Originally posted by bernstein
I have tried using xp recovery console and fixboot, but after successfully repairing the mbr and rebooting, grub still shows up.
Close - you need fixmbr, not fixboot.
 
Old 06-27-2005, 03:00 AM   #7
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
What you can also do is lay your hands on a dos boot disk. Boot from this floppy and at the command prompt type
fdisk /mbr

This would erase GRUB from the mbr and that's it.
 
Old 06-30-2005, 10:24 PM   #8
bernstein
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
Sorry, it took me forever to get back to this thread. I figured out the fixmbr command was what I needed. Fixboot failed originally, hence this thread. Thanks everyone for all of those bits of advice anyway.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MBR zeroed. Can I verify backup MBR? TomF Linux - General 7 06-20-2005 05:28 PM
by tring to fix the MBR i damage the MBR that was help... AKAKAK Fedora 4 03-21-2005 08:18 AM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 04:25 PM
why won't my mbr fdisk /mbr? jamessp007 Mandriva 13 01-03-2004 01:41 AM
mbr had over write so lilo is gone how to rewrite lilo to mbr mch Linux - Software 4 10-25-2002 02:55 PM


All times are GMT -5. The time now is 07:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration