I have just installed ubuntu. When I turn on my computer is says "no bootable device." When I boot my computer with my USB drive plugged in, it boots to a "grub>" prompt. How can I get my computer to boot to ubuntu off of my HD?
-
what mode are you booting in? Legacy or EFI ?– raveryCommented Jul 7, 2017 at 1:33
-
I installed 16.04.2 LTS.– youngnvCommented Jul 7, 2017 at 1:34
-
in which boot mode? I assume you erased the whole drive– raveryCommented Jul 7, 2017 at 1:34
-
I don't know the difference. I have altered my boot priorities from USB to HD in the bios. But it will only boot from USB. I don't know how to find out what my boot mode is.– youngnvCommented Jul 7, 2017 at 1:36
-
is the computer 64 bit? during the install did you mark a partition as ESP?– raveryCommented Jul 7, 2017 at 1:38
1 Answer
you partition scheme looks like EFI mode active. to be sure you can shut off legacy mode in system settings;
Boot from the USB and in grub type "c" to get a command prompt
type:
linux (hd1,2)/vmlinuz root=/dev/sda2
initrd (hd1,2)/initrd.img
boot
if you get initramfs rescue mode -- enter your password then startx you should now have a desktop.
Open a terminal and type:
sudo install-grub
sudo update-grub
sudo update-initramfs -u
reboot and see what you get
EDITS: changes to reflect your particular hardware setup