demo.mp4
Based on https://rust-osdev.github.io/uefi-rs/tutorial/hardware.html
-
Connect a USB drive (we will erase all of its data!).
-
Find its device path, e.g. via
lsblk. -
Create the GPT and correct partition layout for EFI, example using
sgdisk:sgdisk \ --clear \ --new=1:1M:10M \ --typecode=1:C12A7328-F81F-11D2-BA4B-00A0C93EC93B \ /path/to/usb_drive -
Format the partition as FAT:
mkfs.fat /path/to/usb_drive_partition
-
Mount the partition:
mount --mkdir /path/to/usb_drive_partition /mnt/usb
-
Copy in
efimux.efiasefi/boot/bootx64.efi:mkdir -p /mnt/usb/efi/boot/ cp efimux.efi /mnt/usb/efi/boot/bootx64.efi
-
Done! Now you are ready to boot from the USB.
No artificial intelligence was used in the making of this.