
- #INSTALL BOOTLOADER ON USB DRIVE HOW TO#
- #INSTALL BOOTLOADER ON USB DRIVE DRIVERS#
- #INSTALL BOOTLOADER ON USB DRIVE UPDATE#
- #INSTALL BOOTLOADER ON USB DRIVE WINDOWS 10#
Fortunately, that command is just a script so it will be easy to modify.įirst, create a diversion in the package management system so that any updates won't overwrite our changes: dpkg-divert -local -rename -add /usr/sbin/update-grub
#INSTALL BOOTLOADER ON USB DRIVE UPDATE#
However, the update-grub command (which is used by Debian's kernel update packages!) will not automatically update the new location. You can fix this by booting into Linux and copying the real GRUB configuration file onto the ESP, like this: mv /boot/efi/EFI/debian/grub.cfg /boot/efi/EFI/debian/Ĭp /boot/grub/grub.cfg /boot/efi/EFI/debian/grub.cfg


Without them, GRUB can only show the command prompt. And the real configuration file contains all the boot menu definitions, including the one for Windows. Obviously that cannot happen when the external flash drive is disconnected. Essentially it only identifies the filesystem that contains the Linux /boot directory by UUID, and tells GRUB to load its real configuration from there. And there's the problem: by default, Debian 10 installs only a very minimal GRUB configuration file into the ESP.
#INSTALL BOOTLOADER ON USB DRIVE DRIVERS#
Both GRUB and the Windows bootloader are installed in the EFI System Partition (ESP for short), which is your partition (hd1,1) as GRUB sees it.ĭebian 10's default UEFI GRUB includes essentially all the GRUB modules in the main grub圆4.efi executable, so a lack of filesystem drivers should not be the issue here. "debian" just brings up the Grub CLI again. Grub when the USB stick is not connected: Ideally, I'd like it that when the USB stick isn't connected, that my computer automatically boots to Windows, or if that's not possible, allow me to choose my boot method without having to snipe ESC before CLI Grub starts.

Neither of these are relevant to my case as I can get both operating systems to run fine when the USB stick is connected and I can ESC before CLI Grub comes up and F9 to choose my boot device (Windows is the only one available).
#INSTALL BOOTLOADER ON USB DRIVE HOW TO#
#INSTALL BOOTLOADER ON USB DRIVE WINDOWS 10#
