<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>USB on Codrut Constantin Gusoi</title>
    <link>https://www.codrut.pro/tags/usb/</link>
    <description>Recent content in USB on Codrut Constantin Gusoi</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 17 Nov 2022 09:00:46 +0000</lastBuildDate>
    <atom:link href="https://www.codrut.pro/tags/usb/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Linux Bootable USB</title>
      <link>https://www.codrut.pro/snippets/linux-bootable-usb/</link>
      <pubDate>Thu, 17 Nov 2022 09:00:46 +0000</pubDate>
      <guid>https://www.codrut.pro/snippets/linux-bootable-usb/</guid>
      <description>&lt;h2 id=&#34;usage&#34;&gt;&#xA;  Usage&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#usage&#34;&gt;&#xA;    &lt;i class=&#34;fa fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo dd                                         &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  bs&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;4M status&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;progress oflag&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;direct conv&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;fsync &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;/path/to/linux.iso                         &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  of&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;/dev/sda&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;details&#34;&gt;&#xA;  Details&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#details&#34;&gt;&#xA;    &lt;i class=&#34;fa fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;bs&lt;/code&gt;: Buffer size&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;status=progress&lt;/code&gt;: shows &lt;code&gt;3749707776 bytes (3.7 GB, 3.5 GiB) copied, 913 s, 4.1 MB/s&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;oflag=direct&lt;/code&gt;: actually write to USB instead of cache&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;conv=fsync&lt;/code&gt;: actually write to USB instead of cache for real this time&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;if&lt;/code&gt;: Input File&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;of&lt;/code&gt;: USB drive&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You find the USB drive using the &lt;code&gt;lsblk&lt;/code&gt; command.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
