Update grub to Boot From USB Drive?

I note that there is a new set of images dated 2019-03-23 that now boot through grub. Can someone give instructions on how to update grub to boot from a USB drive? For instance, I've installed this new image to both an sdcard and a USB flashdrive. Seems I should be able to get the sdcard grub to boot from the USB flashdrive-installed system.
Thanks for any info.

Comments

  • @CaptManiac update-grub has an os-prober script that will detect operating systems on other devices such as USB. What happens when you run the USB stick plugged in? Check your /boot/grub/grub.cfg

  • Yeah, update-grub doesn't change anything. grub.cfg still shows the original configuration. One possible issue is that both drives have the same UUIDs for the two partitions. I changed the USB flashdrive's BTRFS partition's UUID, but this had no effect with update-grub.

    I was able to hack the system, by manually editing grub.cfg to use the new UUID of the flashdrive, and it now boots into the USB flashdrive. But the file specifically says to not edit it, and that it can be overwritten.

Sign In or Register to comment.