Last active
July 15, 2024 02:15
-
-
Save skyriser/75691654c8484088c0859c1f43535841 to your computer and use it in GitHub Desktop.
How to create Windows 11 install media on your Mac 2024/07
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
# on 2024/07, Windows Media ISO is not available directly download | |
# available only "Create Windows 11 Installation Media" tool | |
# => https://www.microsoft.com/software-download/windows11 | |
# downloadable Windows.iso has not inlclude install.wim but install.esd available | |
# extract install.esd with wimexport tool | |
# | |
# reference base (thanks) | |
# https://lavacreeper.medium.com/how-to-make-a-windows-11-bootable-usb-on-a-mac-a52a7c8495dc | |
# install wimlib | |
brew install wimlib | |
# mount Windows.iso | |
hdiutil mount ~/Downloads/Windows.iso | |
# format usb | |
diskutil list | |
diskutil eraseDisk MS-DOS "WIN11" MBR diskXXX | |
# copy exclude install.esd | |
rsync -vha --exclude=sources/install.esd /Volumes/ESD-ISO/* /Volumes/WIN11 | |
# extract install.esd -> install.wim | |
wimexport /Volumes/ESD-ISO/sources/install.esd all ~/install.wim --compress=LZX | |
# split install.wim -> install.swm by 4GB | |
wimlib-imagex split ~/install.wim /Volumes/WIN11/sources/install.swm 4000 | |
# eject | |
diskutil eject /Volumes/ESD-ISO | |
diskutil eject /Volumes/WIN11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment