LinuxQuestions.org
Review your favorite Linux distribution.
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 07-20-2010, 09:23 PM   #1
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Rep: Reputation: 36
Need to kill MBR


I've got a weird problem with my MBR, it seems.

I've got a 300gig drive that I dual-boot xp and fedora. I repartitioned a couple days ago and now booting is acting very strange.

At first, I got the Grub "command prompt". I tried setting everything up from there, but it would only see the xp partition and wouldn't set it up. At one point, I got everything working - as long as my xp cd was in the drive, then Grub would come up and I could access both operating systems.

I need to wipe out the MBR and everything else on the drive so I can start from scratch. What app should I use to do this?
 
Old 07-20-2010, 09:39 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
any OS install disk. just do a new install.

if you really want to wipe it beforehand, dd /dev/zero to the entire drive.
 
Old 07-20-2010, 09:47 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
First, your "distribution" setting (in the left panel of your post) claims that you're running an old, unsupported, Fedora release. (The oldest supported Fedora release is Fedora 12. And that for only a few more months.)

Second, rather than wiping/reinstalling, boot from a current Fedora installation disk and select the "linux rescue" boot option, do the suggested chroot and run grub-install. That should get you back up and running.

I think that the problem you're having is that GRUB is looking to boot from a partition that you've moved, since the GRUB MBR (for the old GRUB format used by Fedora) stores the physical boot partition information in the MBR. (The newer GRUB2 lets you use the UUID of the partition - among other things - in addition to the physical partition information.)

<edit>
Oh, to answer your original question, download and burn, for example, the SystemRescueCD, boot from it, and run parted on your hard drive. Enter the help command to see a list of options, and select the one to create a new DOS partition table. Then exit with write, and you'll have a wiped disk.
</edit>

Last edited by PTrenholme; 07-20-2010 at 09:54 PM.
 
Old 07-20-2010, 09:47 PM   #4
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Original Poster
Rep: Reputation: 36
Thanks, Alucard, I'll try that.

But I've repartitioned about 3 times between xp and fedora and this problem hasn't gone away.
 
Old 07-20-2010, 09:55 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
No need to do the entire drive add a "count=200" (arbitrary number) to ensure the XP isn't "found" by the installer software.
 
Old 07-20-2010, 10:08 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
1. Partition drive
2. Install XP to partition
3. Install Linux to other partition. Allow Grub to take over MBR.
4. Done. Modern Linux will autodetect XP and grub will give you both choices.
 
Old 07-25-2010, 11:40 PM   #7
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Original Poster
Rep: Reputation: 36
Solution

My final solution was to replace the drive completely...

Reformatting/dd/writing zeros to the entire drive had no effect. Finally, I got out my "Ultimate Boot CD" and used the Western Digital "setup" software to configure the mbr. This, apparently, fixed the problem.

But all of this trouble has me think the drive is getting ready to die, so I just replaced it before I put anything of value on it.

Shouldn't writing zeros to the damn thing kill the mbr??
 
Old 07-26-2010, 12:26 AM   #8
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Galaxy_Stranger View Post
Shouldn't writing zeros to the damn thing kill the mbr??
Depends on how you did it. Show the exact command you used here and someone can answer the question definitely.
 
  


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
Restoring MBR :partitions are detected only after the reboot after MBR restoration? sharathksin Linux - Newbie 2 04-14-2006 07:48 AM
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
Will "grub-install /dev/hda" kill Windows XP MBR? Zullocrit Linux - Newbie 3 09-25-2004 09:50 AM
Debian on dual-boot - will upgrade to SID kill MBR? seanb Linux - Newbie 6 02-17-2004 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:26 AM.

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