{"id":1857,"date":"2017-04-24T18:06:48","date_gmt":"2017-04-24T23:06:48","guid":{"rendered":"http:\/\/osric.com\/chris\/accidental-developer\/?p=1857"},"modified":"2017-09-07T15:56:19","modified_gmt":"2017-09-07T20:56:19","slug":"making-a-bootable-usb-from-mac-osx","status":"publish","type":"post","link":"https:\/\/osric.com\/chris\/accidental-developer\/2017\/04\/making-a-bootable-usb-from-mac-osx\/","title":{"rendered":"Making a Bootable USB from Mac OSX"},"content":{"rendered":"<p>I&#8217;m running Mac OS Sierra and I needed to make a bootable CentOS 7 USB stick.<\/p>\n<p>I downloaded the <a href=\"https:\/\/www.centos.org\/download\/\">minimal ISO<\/a> and proceeded to follow the instructions at <a href=\"http:\/\/osxdaily.com\/2015\/06\/05\/copy-iso-to-usb-drive-mac-os-x-command\/\">How to Copy an ISO to a USB Drive from Mac OS X with dd<\/a>, but it never worked. The server never recognized the USB stick as valid media.<\/p>\n<p>At first, I thought it might have had to do with the formatting of the USB stick, which was FAT32. So I tried Mac OS Extended and Extended FAT, but that didn&#8217;t help either.<\/p>\n<p>As mentioned by a couple of the comments on that page, I tried writing to <code>disk2<\/code> instead of <code>disk2s1<\/code> (keep in mind that the USB key on your system may be a different disk &#8212; use <code>diskutil list<\/code> to help identify it):<\/p>\n<p><code>$ diskutil unmount disk2s1<br \/>\ndisk2s1 was already unmounted<br \/>\n$ sudo dd if=~\/Downloads\/CentOS-7-x86_64-Minimal-1611.iso of=\/dev\/rdisk2 bs=1m<\/code><\/p>\n<p>Once it finishes copying, it should look like this:<br \/>\n<code>$ diskutil list<\/p>\n<p>\/dev\/disk2 (external, physical):<br \/>\n   #:                       TYPE NAME                    SIZE       IDENTIFIER<br \/>\n   0:     FDisk_partition_scheme                        *16.1 GB    disk2<br \/>\n   1:                       0xEF                         6.4 MB     disk2s2<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using dd to write an ISO to a bootable USB drive, be sure to write to the USB drive&#8217;s main disk rather than to a formatted partition.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[232],"tags":[],"class_list":["post-1857","post","type-post","status-publish","format-standard","hentry","category-tips-tricks"],"_links":{"self":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/1857","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/comments?post=1857"}],"version-history":[{"count":3,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/1857\/revisions"}],"predecessor-version":[{"id":2034,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/1857\/revisions\/2034"}],"wp:attachment":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/media?parent=1857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/categories?post=1857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/tags?post=1857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}