How to make Windows showing in Grub2 menu

Created by delance
Keywords:
Windows grub menu
Last updated by:
delance

Sometimes after installation of a distribution or after release release of a new kernel, Windows doesn't appear in Grub2 boot menu.
The solution often is to force detection of Windows. For this, run the following commands
   sudo apt-get install os-prober
   sudo os-prober
Check that Windows is detected in printing
   sudo update-grub
And then reboot.
----------
If you don't get boot menu, but a black screen, and that after a few times you get login screen, Grub2 is unable to manage properly current resolution of screen. In this case, run command:
   gksudo gedit /etc/default/grub2
Remove '#' before line defining screen resolution, then run command
   sudo update-grub
and then reboot
----------
Use https://answers.launchpad.net/grub/+faq/1678 to get partition table and check you have at least one NTFS partition.
If not, you have wiped out Windows during installation, by using "whole disk" option.
----------
https://launchpad.net/~olivier-delance