Today I tried to replace my Ubuntu install with Debian. I also have Kali installed. Before starting the installer, I thought it would be 'fun' to try
rm -rf /*
on my Ubuntu install. But I didn't unmount the
efi partition and it got wiped out. It turns out the Debian installer has a bug and it failed to install Grub. I skipped the Grub installation and completed the rest of the steps. I
chrooted to Debian and installed Grub2. But the command
is acting weirdly. It says:
Installing for i386-pc platform. grub-install: error: cannot find a GRUB drive for sda. Check your device.map.
First, I have a 64 bit system and second, sda1 partition is set with flags
ESP. Anybody knows what is the problem here, and what is the solution?
For some reason
apt-get install grub, installed grub-efi-ia32 along with it. Installing the package grub-efi-amd64 solved the problem.