Reinstall-Grub-on-LivaPC


1.Boot From Live-CD

2.Mount the Installed Disk to /mnt from root user


( Root Disk will be sda1 or mmcblk0p2 ,check the same using fdisk/gparted utility and change accordingly )

# mount /dev/mmcblk0p2 /mnt
# mount /dev/mmcblk0p1 /mnt/boot/efi
# mount --bind /proc /mnt/proc
# mount --bind /sys /mnt/sys
# mount --bind /dev /mnt/dev

3.Chroot to /mnt

# chroot /mnt
    (    Check internet connection "# ping google.com" ,if not check "# ping 8.8.8.8" ,if working run
        # echo "nameserver 8.8.8.8" >> /etc/resolv.conf    
     )

# apt-get update
# apt-get install grub-efi-amd64  
(Remove grub-common,grub2-common if errror , and then install grub-efi-amd64)

# grub-install /dev/mmcblk0
# update-grub2     (OR # update-grub)
# exit

4.Umount and Reboot

# umount /mnt/dev
# umount /mnt/sys
# umount /mnt/proc
# umount /mnt/boot/efi
# umount /mnt
# reboot