Hacks.Wiki - A wikiful of hacks https://hacks.wiki/+/feed.rss en-US Hacks.Wiki - A wikiful of hacks Home <p dir="auto">Welcome to <strong>&#x1f3e1; Hacks.Wiki</strong> - a Wikifull of Hacks</p> <article class="message is-info"><div class="message-body"><p dir="auto"><em>Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.</em> - <strong>Douglas Adams</strong></p> </div></article><p dir="auto">Hacks.Wiki is an experiment to organise quick hacks, notes, bookmarks and tools into an easy-to-build-and-maintain &ldquo;Digital Garden&rdquo;.</p> <article class="message is-success"><div class="message-body"><p dir="auto">It should take others far less time and effort to do what we&rsquo;ve already done.</p> </div></article><p dir="auto">You can start by visiting <a href="+/recent">Recent</a> entries. Or start by browsing the <a href="+/tags">Hashtags</a>. There is also a <a href="+/feed.rss">RSS Feed</a> that you can subscribe to. And - &#x1f38a;surprise - there is an ActivityPub handle as well; Just follow <code>hacks@hacks.wiki</code> via a Mastodon / Pleroma / Soapbox / Misskey and other instances and tools.</p> <p dir="auto">Powered by: Xlog - <a href="https://xlog.emadelsaid.com/">https://xlog.emadelsaid.com/</a><br> Source code: <a href="https://sovran.dev/abhas/hacks-wiki">https://sovran.dev/abhas/hacks…</a></p> <p dir="auto">Unless otherwise noted, all hacks in this wiki are licensed under <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY-4.0</a>.</p> 2023-02-28T00:20:07+05:30 Home https://hacks.wiki/Home site/README <h1 id="hacks-wiki" dir="auto">hacks-wiki <a class="show-on-parent-hover is-hidden has-text-grey" href="#hacks-wiki">¶</a></h1> <p dir="auto">A Wikiful of Hacks: Hacks.Wiki is an experiment to organise quick hacks, notes, bookmarks and tools into an easy-to-build-and-maintain “Digital Garden”.</p> 2023-02-28T00:11:02+05:30 site/README https://hacks.wiki/site/README Migrate from UEFI to (Legacy) BIOS <p dir="auto">Migrating Grub from a UEFI system to a BIOS (legacy) system &#x1f501;</p> <p dir="auto">The general steps are:</p> <ul dir="auto"> <li><input type="checkbox" disabled="" > Boot the computer using a live boot image - Eg. <a href="https://www.system-rescue.org/">System Rescue Image</a></li> <li><input type="checkbox" disabled="" > Mount the root filesystem<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup></li> <li><input type="checkbox" disabled="" > Bind mount <code>/dev</code>, <code>/sys</code>, <code>/proc</code> and <code>/run</code><sup id="fnref:2"><a href="#fn:2" class="footnote-ref" role="doc-noteref">2</a></sup></li> <li><input type="checkbox" disabled="" > Change your EFI boot partition to <code>EF02 BIOS boot partition</code><sup id="fnref:3"><a href="#fn:3" class="footnote-ref" role="doc-noteref">3</a></sup></li> <li><input type="checkbox" disabled="" > Chroot into the mounted file-system</li> <li><input type="checkbox" disabled="" > Re-install Grub <sup id="fnref:4"><a href="#fn:4" class="footnote-ref" role="doc-noteref">4</a></sup></li> </ul> <p dir="auto">Here is someone who has documented this process in good detail:</p> <div class="card my-5"> <header class="card-header"> <p class="card-header-title"> <strong><a href="https://logan.tw/posts/2015/05/17/grub-install-and-btrfs-root-file-system/">Grub Install and Btrfs Root File System | Logan&#39;s Note</a></strong> </p> </header> <div class="card-footer"> <a class="card-footer-item" href="https://logan.tw/posts/2015/05/17/grub-install-and-btrfs-root-file-system/">https://logan.tw/posts/2015/05/17/grub-install-and-btrfs-root-file-system/</a> </div></div> <p dir="auto"><a href="/+/tag/grub" class="tag is-info is-light">#grub</a> <a href="/+/tag/seabios" class="tag is-info is-light">#seabios</a> <a href="/+/tag/coreboot" class="tag is-info is-light">#coreboot</a> <a href="/+/tag/uefi" class="tag is-info is-light">#uefi</a></p> <div class="footnotes" role="doc-endnotes"> <hr> <ol> <li id="fn:1"> <p dir="auto"><a href="/Mounting%20BTRFS%20subvolumes">Mounting BTRFS subvolumes</a> needs an extra option&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p> </li> <li id="fn:2"> <p dir="auto"><code>for f in dev sys proc run; do mount --bind /$f /mnt/$f; done</code>&#160;<a href="#fnref:2" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p> </li> <li id="fn:3"> <p dir="auto">Remember to use <code>gdisk</code> if you have a GPT partition table. The BIOS boot partition code is <strong><code>EF02</code></strong>&#160;<a href="#fnref:3" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p> </li> <li id="fn:4"> <p dir="auto"><code>grub-install /dev/sda</code>&#160;<a href="#fnref:4" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p> </li> </ol> </div> 2023-02-28T00:06:41+05:30 Migrate from UEFI to (Legacy) BIOS https://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS Detect UEFI or BIOS <p dir="auto">Here is how you can detect if you&rsquo;ve booted your computer using a UEFI BIOS or a Legacy BIOS. First, install the <code>dmidecode</code> utility from your operating system repository. On Debian, you can:</p> <pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1</span><span>apt-get install dmidecode </span></span></code></pre><p dir="auto"><code>dmidecode</code> reports information related to the BIOS under a <em>type 0</em> entry. A quick way to detect the BIOS mode is:</p> <pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1</span><span>sudo dmidecode -t <span style="color:#bd93f9">0</span> | grep UEFI &gt; /dev/null <span style="color:#ff79c6">&amp;&amp;</span> <span style="color:#8be9fd;font-style:italic">echo</span> UEFI <span style="color:#ff79c6">||</span> <span style="color:#8be9fd;font-style:italic">echo</span> BIOS </span></span></code></pre><p dir="auto">On a (Legacy) BIOS system you would see:</p> <pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1</span><span>$ sudo dmidecode -t <span style="color:#bd93f9">0</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2</span><span><span style="color:#6272a4"># dmidecode 3.4</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3</span><span>Getting SMBIOS data from sysfs. </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4</span><span>SMBIOS 3.0.0 present. </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5</span><span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6</span><span>Handle 0x0000, DMI <span style="color:#8be9fd;font-style:italic">type</span> 0, <span style="color:#bd93f9">26</span> bytes </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7</span><span>BIOS Information </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8</span><span> Vendor: 3mdeb </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9</span><span> Version: Dasharo <span style="color:#ff79c6">(</span>coreboot+SeaBIOS<span style="color:#ff79c6">)</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10</span><span> Release Date: 08/23/2022 </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11</span><span> ROM Size: <span style="color:#bd93f9">12</span> MB </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12</span><span> Characteristics: </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13</span><span> PCI is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14</span><span> PC Card <span style="color:#ff79c6">(</span>PCMCIA<span style="color:#ff79c6">)</span> is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15</span><span> BIOS is upgradeable </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16</span><span> Selectable boot is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17</span><span> ACPI is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18</span><span> Targeted content distribution is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">19</span><span> BIOS Revision: 0.0 </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">20</span><span> Firmware Revision: 0.0 </span></span></code></pre><p dir="auto">On a UEFI system you would see:</p> <pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1</span><span>$ sudo dmidecode -t <span style="color:#bd93f9">0</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2</span><span><span style="color:#6272a4"># dmidecode 3.4</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3</span><span>Getting SMBIOS data from sysfs. </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4</span><span>SMBIOS 3.1.1 present. </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5</span><span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6</span><span>Handle 0x0000, DMI <span style="color:#8be9fd;font-style:italic">type</span> 0, <span style="color:#bd93f9">26</span> bytes </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7</span><span>BIOS Information </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8</span><span> Vendor: American Megatrends Inc. </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9</span><span> Version: <span style="color:#bd93f9">2202</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10</span><span> Release Date: 07/14/2020 </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11</span><span> Address: 0xF0000 </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12</span><span> Runtime Size: <span style="color:#bd93f9">64</span> kB </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13</span><span> ROM Size: <span style="color:#bd93f9">16</span> MB </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14</span><span> Characteristics: </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15</span><span> PCI is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16</span><span> APM is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17</span><span> BIOS is upgradeable </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18</span><span> BIOS shadowing is allowed </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">19</span><span> Boot from CD is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">20</span><span> Selectable boot is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">21</span><span> BIOS ROM is socketed </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">22</span><span> EDD is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">23</span><span> Print screen service is supported <span style="color:#ff79c6">(</span>int 5h<span style="color:#ff79c6">)</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">24</span><span> <span style="color:#bd93f9">8042</span> keyboard services are supported <span style="color:#ff79c6">(</span>int 9h<span style="color:#ff79c6">)</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">25</span><span> Serial services are supported <span style="color:#ff79c6">(</span>int 14h<span style="color:#ff79c6">)</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">26</span><span> Printer services are supported <span style="color:#ff79c6">(</span>int 17h<span style="color:#ff79c6">)</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">27</span><span> ACPI is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">28</span><span> USB legacy is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">29</span><span> BIOS boot specification is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">30</span><span> Targeted content distribution is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">31</span><span> UEFI is supported </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">32</span><span> BIOS Revision: 5.13 </span></span></code></pre><p dir="auto"><a href="/+/tag/uefi" class="tag is-info is-light">#uefi</a> <a href="/+/tag/seabios" class="tag is-info is-light">#seabios</a> <a href="/+/tag/coreboot" class="tag is-info is-light">#coreboot</a> <a href="/+/tag/bios" class="tag is-info is-light">#bios</a> &#x1f462;</p> 2023-02-28T00:05:52+05:30 Detect UEFI or BIOS https://hacks.wiki/Detect%20UEFI%20or%20BIOS Mounting BTRFS subvolumes <p dir="auto">If you have installed GNU/Linux with BTRFS as the filesystem, chances are that your OS installer has used <strong>sub-volumes</strong> for the <code>root</code>, <code>home</code> and other mount points. &#x1f5c4;&#xfe0f;</p> <p dir="auto">You can verify this by mounting the actual root filesystem device and listing its contents:</p> <pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1</span><span><span style="color:#6272a4"># ls -l /mnt/</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2</span><span>total <span style="color:#bd93f9">0</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">204</span> Feb <span style="color:#bd93f9">22</span> 13:28 @ </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">180</span> Feb <span style="color:#bd93f9">22</span> 14:29 @cache </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">10</span> Dec <span style="color:#bd93f9">2</span> 10:52 @home </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">482</span> Feb <span style="color:#bd93f9">26</span> 00:00 @log </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7</span><span>drwxr-x--- <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">350</span> Feb <span style="color:#bd93f9">23</span> 15:40 @root </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">8</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">14</span> Oct <span style="color:#bd93f9">19</span> 07:42 @srv </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">9</span><span>drwxrwxrwt <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">1576</span> Feb <span style="color:#bd93f9">27</span> 17:18 @tmp </span></span></code></pre><p dir="auto">Here <code>@</code>, <code>@home</code>, <code>@log</code> etc. are the BTRFS sub-volumes. <code>@</code> is the OS root sub-volume. You can mount by giving the <code>-osubvol=@</code> option to the mount command:</p> <pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1</span><span><span style="color:#6272a4"># mount -osubvol=@ /dev/dm-0 /mnt/</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2</span><span><span style="color:#6272a4"># ls -l /mnt/</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3</span><span>total <span style="color:#bd93f9">24</span> </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4</span><span>lrwxrwxrwx <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">7</span> Feb <span style="color:#bd93f9">1</span> 02:21 bin -&gt; usr/bin </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">208</span> Feb <span style="color:#bd93f9">22</span> 13:30 boot </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">8</span> Oct <span style="color:#bd93f9">20</span> 18:39 dev </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">5018</span> Feb <span style="color:#bd93f9">25</span> 10:56 etc </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">0</span> Dec <span style="color:#bd93f9">2</span> 10:48 home </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9</span><span>lrwxrwxrwx <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">7</span> Feb <span style="color:#bd93f9">1</span> 02:21 lib -&gt; usr/lib </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10</span><span>lrwxrwxrwx <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">7</span> Feb <span style="color:#bd93f9">1</span> 02:21 lib64 -&gt; usr/lib </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">22</span> Dec <span style="color:#bd93f9">16</span> 13:00 mnt </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">214</span> Feb <span style="color:#bd93f9">23</span> 15:50 opt </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">0</span> Dec <span style="color:#bd93f9">2</span> 10:48 proc </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14</span><span>drwxr-xr-x <span style="color:#bd93f9">1</span> root root <span style="color:#bd93f9">66</span> Oct <span style="color:#bd93f9">20</span> 18:47 root </span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15</span><span> .... .... .... </span></span></code></pre><p dir="auto"><a href="/+/tag/linux" class="tag is-info is-light">#linux</a> <a href="/+/tag/btrfs" class="tag is-info is-light">#btrfs</a> <a href="/+/tag/systemrescue" class="tag is-info is-light">#systemrescue</a> <a href="/+/tag/filesystem" class="tag is-info is-light">#filesystem</a></p> 2023-02-27T23:42:13+05:30 Mounting BTRFS subvolumes https://hacks.wiki/Mounting%20BTRFS%20subvolumes starred <p dir="auto"><a href="/Home">Home</a></p> 2023-02-27T23:41:14+05:30 starred https://hacks.wiki/starred Chromebox-Audio <p dir="auto">&#x1f3a7; If you have to use a Chromebox with GNU/Linux, the sound might not work right away. To get <strong>Intel Corporation Sunrise Point-LP HD Audio</strong> working, do do the following:</p> <pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1</span><span> <span style="color:#8be9fd;font-style:italic">echo</span> <span style="color:#f1fa8c">&#34;options snd-intel-dspcfg dsp_driver=1&#34;</span> &gt; /etc/modprobe.d/inteldsp.conf </span></span></code></pre><p dir="auto">Once you reboot, you should be able to use Audio over HDMI or the built-in headphone jack.</p> <p dir="auto"><a href="/+/tag/chromebox" class="tag is-info is-light">#chromebox</a> <a href="/+/tag/linux" class="tag is-info is-light">#linux</a> <a href="/+/tag/audio" class="tag is-info is-light">#audio</a></p> 2023-02-27T17:37:52+05:30 Chromebox-Audio https://hacks.wiki/Chromebox-Audio