{"id":8322,"date":"2024-11-03T01:02:00","date_gmt":"2024-11-03T05:02:00","guid":{"rendered":"https:\/\/www.both.org\/?p=8322"},"modified":"2024-10-30T16:32:11","modified_gmt":"2024-10-30T20:32:11","slug":"essential-steps-for-creating-a-usb-boot-drive-for-linux","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=8322","title":{"rendered":"Essential steps for creating a USB boot drive for Linux"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"8322\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">1    <\/span>\r\n<\/div><\/div>\n<p>I usually keep a bootable Linux USB drive with me because I never know when I will need to use one to rescue a crashed Microsoft Windows machine or turn someone on to the Linux desktop. Most distributions, including my daily driver, Linux Mint Cinnamon, have utilities that make boot disk creation much easier than it used to be. If you are on a Windows or MacOS platform, you could use a great utility like Etcher.io, which is one of my favorite boot disk creation tools. But let&#8217;s suppose that you are using a Linux computer with no connection to the internet and no other disk creation tools.<\/p>\n\n\n\n<p>You could use <strong>dd<\/strong><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\"><strong>,<\/strong>&nbsp;a tool that man<\/span>y folks have never used, but it\u2019s still a reliable utility and one that can make a bootable disk when all else fails. The&nbsp;dd&nbsp;command is a Linux utility that is sometimes referred to as &#8216;disk destroyer&#8217; or &#8216;data duplicator&#8217;. It is very useful and effective if you have no other way to create a bootable USB drive.<\/p>\n\n\n\n<p>You will need a FAT32 formatted USB drive. Then, you will need to determine the directory in which the <strong>iso<\/strong> file bearing the Linux distribution resides so that you can point to it in your command sequence. You will also need to use the <strong>lsblk<\/strong> command to determine which block device you are going to send your data to. Use of the <strong>dd<\/strong> command without good information can be devastating to the health of your system as it is easy to overwrite the wrong drive like your boot and\/or data drive.<\/p>\n\n\n\n<p>With your USB stick inserted into your computer, open a terminal issue the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ lsblk <\/code><\/pre>\n\n\n\n<p>You should receive an output that looks something like this. <\/p>\n\n\n\n<p>$ \/dev\/sdb1 or \/dev\/sdc1<\/p>\n\n\n\n<p>Unmount the drive with the following command. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo umount \/dev\/sdX1 <\/code><\/pre>\n\n\n\n<p>&nbsp;Use&nbsp;the&nbsp;<code><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">dd<\/mark><\/strong><\/code>&nbsp;command&nbsp;to&nbsp;write&nbsp;the&nbsp;ISO&nbsp;file&nbsp;to&nbsp;the&nbsp;USB&nbsp;drive:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo dd if=\/path\/to\/linux.iso of=\/dev\/sdX bs=4M status=progress\n<\/code><\/pre>\n\n\n\n<p>Replace&nbsp;<code>\/path\/to\/linux.iso<\/code>&nbsp;with&nbsp;the&nbsp;path&nbsp;to&nbsp;your&nbsp;ISO&nbsp;file&nbsp;and&nbsp;<code>\/dev\/sdX<\/code>&nbsp;with&nbsp;the&nbsp;correct&nbsp;device&nbsp;identifier<\/p>\n\n\n\n<p>After&nbsp;the&nbsp;<code><strong>dd<\/strong><\/code>&nbsp;command&nbsp;completes,&nbsp;you&nbsp;can&nbsp;verify&nbsp;that&nbsp;the&nbsp;data&nbsp;was&nbsp;written&nbsp;correctly&nbsp;by&nbsp;checking&nbsp;the&nbsp;output&nbsp;of&nbsp;<code>lsblk<\/code>&nbsp;or&nbsp;<code>fdisk<strong>&nbsp;<\/strong>-<\/code>1.<\/p>\n\n\n\n<p>Once&nbsp;the&nbsp;process&nbsp;is&nbsp;complete,&nbsp;safely&nbsp;eject&nbsp;the&nbsp;USB&nbsp;drive:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo eject \/dev\/sdX\n\n<\/code><\/pre>\n\n\n\n<p>Now you are ready to use your newly created Linux boot drive to rescue Windows systems or turn someone on to using Linux.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 I usually keep a bootable Linux USB drive with me because I never know when I will<\/p>\n","protected":false},"author":32,"featured_media":3817,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5,89],"tags":[594,185],"class_list":["post-8322","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-system-administration","tag-dd-command","tag-live-usb"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/8322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8322"}],"version-history":[{"count":4,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/8322\/revisions"}],"predecessor-version":[{"id":8328,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/8322\/revisions\/8328"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/3817"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}