Create Bootable CentOS USB from Mac OS

Posted by cikul | Posted in Linux, Mac OS | Posted on 22-06-2017-05-2008

0

Create img file from downloaded iso :

Fors-MacBook-Air:Downloads cikul$ hdiutil convert -format UDRW -o CentOS-69.img CentOS-6.9-x86_64-minimal.iso        
Reading CentOS_6.9_Final                 (Apple_ISO : 0)…
...............................................................................................................................................................................................
Reading  (Apple_Free : 1)…
Elapsed Time:  2.059s
Speed: 198.1Mbytes/sec
Savings: 0.0%
created: /Users/cikul/Downloads/CentOS-69.img.dmg

List All Devices, and umount USB before flashing new image

Fors-MacBook-Air:~ cikul$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage For Sale                120.5 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Dhika Cikul            +120.1 GB   disk1
                                 Logical Volume on disk0s2
                                 EC5A9E2D-8AD9-4317-8AA6-D42A92874136
                                 Unencrypted

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *15.4 GB    disk2
   1:             Windows_FAT_32 NO NAME                 15.4 GB    disk2s1

Fors-MacBook-Air:~ cikul$ diskutil unmountDisk /dev/disk2
Unmount of all volumes on disk2 was successful

Use dd utility to copy the iso/img to USB Flash :

Fors-MacBook-Air:Downloads cikul$ time sudo dd if=CentOS-69.img.dmg of=/dev/disk2 bs=1m
Password:
408+0 records in
408+0 records out
427819008 bytes transferred in 120.542862 secs (3549103 bytes/sec)

real	2m3.909s
user	0m0.016s
sys	0m7.868s

Done…

Write a comment

*