0

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?

19
  • what mode are you booting in? Legacy or EFI ?
    – ravery
    Commented Jul 7, 2017 at 1:33
  • I installed 16.04.2 LTS.
    – youngnv
    Commented Jul 7, 2017 at 1:34
  • in which boot mode? I assume you erased the whole drive
    – ravery
    Commented 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.
    – youngnv
    Commented Jul 7, 2017 at 1:36
  • is the computer 64 bit? during the install did you mark a partition as ESP?
    – ravery
    Commented Jul 7, 2017 at 1:38

1 Answer 1

-1

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

13
  • says disk hd0,2 not found
    – youngnv
    Commented Jul 7, 2017 at 2:09
  • type ls (that is an L)
    – ravery
    Commented Jul 7, 2017 at 2:10
  • secure boot forbids loading module from hd0.......
    – youngnv
    Commented Jul 7, 2017 at 2:12
  • ok need to turn secure boot off in the system settings(what used to be BIOS) and looks like the USB is narked as hd0 ... so do as I marked the changes
    – ravery
    Commented Jul 7, 2017 at 2:13
  • it only allows me to take of secure boot if i change to legacy
    – youngnv
    Commented Jul 7, 2017 at 2:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .