Grub won't install
by LilDeadGirl from LinuxQuestions.org on (#5483H)
I just reinstalled kali in a dual boot with win 10, but in the process the grub failed to install. When I use recovery mode of the live usb and enter install-grub I get the following output:
i typed in install-grub sdc (also tried the EFI partition, sdc1)
returned
grub-install: warning: cannot set EFI variable Boot0000
grub-install: warning: var_set_variable: write failed no space left on device
grub-install: warning: _EFI_set_variable_mode ops>set variable() failed: no such file or directory
grub-install: error: failed to register the EFI boot entry: no such file or directory
Windows is on its own ssd (SDA) there is a shared drive an hdd (SDB) which houses the boot loader for windows and I think kali, even though I do have an EFI partition on the kali ssd. I never directed the install to use sdb2 or boot loader, it was automatic.
How do I get grub installed? Which device doesn't have enough space? If it is the windows boot loader partition on sdb2 how do I free up space?
I'd installed and all went fine until I screwed things up installing nvidia drivers, so I reinstalled. It was on my third attempt to install (never has installing an OS taken so long, but I digress) when the grub-wouldn't install. With each installation attempt I used g-parted to reformat the drive by installing a new partition table (gpt) so space shouldn't be a problem on the sdc drive.
I hope I didn't leave anything out. I did
A google search led me to try this:
You can skip installation of grub. After your installation is complete boot into kali-live and run these commands:
sudo mount /dev/sda* /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount /dev/sda+ /mnt/boot/efi
mount -o remount,rw /dev/sda+ /mnt/boot/efi
mkdir /mnt/hostrun
mount --bind /run /mnt/hostrun
chroot /mnt
mkdir /run/lvm
mount --bind /hostrun/lvm /run/lvm
grub-install /dev/sda
update-grub
exit
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt/boot/efi
umount /mnt/hostrun
umount /mnt/run/lvm
umount /mnt
which wouldn't install grub, either.


i typed in install-grub sdc (also tried the EFI partition, sdc1)
returned
grub-install: warning: cannot set EFI variable Boot0000
grub-install: warning: var_set_variable: write failed no space left on device
grub-install: warning: _EFI_set_variable_mode ops>set variable() failed: no such file or directory
grub-install: error: failed to register the EFI boot entry: no such file or directory
Windows is on its own ssd (SDA) there is a shared drive an hdd (SDB) which houses the boot loader for windows and I think kali, even though I do have an EFI partition on the kali ssd. I never directed the install to use sdb2 or boot loader, it was automatic.
How do I get grub installed? Which device doesn't have enough space? If it is the windows boot loader partition on sdb2 how do I free up space?
I'd installed and all went fine until I screwed things up installing nvidia drivers, so I reinstalled. It was on my third attempt to install (never has installing an OS taken so long, but I digress) when the grub-wouldn't install. With each installation attempt I used g-parted to reformat the drive by installing a new partition table (gpt) so space shouldn't be a problem on the sdc drive.
I hope I didn't leave anything out. I did
A google search led me to try this:
You can skip installation of grub. After your installation is complete boot into kali-live and run these commands:
sudo mount /dev/sda* /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount /dev/sda+ /mnt/boot/efi
mount -o remount,rw /dev/sda+ /mnt/boot/efi
mkdir /mnt/hostrun
mount --bind /run /mnt/hostrun
chroot /mnt
mkdir /run/lvm
mount --bind /hostrun/lvm /run/lvm
grub-install /dev/sda
update-grub
exit
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt/boot/efi
umount /mnt/hostrun
umount /mnt/run/lvm
umount /mnt
which wouldn't install grub, either.