HOW TO : Recover Windows MBR using Ubuntu Live CD !!

Discussion in 'Linux' started by bluX, Apr 22, 2008.

  1. bluX

    bluX New Member

    Joined:
    Nov 2, 2007
    Messages:
    297
    Likes Received:
    1
    I guess this a really off topic thread but, I had been suffering from this problem and I thought maybe there will people like me facing this problem too. So this is why I'm posting it here too.

    If you want to restore Windows Bootloader and for some reason cannot use the windows installation CD, there is a simple way to do it :

    NOTE: make sure you have internet working.

    1) Enable 'Universe' Repository :

    To enable the 'Universe' Repository (System->Administration->Software Sources) and over there enable it.

    NOTE : Before I could install the ms-sys package. I also needed to put "sudo" in front of the ms-sys command (e.g. "sudo ms-sys --mbr /dev/sda") or otherwise I got permission denied.

    2) Boot with Ubuntu Live CD or Linux Mint Live CD

    3) On the terminal :

    Write these commands :

    Then the following :

    NOTE : In my case the main windows xp system is located in hda1 so I used this command

    ***
    ubuntu@ubuntu:~$ sudo ms-sys --mbr /dev/hda
    Windows 2000/XP/2003 master boot record successfully written to /dev/hda
    ***

    4) Reboot.

    This should get your windows back.

    This guide is based on INOXLLOR , AJPROART & GONK's guide.
  2. bluX

    bluX New Member

    Joined:
    Nov 2, 2007
    Messages:
    297
    Likes Received:
    1
    So was it useful or not guys.
  3. serjen

    serjen New Member

    Joined:
    Jan 2, 2008
    Messages:
    130
    Likes Received:
    0
    loads easier tha going into the recovery version of windows using the boots CD, Great tut
  4. bluX

    bluX New Member

    Joined:
    Nov 2, 2007
    Messages:
    297
    Likes Received:
    1
    Ya brother you are right but sometimes people don't have the recovery CD some people like me so thats why and thanks for replying.

Share This Page