Code: Select all
sudo mount /dev/sda2 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sda <---------where it fails
CTRL-D
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt
The error was something to do with not being able to find the EFI partition. I've tried pretty much everything on the first and second page of google that has to do with installing, reinstall, and fixing the grub. Finally, I decided to uninstall grub, and reinstall it (i know, it was a stupid idea), but now I'm running into a failed to fetch problem. If I ran apt-get update for example, it would say 'failed to fetch http://ftp.debian.org...', and so on for every other source I have. This happens every time I try to install something, including grub. I'm really frustrated, as I've been trying to fix this for the last 3 days straight, so please, if you have any idea at all please let me know. Thanks
extra info:
sources.list:
Code: Select all
deb-src http://security.debian.org/ jessie/updates main
deb http://ftp.debian.org/debian/ jessie-updates main
deb-src http://ftp.debian.org/debian/ jessie-updates main
the rest are commented out
computer: 64x hp 15-ay103dx
when I installed debian from the cd I did a full installation (no dual boot), but originally it was a windows 10 computer
the live usb runs 64x kali linux that is fully up-to-date.