Advertisement
jpagano

HOWTO: Create bootable Windows 10 USB drive in macOS Catalina or earlier

Jun 9th, 2022 (edited)
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. # List all connected drives and locate the drive name (disk#)
  2. diskutil list
  3.  
  4. # Format the USB drive
  5. # Where disk# represents the name of the USB drive that you found earlier in the step
  6. diskutil eraseDisk MS-DOS "WINDOWS10" MBR disk#
  7.  
  8. # Mount Windows 10 ISO file
  9. hdiutil mount ~/Downloads/Win10_21H2_English_x64.iso
  10.  
  11. # Copy Windows 10 ISO files except install.wim
  12. # CCCOMA_X64FRE_EN-US_DV9 - is the mounted point of Windows 10 ISO image
  13. # WINDOWS10 - is the mounted point of USB drive
  14. rsync -avh --progress --exclude=sources/install.wim /Volumes/CCCOMA_X64FRE_EN-US_DV9/ /Volumes/WINDOWS10
  15.  
  16. # Install brew
  17. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  18.  
  19. # Install wimlib
  20. brew install wimlib
  21.  
  22. # Split Windows 10 ISO file and copy the splitted files into USB drive
  23. wimlib-imagex split /Volumes/CCCOMA_X64FRE_EN-US_DV9/sources/install.wim /Volumes/WINDOWS10/sources/install.swm 3800
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement