diff --git a/+/activitypub/@hacks/outbox/1 b/+/activitypub/@hacks/outbox/1
index ef92059..1d3ed7d 100755
--- a/+/activitypub/@hacks/outbox/1
+++ b/+/activitypub/@hacks/outbox/1
@@ -1 +1 @@
-{"@context":"https://www.w3.org/ns/activitystreams","id":"https://hacks.wiki/+/activitypub/@hacks/outbox/0","type":"OrderedCollectionPage","prev":"https://hacks.wiki/+/activitypub/@hacks/outbox/-1","next":"https://hacks.wiki/+/activitypub/@hacks/outbox/1","partOf":"https://hacks.wiki/+/activitypub/@hacks/outbox","orderedItems":[{"id":"https://hacks.wiki/Home","type":"Create","actor":"https://hacks.wiki/+/activitypub/@hacks","published":"2023-02-28T00:20:07+05:30","to":["https://www.w3.org/ns/activitystreams#Public"],"Object":{"id":"https://hacks.wiki/Home","type":"Note","published":"2023-02-28T00:20:07+05:30","url":"https://hacks.wiki/Home","attributedTo":"https://hacks.wiki/+/activitypub/@hacks","to":["https://www.w3.org/ns/activitystreams#Public"],"Content":"Home\nhttps://hacks.wiki/Home"}}]}
\ No newline at end of file
+{"@context":"https://www.w3.org/ns/activitystreams","id":"https://hacks.wiki/+/activitypub/@hacks/outbox/0","type":"OrderedCollectionPage","prev":"https://hacks.wiki/+/activitypub/@hacks/outbox/-1","next":"https://hacks.wiki/+/activitypub/@hacks/outbox/1","partOf":"https://hacks.wiki/+/activitypub/@hacks/outbox","orderedItems":[{"id":"https://hacks.wiki/Home","type":"Create","actor":"https://hacks.wiki/+/activitypub/@hacks","published":"2023-02-28T00:20:07.14678556+05:30","to":["https://www.w3.org/ns/activitystreams#Public"],"Object":{"id":"https://hacks.wiki/Home","type":"Note","published":"2023-02-28T00:20:07.14678556+05:30","url":"https://hacks.wiki/Home","attributedTo":"https://hacks.wiki/+/activitypub/@hacks","to":["https://www.w3.org/ns/activitystreams#Public"],"Content":"Home\nhttps://hacks.wiki/Home"}}]}
\ No newline at end of file
diff --git a/+/activitypub/@hacks/outbox/3 b/+/activitypub/@hacks/outbox/3
index 0a4fd8a..191eb56 100755
--- a/+/activitypub/@hacks/outbox/3
+++ b/+/activitypub/@hacks/outbox/3
@@ -1 +1 @@
-{"@context":"https://www.w3.org/ns/activitystreams","id":"https://hacks.wiki/+/activitypub/@hacks/outbox/2","type":"OrderedCollectionPage","prev":"https://hacks.wiki/+/activitypub/@hacks/outbox/1","next":"https://hacks.wiki/+/activitypub/@hacks/outbox/3","partOf":"https://hacks.wiki/+/activitypub/@hacks/outbox","orderedItems":[{"id":"https://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS","type":"Create","actor":"https://hacks.wiki/+/activitypub/@hacks","published":"2023-02-28T00:06:41+05:30","to":["https://www.w3.org/ns/activitystreams#Public"],"Object":{"id":"https://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS","type":"Note","published":"2023-02-28T00:06:41+05:30","url":"https://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS","attributedTo":"https://hacks.wiki/+/activitypub/@hacks","to":["https://www.w3.org/ns/activitystreams#Public"],"Content":"Migrate from UEFI to (Legacy) BIOS\nhttps://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS"}}]}
\ No newline at end of file
+{"@context":"https://www.w3.org/ns/activitystreams","id":"https://hacks.wiki/+/activitypub/@hacks/outbox/2","type":"OrderedCollectionPage","prev":"https://hacks.wiki/+/activitypub/@hacks/outbox/1","next":"https://hacks.wiki/+/activitypub/@hacks/outbox/3","partOf":"https://hacks.wiki/+/activitypub/@hacks/outbox","orderedItems":[{"id":"https://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS","type":"Create","actor":"https://hacks.wiki/+/activitypub/@hacks","published":"2023-02-28T00:06:41.560136473+05:30","to":["https://www.w3.org/ns/activitystreams#Public"],"Object":{"id":"https://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS","type":"Note","published":"2023-02-28T00:06:41.560136473+05:30","url":"https://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS","attributedTo":"https://hacks.wiki/+/activitypub/@hacks","to":["https://www.w3.org/ns/activitystreams#Public"],"Content":"Migrate from UEFI to (Legacy) BIOS\nhttps://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS"}}]}
\ No newline at end of file
diff --git a/+/activitypub/@hacks/outbox/4 b/+/activitypub/@hacks/outbox/4
index 3b71009..1a6f89c 100755
--- a/+/activitypub/@hacks/outbox/4
+++ b/+/activitypub/@hacks/outbox/4
@@ -1 +1 @@
-{"@context":"https://www.w3.org/ns/activitystreams","id":"https://hacks.wiki/+/activitypub/@hacks/outbox/3","type":"OrderedCollectionPage","prev":"https://hacks.wiki/+/activitypub/@hacks/outbox/2","next":"https://hacks.wiki/+/activitypub/@hacks/outbox/4","partOf":"https://hacks.wiki/+/activitypub/@hacks/outbox","orderedItems":[{"id":"https://hacks.wiki/Detect%20UEFI%20or%20BIOS","type":"Create","actor":"https://hacks.wiki/+/activitypub/@hacks","published":"2023-02-28T00:05:52+05:30","to":["https://www.w3.org/ns/activitystreams#Public"],"Object":{"id":"https://hacks.wiki/Detect%20UEFI%20or%20BIOS","type":"Note","published":"2023-02-28T00:05:52+05:30","url":"https://hacks.wiki/Detect%20UEFI%20or%20BIOS","attributedTo":"https://hacks.wiki/+/activitypub/@hacks","to":["https://www.w3.org/ns/activitystreams#Public"],"Content":"Detect UEFI or BIOS\nhttps://hacks.wiki/Detect%20UEFI%20or%20BIOS"}}]}
\ No newline at end of file
+{"@context":"https://www.w3.org/ns/activitystreams","id":"https://hacks.wiki/+/activitypub/@hacks/outbox/3","type":"OrderedCollectionPage","prev":"https://hacks.wiki/+/activitypub/@hacks/outbox/2","next":"https://hacks.wiki/+/activitypub/@hacks/outbox/4","partOf":"https://hacks.wiki/+/activitypub/@hacks/outbox","orderedItems":[{"id":"https://hacks.wiki/Detect%20UEFI%20or%20BIOS","type":"Create","actor":"https://hacks.wiki/+/activitypub/@hacks","published":"2023-02-28T00:05:52.993470865+05:30","to":["https://www.w3.org/ns/activitystreams#Public"],"Object":{"id":"https://hacks.wiki/Detect%20UEFI%20or%20BIOS","type":"Note","published":"2023-02-28T00:05:52.993470865+05:30","url":"https://hacks.wiki/Detect%20UEFI%20or%20BIOS","attributedTo":"https://hacks.wiki/+/activitypub/@hacks","to":["https://www.w3.org/ns/activitystreams#Public"],"Content":"Detect UEFI or BIOS\nhttps://hacks.wiki/Detect%20UEFI%20or%20BIOS"}}]}
\ No newline at end of file
diff --git a/+/activitypub/@hacks/outbox/5 b/+/activitypub/@hacks/outbox/5
index 78cdc2f..d4a7af2 100755
--- a/+/activitypub/@hacks/outbox/5
+++ b/+/activitypub/@hacks/outbox/5
@@ -1 +1 @@
-{"@context":"https://www.w3.org/ns/activitystreams","id":"https://hacks.wiki/+/activitypub/@hacks/outbox/4","type":"OrderedCollectionPage","prev":"https://hacks.wiki/+/activitypub/@hacks/outbox/3","next":"https://hacks.wiki/+/activitypub/@hacks/outbox/5","partOf":"https://hacks.wiki/+/activitypub/@hacks/outbox","orderedItems":[{"id":"https://hacks.wiki/Mounting%20BTRFS%20subvolumes","type":"Create","actor":"https://hacks.wiki/+/activitypub/@hacks","published":"2023-02-27T23:42:13+05:30","to":["https://www.w3.org/ns/activitystreams#Public"],"Object":{"id":"https://hacks.wiki/Mounting%20BTRFS%20subvolumes","type":"Note","published":"2023-02-27T23:42:13+05:30","url":"https://hacks.wiki/Mounting%20BTRFS%20subvolumes","attributedTo":"https://hacks.wiki/+/activitypub/@hacks","to":["https://www.w3.org/ns/activitystreams#Public"],"Content":"Mounting BTRFS subvolumes\nhttps://hacks.wiki/Mounting%20BTRFS%20subvolumes"}}]}
\ No newline at end of file
+{"@context":"https://www.w3.org/ns/activitystreams","id":"https://hacks.wiki/+/activitypub/@hacks/outbox/4","type":"OrderedCollectionPage","prev":"https://hacks.wiki/+/activitypub/@hacks/outbox/3","next":"https://hacks.wiki/+/activitypub/@hacks/outbox/5","partOf":"https://hacks.wiki/+/activitypub/@hacks/outbox","orderedItems":[{"id":"https://hacks.wiki/Mounting%20BTRFS%20subvolumes","type":"Create","actor":"https://hacks.wiki/+/activitypub/@hacks","published":"2023-02-27T23:42:13.170168807+05:30","to":["https://www.w3.org/ns/activitystreams#Public"],"Object":{"id":"https://hacks.wiki/Mounting%20BTRFS%20subvolumes","type":"Note","published":"2023-02-27T23:42:13.170168807+05:30","url":"https://hacks.wiki/Mounting%20BTRFS%20subvolumes","attributedTo":"https://hacks.wiki/+/activitypub/@hacks","to":["https://www.w3.org/ns/activitystreams#Public"],"Content":"Mounting BTRFS subvolumes\nhttps://hacks.wiki/Mounting%20BTRFS%20subvolumes"}}]}
\ No newline at end of file
diff --git a/+/activitypub/@hacks/outbox/6 b/+/activitypub/@hacks/outbox/6
index d48b41f..698d869 100755
--- a/+/activitypub/@hacks/outbox/6
+++ b/+/activitypub/@hacks/outbox/6
@@ -1 +1 @@
-{"@context":"https://www.w3.org/ns/activitystreams","id":"https://hacks.wiki/+/activitypub/@hacks/outbox/5","type":"OrderedCollectionPage","prev":"https://hacks.wiki/+/activitypub/@hacks/outbox/4","next":"https://hacks.wiki/+/activitypub/@hacks/outbox/6","partOf":"https://hacks.wiki/+/activitypub/@hacks/outbox","orderedItems":[{"id":"https://hacks.wiki/starred","type":"Create","actor":"https://hacks.wiki/+/activitypub/@hacks","published":"2023-02-27T23:41:14+05:30","to":["https://www.w3.org/ns/activitystreams#Public"],"Object":{"id":"https://hacks.wiki/starred","type":"Note","published":"2023-02-27T23:41:14+05:30","url":"https://hacks.wiki/starred","attributedTo":"https://hacks.wiki/+/activitypub/@hacks","to":["https://www.w3.org/ns/activitystreams#Public"],"Content":"starred\nhttps://hacks.wiki/starred"}}]}
\ No newline at end of file
+{"@context":"https://www.w3.org/ns/activitystreams","id":"https://hacks.wiki/+/activitypub/@hacks/outbox/5","type":"OrderedCollectionPage","prev":"https://hacks.wiki/+/activitypub/@hacks/outbox/4","next":"https://hacks.wiki/+/activitypub/@hacks/outbox/6","partOf":"https://hacks.wiki/+/activitypub/@hacks/outbox","orderedItems":[{"id":"https://hacks.wiki/starred","type":"Create","actor":"https://hacks.wiki/+/activitypub/@hacks","published":"2023-02-27T23:41:14.286836779+05:30","to":["https://www.w3.org/ns/activitystreams#Public"],"Object":{"id":"https://hacks.wiki/starred","type":"Note","published":"2023-02-27T23:41:14.286836779+05:30","url":"https://hacks.wiki/starred","attributedTo":"https://hacks.wiki/+/activitypub/@hacks","to":["https://www.w3.org/ns/activitystreams#Public"],"Content":"starred\nhttps://hacks.wiki/starred"}}]}
\ No newline at end of file
diff --git a/+/feed.rss b/+/feed.rss
index 9e8fd38..64de082 100755
--- a/+/feed.rss
+++ b/+/feed.rss
@@ -8,7 +8,7 @@
-
Home
<p dir="auto">Welcome to <strong>🏡 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 “Digital Garden”.</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’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 - 🎊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
+ 2023-02-28T00:20:07.14678556+05:30
Home
https://hacks.wiki/Home
@@ -22,28 +22,28 @@
-
Migrate from UEFI to (Legacy) BIOS
<p dir="auto">Migrating Grub from a UEFI system to a BIOS (legacy) system 🔁</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'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 <a href="#fnref:1" class="footnote-backref" role="doc-backlink">↩︎</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> <a href="#fnref:2" class="footnote-backref" role="doc-backlink">↩︎</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> <a href="#fnref:3" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>
<li id="fn:4">
<p dir="auto"><code>grub-install /dev/sda</code> <a href="#fnref:4" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>
</ol>
</div>
- 2023-02-28T00:06:41+05:30
+ 2023-02-28T00:06:41.560136473+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’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 > /dev/null <span style="color:#ff79c6">&&</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> 👢</p>
- 2023-02-28T00:05:52+05:30
+ 2023-02-28T00:05:52.993470865+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. 🗄️</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 -> 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 -> 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 -> 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
+ 2023-02-27T23:42:13.170168807+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
+ 2023-02-27T23:41:14.286836779+05:30
starred
https://hacks.wiki/starred
diff --git a/public/bird-logo.png b/public/bird-logo.png
new file mode 100644
index 0000000..b0be37e
Binary files /dev/null and b/public/bird-logo.png differ
diff --git a/public/brain.png b/public/brain.png
new file mode 100644
index 0000000..3f6b8bf
Binary files /dev/null and b/public/brain.png differ
diff --git a/public/custom.css b/public/custom.css
new file mode 100644
index 0000000..20ebcad
--- /dev/null
+++ b/public/custom.css
@@ -0,0 +1,15 @@
+body {
+ font-family: Iosevka;
+ font-size: 130%;
+}
+
+a {
+ color: #2380ED;
+}
+
+.message {
+ margin-left: 42px;
+ margin-right: 42px;
+ font-size: 100%;
+}
+
diff --git a/public/hacks-logo.png b/public/hacks-logo.png
new file mode 100644
index 0000000..c9034ad
Binary files /dev/null and b/public/hacks-logo.png differ
diff --git a/public/icon.png b/public/icon.png
new file mode 100644
index 0000000..b0be37e
Binary files /dev/null and b/public/icon.png differ
diff --git a/public/logo.png b/public/logo.png
index 5736a1c..3f6b8bf 100755
Binary files a/public/logo.png and b/public/logo.png differ