Here i am going to show you, how to create a bootable USB flash drive in mac. In this example i will create a bootable USB flash drive in mac for window installation.
Before begin download ISO image for window. Lots of online source available for download ISO image for window or you can download from Microsoft software download page.
after completion of download open Terminal.
Type the following command:
$ diskutil list
above command give the list of all external and internal disk list.
After execution of above above command you can list like below SS
We can see the list of all connected disk. Name is start with disk0, disk1 and so on. Both are internal disk.
Now, connect a USB flash drive to mac. To create a bootable USB drive for a Windows installation, we require a USB drive with the 4 GB of minimum capacity. Larger capacity will be better.
Note: before connect USB drive to mac clear all data from USB drive or format that.
Again type the previous command and press enter
$ diskutil list
Now we can see the one more disk(external) in the list. Name of the disk is disk2
Now unmount the external disk.
Unmounting a disk makes it inaccessible by the computer.
Use below command for unmount disk
$ diskutil unmountDisk /dev/disk2
Press enter and we can see the message on terminal
"Unmount of all volumes on disk2 was successful."
Now type the following command
sudo dd if=iso_image_path of=/dev/disk2 bs=1m
iso_image_path is the location of downloaded window iso image. Get the path of iso image and replace with 'ios_image_path'
Press enter, it will prompt for enter password, enter password and press enter.
It will take some time, may be 30 - 40 mins.
After completion of process it will give message like below image
4145.514462 secs, total time taking for completion of process.
Now eject USB flash disk using following command
$ diskutil eject /dev/disk2
Again connect USB disk to mac and can check all files.
Now we have a bootable USB flash drive for window installation.
Before begin download ISO image for window. Lots of online source available for download ISO image for window or you can download from Microsoft software download page.
after completion of download open Terminal.
Type the following command:
$ diskutil list
above command give the list of all external and internal disk list.
After execution of above above command you can list like below SS
We can see the list of all connected disk. Name is start with disk0, disk1 and so on. Both are internal disk.
Now, connect a USB flash drive to mac. To create a bootable USB drive for a Windows installation, we require a USB drive with the 4 GB of minimum capacity. Larger capacity will be better.
Note: before connect USB drive to mac clear all data from USB drive or format that.
Again type the previous command and press enter
$ diskutil list
Now we can see the one more disk(external) in the list. Name of the disk is disk2
Now unmount the external disk.
Unmounting a disk makes it inaccessible by the computer.
Use below command for unmount disk
$ diskutil unmountDisk /dev/disk2
Press enter and we can see the message on terminal
"Unmount of all volumes on disk2 was successful."
Now type the following command
sudo dd if=iso_image_path of=/dev/disk2 bs=1m
iso_image_path is the location of downloaded window iso image. Get the path of iso image and replace with 'ios_image_path'
Press enter, it will prompt for enter password, enter password and press enter.
It will take some time, may be 30 - 40 mins.
After completion of process it will give message like below image
4145.514462 secs, total time taking for completion of process.
Now eject USB flash disk using following command
$ diskutil eject /dev/disk2
Again connect USB disk to mac and can check all files.
Now we have a bootable USB flash drive for window installation.

