I recently installed windows 7 to my computer. After installation my ubuntu partition was converted into unallocated space. used testdisk to recover it. After that i ran boot-repair recommended repair. On rebooting, grub didn't show the option of windows 7. Here below are screenshots of gparted.

  • From a Windows repairCD or flash drive run chkdsk on the NTFS partitions. – oldfred Jan 10 '15 at 15:20

Open a new terminal session ( Ctrl + Alt + T ) and type the following command :

sudo grub-mkconfig -o /boot/grub/grub.cfg

Reboot the system. Windows must have appeared in the grub menu now.

  • Because of the issues of the NTFS partition the Linux NTFS driver will not mount it and then grub2's os-prober will not be able to read it and find the Windows boot files. – oldfred Jan 10 '15 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.