﻿{"id":1368,"date":"2015-10-16T13:51:03","date_gmt":"2015-10-16T05:51:03","guid":{"rendered":"http:\/\/nick.txtcc.com\/?p=1368"},"modified":"2015-10-16T13:51:03","modified_gmt":"2015-10-16T05:51:03","slug":"how-to-create-a-bootable-usb-stick-on-os-x","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/mac-os\/1368","title":{"rendered":"How to create a bootable USB stick on OS X"},"content":{"rendered":"<p>We would encourage Mac users to download Ubuntu Desktop Edition by burning a CD. But if you prefer to use a USB stick, please follow the instructions below.<\/p>\n<p><strong>Note:<\/strong> this procedure requires that you create an .img file from the .iso file you download. It will also change the filesystem that is on the USB stick to make it bootable, so backup all data before continuing.<\/p>\n<div class=\"box box-tip no-margin-bottom\">\n\n<strong>Tip:<\/strong> Drag and drop a file from Finder to Terminal to &#8216;paste&#8217; the full path without risking typing errors.\n\n<\/div>\n<div class=\"box box-highlight\">\n<ol class=\"no-bullets\">\n    <li class=\"clearfix\">1\n<div>\n\n<a href=\"http:\/\/www.ubuntu.com\/download\/desktop\">Download Ubuntu Desktop<\/a>\n\n<\/div><\/li>\n    <li class=\"clearfix\">2\n<div>\n\nOpen the Terminal (in \/Applications\/Utilities\/ or query Terminal in Spotlight).\n\n<\/div><\/li>\n    <li class=\"clearfix\">3\n<div>\n\nConvert the .iso file to .img using the convert option of hdiutil e.g.,\n<pre>hdiutil convert -format UDRW -o ~\/path\/to\/target.img ~\/path\/to\/ubuntu.iso<\/pre>\n<strong>Note:<\/strong> OS X tends to put the .dmg ending on the output file automatically.\n\n<\/div><\/li>\n    <li class=\"clearfix\">4\n<div>\n\nRun\n<pre>diskutil list<\/pre>\nto get the current list of devices.<\/div><\/li>\n    <li class=\"clearfix\">5\n<div>\n\nInsert your flash media.\n\n<\/div><\/li>\n    <li class=\"clearfix\">6\n<div>\n\nRun\n<pre>diskutil list<\/pre>\nagain and determine the device node assigned to your flash media (e.g. \/dev\/disk2).<\/div><\/li>\n    <li class=\"clearfix\">7\n<div>\n\nRun\n<pre>diskutil unmountDisk \/dev\/diskN<\/pre>\n(replace N with the disk number from the last command; in the previous example, N would be 2).<\/div><\/li>\n    <li class=\"clearfix\">8\n<div>\n\nExecute\n<pre>sudo dd if=\/path\/to\/downloaded.img of=\/dev\/rdiskN bs=1m<\/pre>\n(replace \/path\/to\/downloaded.img with the path where the image file is located; for example, .\/ubuntu.img or .\/ubuntu.dmg).\n<ul>\n    <li>Using \/dev\/rdisk instead of \/dev\/disk may be faster<\/li>\n    <li>If you see the error dd: Invalid number &#8216;1m&#8217;, you are using GNU dd. Use the same command but replace bs=1m with bs=1M<\/li>\n    <li>If you see the error dd: \/dev\/diskN: Resource busy, make sure the disk is not in use. Start the &#8216;Disk Utility.app&#8217; and unmount (don&#8217;t eject) the drive<\/li>\n<\/ul>\n<\/div><\/li>\n    <li class=\"clearfix\">9\n<div>\n\nRun\n<pre>diskutil eject \/dev\/diskN<\/pre>\nand remove your flash media when the command completes.<\/div><\/li>\n    <li class=\"clearfix\"><span class=\"double\">10<\/span>\n<div>\n\nRestart your Mac and press alt\/option key while the Mac is restarting to choose the USB stick.\n\n<\/div><\/li>\n<\/ol>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>We would encourage Mac users to download Ubuntu Desktop Edition by burning a CD. But if you prefer t&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[340],"tags":[434,435],"class_list":["post-1368","post","type-post","status-publish","format-standard","hentry","category-mac-os","tag-bootable","tag-flashdisk"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=1368"}],"version-history":[{"count":1,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1368\/revisions"}],"predecessor-version":[{"id":1369,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1368\/revisions\/1369"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=1368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=1368"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=1368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}