Skip to content

Instantly share code, notes, and snippets.

@isfaaghyth
Last active February 16, 2021 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isfaaghyth/cf50463c65f8122f707c2513f2d527f7 to your computer and use it in GitHub Desktop.
Save isfaaghyth/cf50463c65f8122f707c2513f2d527f7 to your computer and use it in GitHub Desktop.
How to create Windows bootable on MacOS

Requirement

Format flashdisk into MBR

  1. check your flashdisk directory using diskutil list, for example, my flashdisk is dev/disk3.
  2. format it with diskutil eraseDisk MS-DOS WIN_LABEL MBR /dev/disk3

Create a bootable

  1. Install the wimlib via homebrew brew install wimlib
  2. After that, copy all of windows image files into your flashdisk.
  3. in sources dir, you will find install.wim file,
  4. convert it into SWM with wimlib-imagex split /dev/disk3/install.wim /dev/disk3/install.swm 4000
  5. if converting is finished, you will see a few file are generated, keep it in sources folder, and
  6. delete a install.wim file.
  7. done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment