Ubuntu will only boot off of a USB

6,466

In case the link fails one day, here's what the great hero wilee-nilee* said (these directions solved the same problem on my notebook, too!):*

----Originally Posted by wilee-nilee----

Sounds like you have the grub bootloader installed in the usb's master boot record rather than the HD you installed Ubuntu to.

Since you can get to the Ubuntu install boot to it and run these commands. The first is to identify the HD.

sudo fdisk -l

You will see something like this, yours will show the the usb as well.


Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1209d5dd

   Device  | Boot   |  Start      | End        | Blocks    | Id  | System
/dev/sda1  | *      |  2048       |  83015679  | 41506816  |  7  | HPFS/NTFS/exFAT
/dev/sda2  |        |  83015680   | 150210559  |  33597440 |  7  | HPFS/NTFS/exFAT
/dev/sda3  |        | 150212606   | 312580095  | 81183745  | 5   | Extended
/dev/sda5  |        |  150212608  |  212791295 |  31289344 |  83 | Linux
/dev/sda6  |        |  212793344  |  242360319 |  14783488 |  83 | Linux
/dev/sda7  |        |  242362368  |  308369407 |  33003520 |  83 | Linux
/dev/sda8  |        |   308371456 |  312580095 |   2104320 |  82 | Linux swap / Solaris

Now I can see that my HD is actually sda, and the partitions have sda and a number like sda1.

sda is the master boot record area. So Identify the HD and then run this command to load grub to your mbr, I will use sda in this command make sure you use the letter for your HD,

sudo grub-install /dev/sda

Then run this to update grub and reboot and grub should show if the HD is first in the boot order in the bios.

sudo update-grub

----end of wilee-nilee's quote----

(for clarity) last step = first give the command 'sudo update-grub', and after that reboot!

(don't copy the numbers behind sda, sdb etc. : HD's 'identification' is just the three letters, without the number.

Share:
6,466

Related videos on Youtube

Jack
Author by

Jack

Updated on September 18, 2022

Comments

  • Jack
    Jack over 1 year

    I installed Ubuntu 12.04 today from a USB and the install went fine ( I replaced Windows XP with it). But when I tried to restart my computer nothing happened; a couple of minutes later I tried booting it from the USB again and it launched the installed version of Ubuntu. I can remove my USB after that point. Is there anyway for it to boot from just the hard drive or will I keep on having to boot from my USB all the time?

    • Tommie
      Tommie almost 12 years
      Please confirm that you BIOS boot-settings are set to boot from your hard-drives rather than the USB. Also, it sounds like a quite weird behavior. If anything, booting from USB should launch the ubuntu installation/live, not the installed version.
  • amc
    amc almost 12 years
    can you please edit your answer to include the steps you took to fix the problem? (in case the link you posted doesn't work one day.)
  • SRDC
    SRDC about 8 years
    Somehow this happened with Ubuntu Gnome 15 installing with a multi-install LinuxBootTD USB drive. This fixed it. Thanks!!
  • user3282375
    user3282375 over 2 years
    This fixed my bootloader issue. My system is dual-booted with windows 10 and ubuntu 21.04. I was playing around with older versions of ubuntu that I installed on an external HDD. When I installed on the HDD, I accidentally moved the bootloader there as well (this is an install menu option) so grub was not recognizing the 21.04 internal installation and just going to the grub menu when the external was not connected. Fortunately, I was able to reconnect the external HDD and boot into 21.04 then disconnect the external drive (to avoid confusion) and follow these steps.