Created
September 6, 2017 10:30
-
-
Save ThomasLeister/c60895298bf3a3a1d229dc77e514d8b4 to your computer and use it in GitHub Desktop.
Make Windows 10 boot USb stick on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsblk | |
sudo fdisk /dev/sdb | |
List all partitions | |
Delete all partitions by pressing "d" | |
Create new primary Partition with full size (enter, enter, ...) | |
Set partition type by pressing "t" and set to FAT32 (choice "b") | |
write everything to disk: | |
w | |
sudo sync | |
Write filesystem to new partition | |
sudo mkfs.vfat /dev/sdb1 | |
Make Windows 10 mount dir: | |
mkdir ~/win | |
Mount win 10 image: | |
sudo mount -o loop ~/ISOs/Windows10.iso ~/win | |
write data from image to usb mountpoint: | |
rsync -av --progress ~/win/ /run/media/thomas/USBstick\ | |
sync again: | |
sudo sync | |
=> Finished! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment