Originally Posted by
jabroon
Hello,
I have been using Kali as a live-usb for a couple of months now on Mac OS X. The other day I managed to get a refund on my almost 2 year old mac (that's a great story) and bought a brand spanking new one
It's now time that I do a proper install. For the last couple of days I have been banging my head against the wall trying to get this to work. I have looked at
this guide as well as numerous documents and forum posts around the internet. I did
sorta manage to get it to work, albeit for 20 mins. It was dual booting perfectly until I tried to install the nvidia driver which sent the install nuts and somehow ended up in the first partition (which houses the .efi file) from being deleted.
I am also rather confused as a lot of the tutorials seem to be working on <1.0.8 which did not include EFI. Is there a simple way to achieve this that I have completely overlooked? Where does grub fit into the equation?
Could somebody please point me in the right direction?
Thanks
Hi there,
I am not sure how you deleted your EFI partition while installing NVIDIA, that is a good effort
As for guides working with <1.0.8, EFI was still possible then, it was just not automatic. You still needed to have the internet connected to the efi packages could be downloaded. I'll talk through reinstalling grub on that first partition.
First, boot into a live mode EFI 1.0.8 usb drive.
From live mode, open terminal and run the following:
Assuming sda2 is your root partition (where you have / mounted)
Code:
mount /dev/sda2 /mnt
Your first partition should be your EFI partiton
Code:
mount /dev/sda1 /mnt/boot/efi
Now, mount the important file systems
Code:
for i in /dev /dev/pts /proc /sys; do mount -B $i /mnt$i; done
Confirm the EFI module is loaded
Chroot the file system
Now, the reinstall
Code:
apt-get install --reinstall grub-efi-amd64
update-grub
Now, unmount everything
Code:
for i in /sys /proc /dev/pts /dev; do umount /mnt$i; done
umount /mnt/boot/efi
umount /mnt
shutdown -r now
If you don't have the internet, you can manually download and install grub-efi from the deb files. Links for what you (should) need are below
http://ftp.cc.uoc.gr/mirrors/linux/k...b7u2_amd64.deb
http://ftp.cc.uoc.gr/mirrors/linux/k...b7u2_amd64.deb