I'm trying to repair the boot loader for kali 2.0. I'm not sure what caused it but it doesn't show up in the bios anymore. I found this code:
mount /dev/sda3 /mnt
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
grub-install /dev/sda
update-grub
exit
umount /mnt/dev/pts
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt
Anyway I have loaded the live usb and am attempting to fix it. Now for the question… I have kali installed on a second hard drive on my laptop with partition being sdb3 and am not sure what to put in for when I install grub. Here's the trick. Half of the drive 500gb is kali's the other half is ntfs file system for windows. Where do I install grub at. On the second hard drive? or the first hard drive? And what partition do I put It in(I know not in the ntfs partition), But maybe in the EFI system partition on the second hard drive?
Sec hard drive partitions:
/dev/sdb1 ntfs 500gp msftdata
/dev/sdb2 fat32 513mb boot,esp
/dev/sdb3 ext4 442.06gb
/dev/sdb4 Linux-swap 24gb
Ok so I just tried grub-install on /dev/sdb2 figuring its flagged boot. This is what came up: grub-install error: cannot find EFI directory.
Best Answer
Boot from the Kali Linux live USB, and launch GParted so that you can get to see on which partition Kali Linux was installed. Usually it's in the file system that ends with ext4, depending on the file system you used during the installation. In your case the Kali Linux file system was installed on
/dev/sdb3
, but it varies with different systems.If this doesn't work you can also repair the bootloader using the Boot Repair Disk.
Boot Repair Disk
Boot Repair Disk is a rescue disk that includes the Boot Repair tool.
How to get and use the disk
This solves the majority of boot sector/GRUB/MBR problems.