···11+---
22+title: "How to force a Linux device to boot from USB when the GPU is dead and you can't do it from the BIOS"
33+date: 2024-12-28
44+---
55+66+tl;dr: use `efibootmgr`
77+88+Let's say you have a Kingston DataTraveler with a Linux ISO on it and want to boot from it, but your GPU is broken or something and you can't view output. Here's what you do:
99+1010+List the potential boot targets with `sudo efibootmgr`:
1111+1212+```
1313+$ sudo efibootmgr
1414+BootCurrent: 0005
1515+Timeout: 1 seconds
1616+BootOrder: 0005,0000,0006
1717+Boot0000* Linux Boot Manager HD(3,GPT,d540ada8-f3df-4783-b774-01f46cb8246f,0x800,0xff800)/File(\EFI\systemd\systemd-bootx64.efi)
1818+Boot0005* UEFI OS HD(3,GPT,d540ada8-f3df-4783-b774-01f46cb8246f,0x800,0xff800)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
1919+Boot0006* UEFI: KingstonDataTraveler 3.0, Partition 2 PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(2,0)/USB(0,0)/HD(2,GPT,39313032-3630-4130-b232-303133343532,0x150,0x1680)0000424f
2020+```
2121+2222+The Kingston DataTraveler is Boot0006, so tell efibootmgr to mark 0006 as the next boot target:
2323+2424+```
2525+$ sudo efibootmgr --bootnext 0006
2626+BootNext: 0006
2727+BootCurrent: 0005
2828+Timeout: 1 seconds
2929+BootOrder: 0005,0000,0006
3030+Boot0000* Linux Boot Manager HD(3,GPT,d540ada8-f3df-4783-b774-01f46cb8246f,0x800,0xff800)/File(\EFI\systemd\systemd-bootx64.efi)
3131+Boot0005* UEFI OS HD(3,GPT,d540ada8-f3df-4783-b774-01f46cb8246f,0x800,0xff800)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
3232+Boot0006* UEFI: KingstonDataTraveler 3.0, Partition 2 PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(2,0)/USB(0,0)/HD(2,GPT,39313032-3630-4130-b232-303133343532,0x150,0x1680)0000424f
3333+```
3434+3535+Then reboot. You will boot off of the USB drive.