Here's how to recover your boot:
Boot with a Live Ubuntu Disc and find the drive/partition where you have installed your root filesystem. Normally, it will be automatically mounted under /media
. If you don't find it there, use sudo disk -l
to see its info.
Assuming your system partition is /dev/sda1
then run the following commands in a terminal:
mkdir mnt
sudo mount /dev/sda1 mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot mnt
You will now be inside a chroot environment meaning that running commands here is equivalent to running them on your installed system. Firstly, try to reinstall GRUB2 to the device so that it copies the correct files into the /boot
folder.
grub-install /dev/sda
Find out which packages installed that have files in the boot directory and reinstall them. This will replace the kernel images that have been deleted among other things. The command to find the package is:
dpkg -S /boot
And to reinstall them. For example, reinstall the linux image you told above:
sudo apt-get install --reinstall linux-image-3.19.0-41-generic
After all, update the grub loader:
update-grub
Finally, reboot your system