Results 1 to 3 of 3

Thread: How to Prepare A USB that i can boot on several pc's?

  1. #1
    Join Date
    Mar 2022
    Beans
    1

    How to Prepare A USB that i can boot on several pc's?

    I have dual boot on an ssd storage. Now i want to prepare another live USB External SSD disc, and use it as external OS on several PC's. But having some problem when i unplug this external storage.

    1. First i get 1 USB flash disc with ubuntu iso written with rufus. And get 1 SSD storage which i want to install ubuntu on it.
    2. I pluged in these two USB discs to pc, and boot from the one which iso written with rufus.
    3. Then i install that iso to other USB (sda) port which is my external SSD. I created 1024 mb EFI type partion and other ext4 and fat32 type of partions and tried lots of combinations.
    4. Installations is completed succesfully. And I can choose which ubuntu i want to start on grub screen now.
    5. But when i unplug this external ssd my own ubuntu is not booting. It stuck on the "gnu grub version 2.04 minimal bash-like line editing is supported " screen. To reach my own ubuntu i have to plug in this external ssd.
    6. And this external disc is not listed on the "bios - boot priority panel" neither on my pc nor other pc's.


    My aim is to create an external disk and boot it on several pc's, with only editing this "bios - boot - boot priority" on each pc. How can i make it undependent to my pc?

  2. #2
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to Prepare A USB that i can boot on several pc's?

    But when i unplug this external ssd my own ubuntu is not booting. It stuck on the "gnu grub version 2.04 minimal bash-like line editing is supported " screen. To reach my own ubuntu i have to plug in this external ssd.
    I am not sure I understand what you mean by "my own Ubuntu." Is it on an internal drive? What is the drive letter? If we dual boot by installing Ubuntu to another partition or drive whether internal or external, the new install will create a Grub boot menu with its Grub configuration file (grub.cfg) in its own /boot/grub/ directory. Remove that second Ubuntu or disconnect the drive and the first Ubuntu will not boot.

    Before disconnecting the external SSD boot into the first Ubuntu and run

    Code:
    sudo update-grub
    Does this produce a Grub menu with the first Ubuntu as the default OS to load? If it does disconnect the second Ubuntu drive (external SSD). Boot into the first Ubuntu and run the above command again. This should remove the second Ubuntu from the Grub menu.

    Regards
    Last edited by grahammechanical; March 18th, 2022 at 10:50 PM.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


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

    Re: How to Prepare A USB that i can boot on several pc's?

    You need to reinstall grub, not an update. The update just updates menu.
    sudo grub-install

    Posted work around to manually unmount & mount correct ESP during install #55 or( #23 & #26)
    https://bugs.launchpad.net/ubuntu/+s...y/+bug/1396379
    Others suggest disconnecting all other drives physically or logically in UEFI settings, so install drive is first drive.
    Or removing boot flag/esp flag from first drive, so only ESP is install drive. (I have not had that work, but others have.)
    Or if you have ESP on second or external drive, you can just reinstall grub, either manually or using Boot-Repair's advanced mode & full reinstall of grub to correct drive.

    If you have ESP - efi system partition (FAT32) on external device, you can just reinstall grub to it.
    First you need to change UUID of mount of ESP in fstab.
    sudo nano /etc/fstab
    to see UUIDs.
    lsblk -f
    Copy UUID of external drive's ESP to fstab replacing internal drives ESP mount.
    Then you can reinstall grub on external drive.

    Internal drives boot from an "ubuntu" entry at /EFI/ubuntu.
    But external devices boot from /EFI/boot at /EFI/Boot/bootx64.efi. But if full install also need /EFI/ubuntu folder in ESP.
    Full install of grub to external will resolve that.

    And an os-prober update of internal's drive grub will also add external drive's grub. But if booting on any other system you boot just like you booted live installer from UEFI boot menu.
    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.

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
  •