Last active
August 29, 2015 14:21
-
-
Save cyberrob-zz/3c3de12c3eb726e928f7 to your computer and use it in GitHub Desktop.
Create a USB install drive from any ISO file on Mac
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
# Check out what disks exist on your Mac, make sure the installation disk exists | |
$ diskutil list | |
/dev/disk0 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *251.0 GB disk0 | |
1: EFI EFI 209.7 MB disk0s1 | |
2: Apple_HFS Macintosh HD 250.1 GB disk0s2 | |
3: Apple_Boot Recovery HD 650.0 MB disk0s3 | |
/dev/disk1 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: FDisk_partition_scheme *1.0 TB disk1 | |
1: Apple_HFS Mac-Arefly 200.2 GB disk1s1 | |
2: Apple_HFS Mac-Backup 200.2 GB disk1s2 | |
3: Windows_NTFS Arefly-Important 104.9 GB disk1s3 | |
4: Windows_NTFS Arefly-Other 495.0 GB disk1s4 | |
/dev/disk2 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: FDisk_partition_scheme *4.0 GB disk2 | |
1: 0x17 1.0 GB disk2s1 | |
# Unmount the disk you want to create installation disk into | |
$ diskutil unmountDisk [DISK-LOCATION] | |
Unmount of all volumes on [DISK-LOCATION] was successful | |
# Read the iso file into disk, it MA takes a long time about 3-5 minutes, be patient. | |
$ sudo dd if=[ISO-FILE-PATH] of=[YOUR-DESTINATION-DISK] bs=1m; sync | |
980+1 records in | |
980+1 records out | |
4111581184 bytes transferred in 407.371084 secs (10092963 bytes/sec) | |
# Eject the disk | |
$ diskutil eject [DISK-LOCATION] | |
Disk [DISK-LOCATION] ejected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment