Creating a Bootable USB for Windows 10 and 11 on Linux - Linux Tutorials - Learn Linux Configuration

Creating a bootable USB drive is often necessary when you want to install or repair an operating system. This guide provides detailed steps on how to create a bootable USB drive for Windows 10 or 11 using Linux (both Debian and RPM-based distributions).

Our handy script does all the heavy lifting, making this task a breeze. The script operates by downloading the Windows ISO file, formatting the USB drive, and then copying the ISO file to the USB drive.


This is a companion discussion topic for the original entry at https://linuxconfig.org/creating-a-bootable-usb-for-windows-10-and-11-on-linux

Hello, thanks for this information.
I was using your script so I got this message below:

umount: /tmp/tmp.1ySeEcbaoy: not mounted.
rmdir: failed to remove '/tmp/tmp.1ySeEcbaoy': Directory not empty

Debugging the script, I found the issue about I don’t have ‘mount.ntfs’, I installed the package and ran it again with success.

Just to contribute a little bit with your script:
REQUIRED_COMMANDS=(“rsync” “parted” “wipefs” “mkfs.vfat” “mkfs.ntfs” “udisksctl” “sha256sum” “mount” “mount.ntfs” “umount” “mkdir” “cp” “sync” “mktemp”)