Ubuntu 14.04.02 LTS startup Item written by mistake/dev/sda1 (win 7 loader) Fix, 14.04.02sda1
Problem description:
Install Ubuntu14.04 in win7. Due to the incorrect startup Item/boot loader installation location (/dev/sda1 (win 7 loader), Windows cannot be accessed (the win7 boot option can be displayed on the GRUB interface, after clicking it, the black screen flashes a few times and returns to the GRUB Interface), but the Ubuntu system can be used normally.
Solution:
It took more than two hours to solve the problem through the experience of many predecessors of baidu. It was amazing to see the Windows interface! The perfect solution is as follows:
1. Enter the Ubuntu environment;
2. Open the terminal (alt + ctl + t) and enter sudo grub-install/dev/sda;
3. download the latest version of grub4dos (http://download.gna.org/grub4dos/), decompress the file, copy bootlace.com to the user directory/home (open the new terminal, enter ls, see bootlace.com );
4. Enter chmod + x./bootlace.com on the terminal;
5. Enter sudo./bootlace.com-floppy-ntfs/dev/sda1 on the terminal;
6. Go to the Windows folder on the System Disk in Ubuntu, find the bootmgr file, copy and rename it grldr;
7. Terminal input: sudo update-grub;
Thank you: this blog post has been posted on the iron mark and Ubuntu Chinese Forum. Thank you for this.