{"id":1080,"date":"2023-02-18T09:28:09","date_gmt":"2023-02-18T09:28:09","guid":{"rendered":"https:\/\/labiol.xyz\/?p=1080"},"modified":"2023-02-18T10:39:26","modified_gmt":"2023-02-18T10:39:26","slug":"create-debian-usb-bootable-usb-stick-under-macos","status":"publish","type":"post","link":"https:\/\/www.labiol.xyz\/index.php\/2023\/02\/18\/create-debian-usb-bootable-usb-stick-under-macos\/","title":{"rendered":"Create debian usb bootable USB stick under macOS."},"content":{"rendered":"\n<p>To create debian bootable disk you can use tools already available in macOS. <br>We are going to use:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Disk Utility<\/li>\n\n\n\n<li>diskutil<\/li>\n\n\n\n<li>dd (\/bin\/dd)<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li>With &#8220;Disk Utility&#8221; you can format usb memory, delete all partition etc. Select the external disk and format as FAT<\/li>\n\n\n\n<li>Convert iso image to dmg, using the command:<br><code>hdiutil convert debian-11.6.0-amd64-DVD-1.iso -format UDRW -o debian-11.6.0-amd64-DVD-1.dmg<\/code><\/li>\n\n\n\n<li>Check external disk name<br><code>diskutil list<\/code><\/li>\n\n\n\n<li>Umount the disk<br><code>diskutil unmountDisk \/dev\/disk4<\/code>  \/\/ assuming \/dev\/disk4 is your external disk<\/li>\n\n\n\n<li>Write the image to the external disk: <br><code>sudo dd if=debian-11.6.0-amd64-DVD-1.dmg of=\/dev\/disk4 bs=1m<\/code><\/li>\n<\/ol>\n\n\n\n<p>If you need to remove partition from your external drive and &#8220;Disk Utility&#8221; is no able to do that, you can use the following example: <code>diskutil eraseDisk JHFS+ UntitledUFS disk4<\/code>.<br>That would destroy everything what is on the drive and set the JHFS+ filesystem. <\/p>\n\n\n\n<p>Note: there are other applications with nice GUI that can do the whole steps all together &#8211; but why not to use something that is already and ready to use.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To create debian bootable disk you can use tools already available in macOS. We are going to use: If you need to remove partition from your external drive and &#8220;Disk Utility&#8221; is no able to do that, you can use the following example: diskutil eraseDisk JHFS+ UntitledUFS disk4.That would destroy &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1080","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/1080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=1080"}],"version-history":[{"count":4,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/1080\/revisions"}],"predecessor-version":[{"id":1084,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/1080\/revisions\/1084"}],"wp:attachment":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=1080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=1080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=1080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}