Skip to content

Instantly share code, notes, and snippets.

@sawa2d2
Created May 25, 2025 22:27
Show Gist options
  • Select an option

  • Save sawa2d2/deb9e06233bbc91a6b3deaa11ca3a06a to your computer and use it in GitHub Desktop.

Select an option

Save sawa2d2/deb9e06233bbc91a6b3deaa11ca3a06a to your computer and use it in GitHub Desktop.
extract pxe resources from a bootable usb

Specify the USB device

lsblk

Mount the device

sudo mkdir -p /mnt/usb
sudo mount /dev/sdb1 /mnt/usb

Extract resources

/mnt/usb/images/pxeboot/vmlinuz
/mnt/usb/images/pxeboot/initrd.img

Unmount after extraction

sudo umount /mnt/usb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment