{"id":316,"date":"2015-11-12T23:15:08","date_gmt":"2015-11-12T23:15:08","guid":{"rendered":"http:\/\/tuxlabs.com\/?p=316"},"modified":"2015-11-12T23:15:08","modified_gmt":"2015-11-12T23:15:08","slug":"creating-a-bootable-usb-for-centos-on-mac-os-x","status":"publish","type":"post","link":"https:\/\/tuxlabs.com\/?p=316","title":{"rendered":"Creating a bootable USB for Centos on Mac OS X"},"content":{"rendered":"<p>I&#8217;m a huge Ubuntu fan. However, most of my &#8216;day job&#8217; work requires CentOS or RHEL, thus I commonly have to re-image my on premise Cloud with the latest and greatest CentOS. My servers are 3 Rackables by SGI, two with more CPU &amp; Memory and one (the controller node) with tons of Disk (12x1TB RAID 10) and then for off-premise I use Digital Ocean who has a fantastic product. Most modern servers do not have a CDROM\u00a0and neither do my on premise systems. Therefore, I need to place the CentOS image on a USB drive so I can re-image my lab. Here are the steps do that on Mac OS X.<\/p>\n<p><strong>List the current Disks &amp; Partitions<\/strong><\/p>\n<pre class=\"lang:default decode:true \">\u279c  ~  diskutil list\r\n\/dev\/disk0\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:      GUID_partition_scheme                        *500.3 GB   disk0\r\n   1:                        EFI                         209.7 MB   disk0s1\r\n   2:          Apple_CoreStorage                         499.4 GB   disk0s2\r\n   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3\r\n\/dev\/disk1\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:                  Apple_HFS Macintosh HD           *499.1 GB   disk1\r\n\/dev\/disk2\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:      GUID_partition_scheme                        *2.0 GB     disk2\r\n   1:                  Apple_HFS Untitled                1.9 GB     disk2s1\r\n\u279c  ~<\/pre>\n<p><strong>My USB drive is the 2GB drive at the bottom, we need to unmount that<\/strong><\/p>\n<pre class=\"lang:default decode:true \">\u279c  ~  diskutil unmountDisk \/dev\/disk2\r\nUnmount of all volumes on disk2 was successful\r\n\u279c  ~<\/pre>\n<p><strong>Next we copy the CentOS image onto the unmounted USB disk.<\/strong><\/p>\n<pre class=\"lang:default decode:true \">\u279c  ~  sudo dd if=\/Users\/jriedel\/Downloads\/CentOS-7-x86_64-Minimal-1503-01.iso of=\/dev\/disk2\r\nPassword:\r\n1302528+0 records in\r\n1302528+0 records out\r\n666894336 bytes transferred in 620.521343 secs (1074732 bytes\/sec)\r\n\u279c  ~<\/pre>\n<p>When that&#8217;s gets done your Mac will pop up a window asking you to initialize the drive, ignore that. Remove it, and your ready to boot off this USB!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/tuxlabs.com\/?p=316\" rel=\"bookmark\" title=\"Permalink to Creating a bootable USB for Centos on Mac OS X\"><p>I&#8217;m a huge Ubuntu fan. However, most of my &#8216;day job&#8217; work requires CentOS or RHEL, thus I commonly have to re-image my on premise Cloud with the latest and greatest CentOS. My servers are 3 Rackables by SGI, two with more CPU &amp; Memory and one (the controller node) with tons of Disk (12x1TB [&hellip;]<\/p>\n<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118,1,12],"tags":[],"class_list":{"0":"post-316","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-centos","7":"category-howtos","8":"category-systems-administration","9":"h-entry","10":"hentry"},"_links":{"self":[{"href":"https:\/\/tuxlabs.com\/index.php?rest_route=\/wp\/v2\/posts\/316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuxlabs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tuxlabs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tuxlabs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tuxlabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316"}],"version-history":[{"count":4,"href":"https:\/\/tuxlabs.com\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions"}],"predecessor-version":[{"id":320,"href":"https:\/\/tuxlabs.com\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions\/320"}],"wp:attachment":[{"href":"https:\/\/tuxlabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tuxlabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tuxlabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}