Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hello, My hard drive's MBR got wiped recently (reasons apart) and I would like to know if there is a way that I can restore the MBR (and subsequent partition ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Location
    127.0.0.1
    Posts
    25

    Way to restore MBR?


    Hello,

    My hard drive's MBR got wiped recently (reasons apart) and I would like to know if there is a way that I can restore the MBR (and subsequent partition table). I am hoping this is possible because the partitions are all there, just the MBR got erased (not getting high hopes though, since as far as I know a MBR wipe = loose everything + bang head on desk )


    Thanks for any help

  2. #2
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    MBR wipe does not mean everything gone, just the data that was on the MBR, which can be restored.
    What do you want to restore it to?
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  3. #3
    Linux Engineer
    Join Date
    Mar 2005
    Location
    Where my hat is
    Posts
    766
    I'm going to assume you're running XP.

    Take your installation CD. Reboot with the CD in the drive and let it fire all the way up. You'll have three choices. Select R for repair.

    You'll be asked which windows installation you wish to repair, give it the answer, and then give the admin password.

    Once at the prompt, type: FIXMBR

    Answer yes, then type Exit. You should be able to boot into Windows at that point.

    You can then boot from your Linux install CD and repair/redo your boot options in the manner you wish to set them.
    Registered Linux user #384279
    Vector Linux SOHO 7

  4. #4
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    I think mepis comes with a nice utility which can restore the MBR. Just run it as a live CD, it can also reset the x server and run a FS check.
    Stumbling around the 'net:
    www.cloudyuseful.com

  5. #5
    Just Joined!
    Join Date
    Dec 2004
    Location
    127.0.0.1
    Posts
    25
    thanks for the quick replies.

    I am , in fact, running a dual Boot system (Mdk10 and WinXP)

    My first reaction was exactly that: use the install CD to restore the MBR. But it just so happens that the Mandrake boot CD (DVD actually) simply will not detect any partitions on my drive!!! It fails to restore the MBR

    I havent tryed the XP cd, but my guess is that it wont detect anything either...any ideas on why the partitions aren't detected?

  6. #6
    Linux Engineer
    Join Date
    Mar 2005
    Location
    Where my hat is
    Posts
    766
    My solution IS with the XP install CD. Use the repair function once it's fired up.
    Registered Linux user #384279
    Vector Linux SOHO 7

  7. #7
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    What do you want the MBR restored to?
    Retired1af's solution will wipe your MBR and put ntldr o the MBR.
    If you want Mandrakes bootloader on the MBR that is going to require a different solution.
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  8. #8
    Linux Engineer
    Join Date
    Mar 2005
    Location
    Where my hat is
    Posts
    766
    Me thinks the loader is borked and a start from scratch is in order.
    Registered Linux user #384279
    Vector Linux SOHO 7

  9. #9
    Just Joined!
    Join Date
    Dec 2004
    Location
    127.0.0.1
    Posts
    25
    Quote Originally Posted by retired1af
    Me thinks the loader is borked and a start from scratch is in order.
    I am inclined to agree with this....the WinXP attempt also did nothing.

    But, my problems have escalated to new hights:

    The MBR issue is just a small segment of a major issue I have been trying to get to the bottom of for the past week. The main thing is that the PC will "randomly" restart. The only thing that makes me think it might not be the PSU is that now the PC only restarts when an OS is loading (for example, when trying to install MDK, it always restarts when the install app is loading)

    I have practiclly re-assembled my PC, trying to eliminate components...and I came down to the conclusion that the problem lies either on the motherboard or on the PSU (can't eliminate either one) Is there any way i can test these components to see if they are faulty? Or if I knew which component was accessed exclusively when an OS is beeng loaded (to disk) it would be very, very helpfull.

    Sorry if this is confusing, but it's a rather long story

    Thanks

  10. #10
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    What I have done in the past when I thought the PSU might have been faulty. Was to bring it to a local pc repair shop, and ask them to test it.
    The one in my town will do it for free.
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •