Advertisement
rucinski69

The steps to make UEFI USB boot stick are as follows:

Aug 4th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. The steps to make a UEFI USB boot stick are as follows: [https://www.linuxquestions.org/questions/slackware-14/easiest-way-to-make-a-current-uefi-boot-usb-4175551386/]
  2.  
  3. 1. Backup everything on the USB stick. All data on it will be deleted by following this procedure.
  4. 2. Using gdisk, delete all existing partitions.
  5. 3. Still in gdisk, create a partition 100 to 300 Mb in size.
  6. 4. Partition the rest of the space as you desire. (I'd probably make it all one partition).
  7. 5. Set the partition type of the first partition to "EFI System partition." (code EF00)
  8. 6. Set the partition types of the rest as you like. "Linux data" is code 8200.
  9. 7. Write the changes to the partition table and exit gdisk.
  10. 8. Format the first partition: mkfs.vfat /dev/sd?1
  11. 9. Format the second partition: mkfs.ext4 /dev/sd?2
  12.  
  13. The stick is now ready. All you have to do is copy the stuff onto it. Fortunately, everything you need is in the Slackware file tree.
  14.  
  15. My preference is to use Alien Bob's USB boot image & root filesystem from the "usb-and-pxe-installers" directory. To do this:
  16.  
  17. 1. mount -o loop /path/to/slackware64-current/usb-and-pxe-installers/usbboot.img /mnt/loop
  18. 2. Copy everything from your mountpoint (/mnt/loop in my example) exactly as it is to the EFI system partition on our boot stick
  19. 3. Now, provided that you have a file called /path/to/media/usbstick/EFI/BOOT/BOOTX64.EFI on the stick, it'll boot.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement