How to Use Ubuntu live CD to repair damaged MBR

Source: Internet
Author: User
Tags ide hard drive

 

Have you done something that causes your MBR (Master Boot Record) to break down? A quick and easy way
And you only have one Ubuntu live CD?
Note that you directly operate on the hard disk. If you have not backed up everything you need or
You are not very familiar with all the operations, so you may have to wait for a standard Windows installation disk
Solve this problem. (Note: foreigners are troublesome. What's so terrible is that they only operate MBR)
Start your computer with your live CD, go to the desktop, choose system> System Management> Software source, and set the first option
All options in the card are selected.
Open a terminal and enter
Copy codesudo apt-Get install MS-sys
MS-sys is a boot record written to the Microsoft operating system. Program .
Now you have to find out the partition where your windows is located. Return to the terminal and enter
Copy codesudo fdisk-l
This will list all the partitions. You need to find a partition. Its standard is similar to the following:
/Dev/sda1 1 932774919096 83 NTFS
Two very important fields are "/dev/sda1" and "NTFS". The former refers to the partition name, and the latter tells us that
Is a partition formatted in a Windows operating system. According to this, we know that your windows partition exists.
The first partition on your hard disk SDA. The hard disk sda mbr is exactly what you want to fix.
Next, we need to repair the/dev/sda mbr and input it in the terminal.
Copy codesudo MS-sys-M/dev/SDA
Of course, if your Windows Server is on SDB (the name of the SATA hard disk is SD, and the second SATA hard disk is SDB) or
It is on hda (IDE Hard Drive named HD, IDE's first hard drive named hda), then you need to according to the actual
The returned results of "fdisk-L" are shown.
After all this is done, restart the computer and take out the livecd. The Windows boot interface you want will reappear.
Of course, you can also use the correct windows disk to go to the repair mode to fix it-but I think
This method is faster. In contrast, I like to have a Ubuntu livecd instead
Windows disk.

(Note: This is also a method after all, but I usually don't need this method because my method is faster than it .)
Ha ~~ Find a disk and direct it to dos. directly enter fdisk/MBROK)

Http://www.17wo.com.cn/home/space.php? Uid = 1 & Do = Blog & id = 83

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.