How to Fix Windows MBR in Ubuntu
- 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). Click "System," "Administration" and "Software Sources" from the menu. Click the box next to the "Universal Repository" section to unselect it.
- 3). Ensure that your Ubuntu system is connected to the Internet, either through a wireless or cable connection.
- 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). 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). Type the commmand "sudo ms-sys -m XXXXX" where XXXX is the hard drive location you found in Step 5.
- 7). Remove the Ubuntu Live CD from your computer's disc drive. Reboot.