Results 1 to 8 of 8

Thread: Can't boot from USB after install?

  1. #1
    Join Date
    Sep 2007
    Location
    Australia
    Beans
    766
    Distro
    Ubuntu Mate 14.04 Trusty Tahr

    Can't boot from USB after install?

    Hi,

    I installed LVM to USB,
    200MB /boot
    15GB /
    15gb /home
    1gb swap

    During install I selected "dont install grub" since I'll be using the USB somewhere else.

    In my laptop I hold F12 and select the USB and get a black screen with a cursor.

    If I install from dash "Startup Disk Creator" the USB boots.

    What do I need to do to boot correctly?

    Thanks

  2. #2
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Can't boot from USB after install?

    You need to install grub2 to the usb. By telling it not to install a bootloader, how did you expect to boot from it?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  3. #3
    Join Date
    Sep 2007
    Location
    Australia
    Beans
    766
    Distro
    Ubuntu Mate 14.04 Trusty Tahr

    Re: Can't boot from USB after install?

    I thought grub was computer specific, so i didnt install it.
    cheers i'll look up how to install grub2 on a usb

  4. #4
    Join Date
    Sep 2007
    Location
    Australia
    Beans
    766
    Distro
    Ubuntu Mate 14.04 Trusty Tahr

    Re: Can't boot from USB after install?

    OK did
    Code:
    grub-install --force --no-floppy --root-directory=/media/f7ad4fed-622f-4ac9-b361-c1636714204a /dev/sdi
    went ok

    Boots into:
    GRUB>

    how do i get it to boot? cant see what to edit in the grub.cfg

  5. #5
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Can't boot from USB after install?

    If that was the correct root partition and the usb is /dev/sdi, it should have worked.

    You can also work with /dev/sdiX, it might be easier. Mount it at some temporary point like /mnt first:
    sudo mount /dev/sdiX /mnt
    sudo grub-install --root-directory=/mnt /dev/sdi

    Also, you need to do that from ubuntu of the same version, either a hdd installation of the same version or the same cd you used to install onto the usb.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  6. #6
    Join Date
    Sep 2007
    Location
    Australia
    Beans
    766
    Distro
    Ubuntu Mate 14.04 Trusty Tahr

    Re: Can't boot from USB after install?

    Hey thanks for the great info.

    So next time when installing from alternate cd, when grub detects other operating systems, select no to install to first hdd, then when it asks where to install grub select the /dev/sdi.

    Is that right for future ref?

    Thanks

  7. #7
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Can't boot from USB after install?

    Yes, that's right.

    Note that the commands in my previous post are probably wrong because I totally forgot you are using LVM.

    If you are using LVM and you still want to add grub2 to the usb, the procedure would be slightly different. Are you still interested?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  8. #8
    Join Date
    Sep 2007
    Location
    Australia
    Beans
    766
    Distro
    Ubuntu Mate 14.04 Trusty Tahr

    Re: Can't boot from USB after install?

    I'm gonna do a reinstall because a few files became corrupted anyway..will give it a shot..

    thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •