This script based on this tutorial created by Andy
- Download Win11 iso
- Connect the pendrive
- Find the name of your pendrive with
lsblk
command (It should be something like/dev/sdb
)
- Find the name of your pendrive with
- Run the script:
sudo ./flash.sh <DEVICE> <ISO_PATH>
- Example:
sudo ./flash.sh /dev/sdb ~/Downloads/Win11_22H2_Polish_x64v1.iso
- Example:
⚠️ WARNING: Once accepted, the data on the <DEVICE> will be erased
- Type
y
, when script ask for permission
- Build docker image:
make build
- Run docker and flash image:
sudo make flash device=<DEVICE> iso=<ISO_PATH>