I have been using Windows 8.1 and Kali Linux 3.14 for a while. But upgrading to Windows 10 resulted in installation of MBR instead of GRUB. As I usually do, I used the Boot-Repair Bootable USB to solve the issue. Boot-Repair has Successfully installed GRUB but it is not detecting Windows 10.I tried the install GRUB manually:root@Zuhayer:/# grub-install /dev/sdaInstallation finished. No error reported.Error:root@Zuhayer:/# update-grubGenerating grub.cfg ...Found background image: /usr/share/images/desktop-base/desktop-grub.pngFound linux image: /boot/vmlinuz-3.14-kali1-amd64Found initrd image: /boot/initrd.img-3.14-kali1-amd64Found linux image: /boot/vmlinuz-3.12-kali1-amd64Found initrd image: /boot/initrd.img-3.12-kali1-amd64Found linux image: /boot/vmlinuz-3.7-trunk-amd64Found initrd image: /boot/initrd.img-3.7-trunk-amd64  No volume groups foundFound Windows 8 (loader) on /dev/sda1Found Windows 8 (loader) on /dev/sda2error: out of memory.error: syntax error.error: Incorrect command.error: syntax error.error: line no: 179Syntax errors are detected in generated GRUB config file.Ensure that there are no errors in /etc/default/gruband /etc/grub.d/* files or please file a bug report with/boot/grub/grub.cfg.new file attached.doneKindly guide me if you can how to resolve this issue.P.S. If you would require any logs/files to go through the code, kindly let me know its path and name, will send it.P.S.S This is a latest issue and it has not been answered anywhere on the internet yet as per my searching.
GRUB unable to detect Windows 10 using Boot-Repair
windows;grub2;kali linux
Here is what happened:Following a article on how to fix my problem, I had added some code in the source file from which grub.cfg is generated at line no: 179.When I removed that code the grub-update command worked correctly.P.s. Thanks mchid for the responses