1. If you want to install a dual system, install the system is best to install winows, and then in the installation of Ubuntu, so that you do not have to repair the boot, I generally installed Ubuntu, the first to remove a partition, and then use a U disk directly installed Ubuntu, At this time Ubuntu will be the Ubuntu system files loaded on the partition just deleted, after loading into the Ubuntu Boot selection interface, the default is Ubuntu, the end is Windows
2. If it is already installed, and then found that Windows has a problem, you need to reload windows, you can use the PE installed Windows to replace the original Windows, note that this time do not use PE to repair the boot, if you repair, You will find that you can only enter Windows, you can not enter Ubuntu, what should be done?
Key Knowledge Summary: fix Ubuntu boot method
1. Use Ubuntu's installed USB flash drive or CD to enter,
2. Select Try Ubuntu, do not select Install
3. Open the terminal after entering and then enter the following command to help you fix
sudo fdisk-l note is lowercase l, not the number 1
He will output
/dev/sda:80.0 GB, 80026361856 bytes
255 heads, Sectors/track, 9729 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Disk identifier:0x624aa2e0
Device Boot Start End Blocks Id System
/DEV/SDA1 * 1 1388 11149078+ 7 Hpfs/ntfs
/dev/sda2 1389 3825 19575202+ 7 Hpfs/ntfs
/dev/sda3 3826 9729 47423880 f W95 Ext ' d (LBA)
/dev/sda5 3826 5851 16273813+ b W95 FAT32
/dev/sda6 5852 8323 19856308+ b W95 FAT32
/dev/sda7 8324 9598 10241406 -up Linux
/dev/sda8 9599 9729 1052226, Linux Swap/solaris
This time see DA7 83 that line, remember this, if your appearance and my this is the same, you can follow the following steps to operate
Input command
Sudo-i
Mkdir/media/tempdir
Mount/dev/sda7/media/tempdir
Most critical Step input command
Grub-install--ROOT-DIRECTORY=/MEDIA/TEMPDIR/DEV/SDA
If the installation finished appears. No Error reported. " character, it means that the operation was successful, remember that this is the only occurrence, nothing else, in the repair boot process, it is recommended not to execute other commands
Then you can reboot into Ubuntu, but it's not over yet, and after restarting into Ubuntu, you have to execute a command to end it.
sudo update-grub2
And then you can enter your password.
Summary of problems with dual system (WIN7/WIN8/UBUNTU) installation