|
|
- <?xml version="1.0" encoding="UTF-8"?>
- <rss version="2.0">
- <channel>
- <title>Hacks.Wiki - Today I Learned...</title>
- <link>https:///+/feed.rss</link>
- <language>en-US</language>
- <description></description>
- <item>
- <title>Migrate from UEFI to (Legacy) BIOS</title>
- <description><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>
&
- <pubDate>2023-02-28T00:06:41.560136473+05:30</pubDate>
- <guid>Migrate from UEFI to (Legacy) BIOS</guid>
- <link>https:///Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS</link>
- </item>
- <item>
- <title>Detect UEFI or BIOS</title>
- <description><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<
- <pubDate>2023-02-28T00:05:52.993470865+05:30</pubDate>
- <guid>Detect UEFI or BIOS</guid>
- <link>https:///Detect%20UEFI%20or%20BIOS</link>
- </item>
- <item>
- <title>Home</title>
- <description><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">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>
</description>
- <pubDate>2023-02-27T23:57:48.550148127+05:30</pubDate>
- <guid>Home</guid>
- <link>https:///Home</link>
- </item>
- <item>
- <title>Mounting BTRFS subvolumes</title>
- <description><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

- <pubDate>2023-02-27T23:42:13.170168807+05:30</pubDate>
- <guid>Mounting BTRFS subvolumes</guid>
- <link>https:///Mounting%20BTRFS%20subvolumes</link>
- </item>
- <item>
- <title>starred</title>
- <description><p dir="auto"><a href="/Home">Home</a></p>
</description>
- <pubDate>2023-02-27T23:41:14.286836779+05:30</pubDate>
- <guid>starred</guid>
- <link>https:///starred</link>
- </item>
- <item>
- <title>Chromebox-Audio</title>
- <description><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>
</description>
- <pubDate>2023-02-27T17:37:52+05:30</pubDate>
- <guid>Chromebox-Audio</guid>
- <link>https:///Chromebox-Audio</link>
- </item>
- </channel>
- </rss>
|