I have a hard drive which contains my previous installation of Ubuntu as my laptop got damaged (I am currently using it as an external hard drive). Now I have managed to copy my Ubuntu installation from the externsl drive to my local hard drive on my new laptop but I can only boot into it only when the external drive is connected (The grub menu only appears when it is).
Once I disconnect the drive and restart the laptop, I hñget the grub command screen. How can I install grub on my local disk so I can boot without the use of the drive?
sudo grub-install /dev/sda
. But may be best to review exact configuration. Post the link to the Create BootInfo summary report. Is part of Boot-Repair: https://help.ubuntu.com/community/Boot-Info – oldfred Aug 13 '18 at 20:18