From: http://blog.csdn.net/svitter
Recently, win8 and ubuntu have been re-installed because of a few things. Many problems have occurred during the installation process. Please record them here for your convenience and future reference. In addition, why is the input method provided by Microsoft so stuck.
The most critical point is the installation location of the boot guide, which is generally sda. If win8loader is selected unfortunately, congratulations. win8 cannot be opened.
I remember this mistake all the time before, and I accepted the blood lesson. In fact, sda is the mbr of the hard disk.
Then, you need to install win8 after installing Ubuntu.
Note that do not touch the partitions under Ubuntu when partitioning. Install win8 with confidence.
Then, leave the Ubuntu boot disk and enter the boot disk.
Follow these steps:
Sudo su; // switch root
Fdisk-l // view all partitions
Mkdir/media/temp // create a temporary directory for mounting
Mount/dev/sda */media/temp // mount the file
Sudo grub-install -- root-directory =/media/temp/dev/sda // install grub
If no error is prompted at this time, there is no problem.
Restart to enter Ubuntu
Sudo update-grub2
You can.