I just installed kali (i splitted my windows 7 with kali) so I have 3 partitions kali, /boot, and win7.
the output of fdisk -l is this:
Code:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005cd85

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400   83  Linux
/dev/sda2          206848   429894347   214843750    7  HPFS/NTFS/exFAT
/dev/sda3       429895680   625141759    97623040   83  Linux
when I type update-grub it shows this:
Code:
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.14-kali1-686-pae
Found initrd image: /boot/initrd.img-3.14-kali1-686-pae
  No volume groups found
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 107
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
What I tried is putting this code:
Code:
echo "Adding Windows" >&2
cat << EOF
menuentry "Windows" {
insmod ntfs
set root='(hd0,2)'
chainloader +1
}
EOF
in /etc/grub.d/40_custom and then running update-grub or grub-mkconfig -o /boot/grub/grub.cfg nothing works all I get is No volume groups found.