How to fix windows mbr in ubuntu

Written by nathan mcginty
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to fix windows mbr in ubuntu
Fix your broken MBR in Ubuntu. (admin 3d sign image by from

The Master Boot Record (MBR) is a section of your computer's hard drive that tells it where all your operating systems are located. In most computer set-ups, you won't have to deal with the MBR. However, if you want to dual boot your computer system, that is, install two different operating systems such as Windows and Ubuntu, you will have to tell the MBR where the systems are located. Working with these MBRs however, isn't without risks. But not to worry, it's possible to fix your Windows MBR in Ubuntu if something messes up.

Skill level:


  1. 1

    Insert the Ubuntu Live CD into your computer with the broken MBR. Boot the system up and go into the Live CD when the prompt comes up. Log in to the system with administrative privileges.

  2. 2

    Click "System," "Administration" and "Software Sources" from the menu. Click the box next to the "Universal Repository" section to unselect it.

  3. 3

    Ensure that your Ubuntu system is connected to the Internet, either through a wireless or cable connection.

  4. 4

    Open up a terminal window. At the command prompt, type "sudo apt-get install ms-sys." This will download and install the MS-SYS program, which can write and read Microsoft boot records.

  5. 5

    Locate the disk that needs the MBR repaired. At the command prompt, type "sudo fdisk -l". Look for the disc entry that looks something like this: "/dev/sda1 1 9327 74919096 83 NTFS." The important parts here are the "NTFS" which tells you it's a MS formatted drive and the "/dev/sda1" which tells you the drive location.

  6. 6

    Type the command "sudo ms-sys -m XXXXX" where XXXX is the hard drive location you found in Step 5.

  7. 7

    Remove the Ubuntu Live CD from your computer's disc drive. Reboot.

Tips and warnings

  • Always use caution when working with your computer's hard drive. If in doubt, bring your computer to a professional for repair.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.