If you want to create a bootable USB stick for Windows (Windows 10/11 installation media) have a look at this guide.
-
Download the desired ISO file
-
Open a terminal application (like the Apple Terminal or iTerm)
-
Convert the
.isoimage to a.dmgfile (UDIF image) using the convert option of hdiutil:
hdiutil convert -format UDRW -o /path/to/target /path/to/source.iso
hdiutil will put the
.dmgfile extension to the output file automatically.
- Get the current list of devices
diskutil list
-
Insert your USB stick
-
Run the command from step 4 again to determine the device disk assigned to your USB stick (e.g.
/dev/disk2)
diskutil list
- Unmount that disk
Note: In the next commands you have to replace
Nwith the disk number you've determined in the last command (in the previous example,Nwould be2).
diskutil unmountDisk /dev/diskN
- Burn the
.dmgimage to the flask disk. Replace/path/to/converted-iso.dmgwith the path where the converted ISO image file is located (e.g.~/Downloads/ubuntu.dmg).
sudo dd if=/path/to/converted-iso.dmg of=/dev/rdiskN bs=1m status=progress
Note: If you see the error
dd: Invalid number '1m'you are using GNU dd. Use the same command but replacebs=1mwithbs=1M.
Note: Using
/dev/rdiskinstead of/dev/diskmay be faster.
- Eject the flash disk and remove it when the command completes
diskutil eject /dev/diskN
- Now the USB stick is ready. You can boot any device from it by plugging it in, start the device, change the boot order in the BIOS or open the boot device menu and select the USB stick.
Thanks to https://www.lewan.com/blog/2012/02/10/making-a-bootable-usb-stick-on-an-apple-mac-os-x-from-an-iso where I copied most information from!