Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: Ubuntu on USB stick not booting properly

  1. #21
    Join Date
    May 2013
    Location
    Paris, France
    Beans
    174
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    Re: Ubuntu on USB stick not booting properly

    You are both right! I've taken a look inside my BIOS configuration; the result is surprising:

    - when I remove the USB stick from the USB port, it disappears from the ordered device boot list: no poblem with that;
    - however, when I insert it back, it is not listed back. Manually inserting it back in the boot list solves this issue.

    As a conclusion, I can say that the "error: failure reading sector" messages come from an issue in my BIOS: it seems fair to expect the BIOS to at least be able to detect the presence of a USB stick without needing to manually update the boot order, which btw is useless since it cannot boot on it.

    N.B: my system is a MSI-GE60-2OE with BIOS release n° E16GCIMS.511
    Firmware 9.0.2.1345
    The USB stick is a CORSAIR Flash Voyager 3.0
    Last edited by actionmystique; July 10th, 2014 at 02:50 PM.

  2. #22
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Ubuntu on USB stick not booting properly

    With such a problem, chainloading from the internal drive (and accessing the USB stick later on) might solve the problem to boot from the USB stick.

  3. #23
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Ubuntu on USB stick not booting properly

    I have several drives and full installs on flash drives.
    From BIOS/grub the boot drive is always hd0.
    And since I skipped a SATA port on motherboard my flash drive is sde when plugged in and running, but when rebooting it is sdb and all other drives are one letter more.

    If BIOS cannot see that drive is bootable then it will not show in boot options. Either drive has errors or not configured correctly.

    Is system UEFI or BIOS? Then you have to have flash drive in correct boot mode.

    And I have had issues booting flash drive when other flash drives are plugged in. And others have posted issues with some ports working better than others, USB2 vs USB3 and combinations of brands.

    Sudodus posted some of the tests with various models of flash drives.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #24
    Join Date
    May 2013
    Location
    Paris, France
    Beans
    174
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    Re: Ubuntu on USB stick not booting properly

    @sudodus: I'll try chainloading later on.
    @oldfred: the system is EFI. I'll try later to boot on other USB ports. However, that might crash the grub menu since it is expecting "hd1" which is sdb for the USB stick.

  5. #25
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Ubuntu on USB stick not booting properly

    1. If you use UUID in grub, there will be no problem with hd0, hd1, ... , Edit: but then we are not talking about chainloading, but according to this link

    http://ubuntuforums.org/showthread.p...9#post12893689

    2. It will probably be the same hd1 independent of the USB port (provided you have no other competing USB drives connected).
    Last edited by sudodus; July 10th, 2014 at 03:47 PM.

  6. #26
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Ubuntu on USB stick not booting properly

    If you boot hard drive in BIOS then flash drive will be hd1, But if you boot flash drive directly it will be hd0.
    And search by UUID should override any setting that is incorrect, but I have had to manually edit grub on occasion.

    And are both installs, hard drive & flash drive configured for UEFI?
    UEFI & BIOS are not compatible, so once you start booting in one mode you cannot change. Best then to follow sudodus' link on configuring flash drive for both UEFI & BIOS so you can boot various systems.

    Often then better for us to see all the details, post link to BootInfo report:
    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
    https://help.ubuntu.com/community/Boot-Repair
    Last edited by oldfred; July 10th, 2014 at 04:36 PM.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #27
    Join Date
    May 2013
    Location
    Paris, France
    Beans
    174
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    Re: Ubuntu on USB stick not booting properly

    Quote Originally Posted by sudodus View Post
    1. If you use UUID in grub, there will be no problem with hd0, hd1,
    Can I replace "set root='hd1,gpt2'" by "search.fs_uuid <UUID> root", and replace all calls to "hd1,gpt2" by "$root"?
    And what about "ahci1,gpt2" in:
    ...
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 <USB-Stick-UUID>
    ...

    Quote Originally Posted by sudodus View Post
    12. It will probably be the same hd1 independent of the USB port (provided you have no other competing USB drives connected).
    I do have other competing USB drives.

  8. #28
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Ubuntu on USB stick not booting properly

    In /boot/grub/grub.cfg or /etc/grub.d/40_custom you can try something like

    Code:
    search --no-floppy --fs-uuid --set=root 4802ca6d-6af9-4148-8785-4fb053951908
    after the set root command. I'm not sure you need the hints, maybe maybe not.

    Use the UUID that fits your root partition. You find it with the command

    Code:
    sudo blkid

  9. #29
    Join Date
    May 2013
    Location
    Paris, France
    Beans
    174
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    Re: Ubuntu on USB stick not booting properly

    Quote Originally Posted by oldfred View Post
    If BIOS cannot see that drive is bootable then it will not show in boot options. Either drive has errors or not configured correctly.
    It does show in boot order options only when it is the only USB device connected...

    Quote Originally Posted by oldfred View Post
    And I have had issues booting flash drive when other flash drives are plugged in. And others have posted issues with some ports working better than others, USB2 vs USB3 and combinations of brands.
    This USB flash drive cannot boot directly on itself:
    - when it is mixed with other USB devices connected to the system
    - when it is the only inserted USB device
    - whether it is inserted in USB2 or USB3 port type

  10. #30
    Join Date
    May 2013
    Location
    Paris, France
    Beans
    174
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    Re: Ubuntu on USB stick not booting properly

    Quote Originally Posted by sudodus View Post
    In /boot/grub/grub.cfg or /etc/grub.d/40_custom you can try something like

    Code:
    search --no-floppy --fs-uuid --set=root 4802ca6d-6af9-4148-8785-4fb053951908
    after the set root command. I'm not sure you need the hints, maybe maybe not.

    Use the UUID that fits your root partition. You find it with the command

    Code:
    sudo blkid
    I've just tried with grub-customizer; it's easier to modify the boot scripts, even though there are a few issues with this software (it mixes the UUIDs sometimes and mixes the grub configurations across boot devices...).
    I've replaced:

    • set root='hd1,gpt2'
    • if [ x$feature_platform_search_hint = xy ]; then

      • search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 0544873e-3a01-44c3-b61e-12f3739ed514

    • else

      • search --no-floppy --fs-uuid --set=root 0544873e-3a01-44c3-b61e-12f3739ed514

    • fi

    with only:

    • search --no-floppy --fs-uuid --set=root 0544873e-3a01-44c3-b61e-12f3739ed514


    And it works! If I insert the USB stick into another port (from sdb to sdc), it can still boot
    With the old code, it crashed!
    Last edited by actionmystique; July 13th, 2014 at 11:15 AM.

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

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
  •