I had upgraded Ubuntu 16.04 to 17.04 .after a while I had restarted my laptop and when it was about to restart my battery was dead and I plugged in th charger and power on my laptop and it shows a command as above picture
This happens because it is missing the initramfs for that kernel.
Start with a live USB/CD, choose 'Try Ubuntu' and open a terminal (Ctrl+Alt+T):
List your partitions with
sudo fdisk -land choose the right one to mount:
sudo mount /dev/sdaX /mnt
sdXis your Ubuntu installation on your HDD. If you have an EFI boot system you need to mount your EFI partition as well.
sudo mount /dev/sdY /mnt/boot/efi
sdYis your EFI partition.
Now mount the following and chroot into your install
sudo mount -o bind /dev /mnt/dev sudo mount -o bind /dev/pts /mnt/dev/pts sudo mount -t sysfs /sys /mnt/sys sudo mount -t proc /proc /mnt/proc sudo chroot /mnt
update-grub. Make sure you put the right version number into the next line, you can find this by
dpkg --list | grep linux-imageor
update-initramfs -u -k 4.10.0-38-generic update-grub
Unmount and reboot your system.
exit sudo umount /mnt/boot/efi sudo umount /mnt
If you get
umount: /mnt: target is busy.you can try this:
umount /mnt/proc umount /mnt/sys umount /mnt/dev/pts umount /mnt/dev umount /mnt
Reboot your system