Restore Grub2 in Ubuntu9.10 after Windows is reinstalled.

Source: Internet
Author: User
If you reinstall Windows on a hard disk that has been installed with both Ubuntu and Windows, the Windows boot code will be written to the hard disk MBR to overwrite the original grub2. In this case, you must restart Grub2. Start the machine with UbuntuLiveCD, and then open the terminal and enter sudo-I. Note that the following operations must be confirmed repeatedly. Even a single character input error may cause damage to the Ubuntu system. Connect

If you reinstall Windows on a hard disk that has been installed with both Ubuntu and Windows, the Windows boot code will be written to the hard disk MBR to overwrite the original grub2.

In this case, you must restart Grub2.

Start the machine with Ubuntu Live CD, and then open the terminal and enter:

Sudo-I

Note: The following operations must be confirmed repeatedly. Even a single character input error may cause damage to the Ubuntu system.

Next, let's take a look at the file system configuration method of the hard disk.

Mint ~ # Fdisk-l

Disk/dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk identifier: 0xd25ad25a

Device Boot Start End Blocks Id System
/Dev/sda1*1 6527 52428096 7 HPFS/NTFS
/Dev/sda2 6528 30401 191767905 f W95 Ext 'd (LBA)
/Dev/sda5 6528 18464 95882240 7 HPFS/NTFS
/Dev/sda6 18465 29910 91939963 + 83 Linux
/Dev/sda7 29911 30401 3943926 82 Linux swap/Solaris

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.