<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sam's IT Lab – Sam's IT Lab</title><link>https://samsitlab.com/</link><description>Recent content on Sam's IT Lab</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://samsitlab.com/index.xml" rel="self" type="application/rss+xml"/><item><title>Installing Arch Linux with encryption</title><link>https://samsitlab.com/blogs/arch-linux-encryption/</link><pubDate>Sat, 06 Dec 2025 00:00:00 +0200</pubDate><guid>https://samsitlab.com/blogs/arch-linux-encryption/</guid><description>
&lt;img src="https://samsitlab.com/blogs/arch-linux-encryption/featured_hu_4a9169d2d07524b.jpg" width="640" height="360"/>&lt;p&gt;In this tutorial blog, we are going to go through the steps needed to set up an encrypted Arch Linux installation. You can follow this tutorial to reproduce the exact setup or modify it according to your needs, and most likely you have to. That&amp;rsquo;s what Arch Linux is about. I&amp;rsquo;m setting up my system in a way that works best for me, but it might or might not work for you. Regardless of whether you have a preference or you&amp;rsquo;re a beginner, you can still learn a lot from going through the installation procedure.&lt;/p&gt;
&lt;h2 data-hextra-search-id="why-did-i-get-into-linux"&gt;Why did I get into Linux&lt;span class="hx:absolute hx:-mt-20" id="why-did-i-get-into-linux"&gt;&lt;/span&gt;
&lt;a href="#why-did-i-get-into-linux" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Trying for the first time&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;About three years ago, I decided to try out Linux on my school-issued laptop. At that time, the intention was to kind of get a feel for a different system other than Microsoft Windows, which I had exclusively used up to that point. I didn&amp;rsquo;t want to replace my current system entirely or mess around with dual-booting due to space constraints, so I ran it in a VirtualBox VM. I required something lightweight, so I picked Linux Lite, a distribution based on Ubuntu LTS. First impressions: it seemed a little crude, unaesthetic, and even uncomfortable to use. In other words, it was different. Subconsciously, I knew there was something special about it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The realization&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I was surprised at how fast it ran as a VM on my ThinkPad E495 with a Ryzen 3. It was simple, the UI was coherent, and it didn&amp;rsquo;t feel like something was constantly shoving ads in your face (although inherently a feature of the desktop environment). It felt serene. At that point, I kind of knew that a Linux-based system was going to run on all my machines for the foreseeable future. I just needed to first get a broad overview of Linux&amp;rsquo;s weaknesses to make the eventual transition smoother. That includes figuring out what software isn&amp;rsquo;t well-supported or isn&amp;rsquo;t supported at all, learning how to perform day-to-day tasks, and generally getting a sense of what I prefer in an operating system (i.e., the choice of distro).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Going forward&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I reserved my Linux experiments for my laptop only, and tried installing different distributions during my pastime. At that point, I was hit with the dilemma that most people starting out with Linux face. How do I learn to use this system to its full extent? I didn&amp;rsquo;t want to just learn how to get by; I wanted to master it. The problem was the fragmented nature of Linux. The idea of different distributions, desktop environments, terminal emulators, and shells to name a few. Even the bootloader was something I now had the freedom to choose. It also seemed like the world of the Linux desktop consisted of different factions with different, and often conflicting, views of what desktop computing should be like. The freedom of choice was damning, but sooner or later I realized that it was something I didn&amp;rsquo;t know I wanted. Fast-forward to today, I am using Arch Linux exclusively, and I have been liking it so far. That&amp;rsquo;s why I decided to make this guide!&lt;/p&gt;
&lt;h2 data-hextra-search-id="installation"&gt;Installation&lt;span class="hx:absolute hx:-mt-20" id="installation"&gt;&lt;/span&gt;
&lt;a href="#installation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;During the installation process, you should follow the instructions directly from the &lt;a href="https://wiki.archlinux.org/title/Installation_guide" target="_blank" rel="noopener"&gt;Arch Linux installation guide&lt;/a&gt;. It provides the most detail, and is constantly updated. I will only document the steps where I made my own adaptations to the normal installation procedure. I will also add important steps that concern the security of the installation. This guide assumes that a single 500 GB SSD is used for the whole installation. You need to adapt the installation to the drives that you have at hand, and I will provide hints for doing that. Once again, the complete explanations can be found on the Arch wiki. I assume that you have already followed the installation guide up to the point where you are ready to partition your drives.&lt;/p&gt;
&lt;h3 data-hextra-search-id="securely-erase-your-drives"&gt;Securely erase your drives&lt;span class="hx:absolute hx:-mt-20" id="securely-erase-your-drives"&gt;&lt;/span&gt;
&lt;a href="#securely-erase-your-drives" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;One of the most essential things to do, if you wish to maintain the confidentiality of your data, is to securely erase unencrypted data previously stored on your media. Normally when you format an SSD drive, for example, you are merely marking it as unused, meaning that the operating system considers it as free space. The data that you thought you erased, still exists on the drive, and can be retrieved with forensic analysis. Therefore, we must comprehensively write each bit on the drive as zeros or random data in order to reliably erase all traces of previously unencrypted data. I will be showing some tools for doing this, that come with the installation image. Due to the properties of modern SSDs, however, there are functions built into the drives that are better designed for secure erasure of the drive, which are preferred for reasons I will later explain.&lt;/p&gt;
&lt;p&gt;It is usually desirable for parts of the drive that contain encrypted data to be indistinguishable from unused space. This means that if you have securely erased your drive by writing zeros to it, any subsequent random-looking encrypted data will be discernible from the zeros. Therefore, we want to write to the drive with random data to camouflage the encrypted data. We will demonstrate this using &lt;code&gt;/dev/urandom&lt;/code&gt;, which is a source of secure pseudorandom data from the Linux kernel. This prevents disclosure of usage patterns on the drive, which mainly concerns people trying to achieve &lt;a href="https://en.wikipedia.org/wiki/Deniable_encryption" target="_blank" rel="noopener"&gt;deniable encryption&lt;/a&gt;. I, however, will be enabling &lt;strong&gt;TRIM&lt;/strong&gt; for my SSD to potentially increase the lifespan of my drive. Unused blocks will eventually be erased by TRIM, negating the effect of the random disk wipe. This decision may pose &lt;a href="https://asalor.blogspot.com/2011/08/trim-dm-crypt-problems.html" target="_blank" rel="noopener"&gt;minor security implications&lt;/a&gt;. My intention is to prevent the average Joe from snooping on my data. I will first demonstrate how to wipe your drives using &lt;code&gt;nmve-sanitize&lt;/code&gt;, which is what I recommend. This doesn&amp;rsquo;t, however, support erasure using random data. If you want deniable encryption, then use the generic methods described later and leave TRIM off in the LUKS set up step.&lt;/p&gt;
&lt;h4 data-hextra-search-id="wiping-using-nvme-sanitize"&gt;Wiping using nvme-sanitize&lt;span class="hx:absolute hx:-mt-20" id="wiping-using-nvme-sanitize"&gt;&lt;/span&gt;
&lt;a href="#wiping-using-nvme-sanitize" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;Due to the properties of flash memory modules, wiping them with generic tools is not reliable. This is, among other things, due to write amplification, where the actual amount of information physically written is a multiple of the amount intended to be written. Another problem on some SSDs is transparent compression (notably on all SandForce SSDs), which can compress zeros or other repetitive patterns. For this reason, I will be using the &lt;code&gt;nvme-sanitize&lt;/code&gt; command, which is part of the NVMe specification. Note that this is for NVMe drives only and should only be used when the drive is connected directly to a PCIe/NVMe interface. For other drive types, you can find the instructions &lt;a href="https://wiki.archlinux.org/title/Solid_state_drive/Memory_cell_clearing" target="_blank" rel="noopener"&gt;here&lt;/a&gt;. First, we must check that your drive supports the commands using &lt;code&gt;nvme-cli&lt;/code&gt;. Replace &lt;code&gt;/dev/nvme0n1&lt;/code&gt; with the name of your block device.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Verify support&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; nvme id-ctrl /dev/nvme0n1 -H &lt;span class="p"&gt;|&lt;/span&gt; grep -E &lt;span class="s1"&gt;&amp;#39;Format|Crypto Erase|Sanitize&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The command output might look something like this. &lt;strong&gt;0x1&lt;/strong&gt; preceding the line means that the operation is supported, while &lt;strong&gt;0&lt;/strong&gt; means that it is not. If your drive doesn&amp;rsquo;t support any sanitize operation, then you can optionally use the older &lt;code&gt;nvme-format&lt;/code&gt; command, if supported. The difference is that sanitize ensures caches are deleted and restarts in the case of an unexpected power loss.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;[1:1] : 0x1 Format NVM Supported
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;[29:29] : 0 No-Deallocate After Sanitize bit in Sanitize command Supported
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;[2:2] : 0 Overwrite Sanitize Operation Not Supported
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;[1:1] : 0x1 Block Erase Sanitize Operation Supported
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;[0:0] : 0x1 Crypto Erase Sanitize Operation Supported
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;[2:2] : 0x1 Crypto Erase Supported as part of Secure Erase
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;[1:1] : 0 Crypto Erase Applies to Single Namespace(s)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;[0:0] : 0 Format Applies to Single Namespace(s)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;You can then get an estimate of the time each operation will take to complete. Once again, replace &lt;code&gt;/dev/nvme0n1&lt;/code&gt; with the name of your block device.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; nvme sanitize-log /dev/nvme0n1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;You can now start the erasure using either crypto erase sanitize or block erase sanitize. Avoid using the overwrite operation, even if supported, as this causes unnecessary wear.&lt;/p&gt;
&lt;div
data-alert="warning" class="hextra-alert"
&gt;
&lt;p class="hextra-alert-title"&gt;&lt;svg height=16px class="hextra-alert-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"&gt;&lt;path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/&gt;&lt;/svg&gt;&lt;span class="hextra-alert-title-text"&gt;Warning&lt;/span&gt;
&lt;/p&gt;
&lt;div class="hextra-alert-content"&gt;&lt;p&gt;The block device name assignments, for example &lt;strong&gt;/dev/nvme0n1&lt;/strong&gt; and &lt;strong&gt;/dev/sda&lt;/strong&gt; are arbitrary and non-persistent. Make sure the block device names that you are using, refer to the drive you&amp;rsquo;re intending on erasing. Failure to do so &lt;strong&gt;may result in data loss!&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Crypto erase&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; nvme sanitize /dev/nvme0n1 -a start-crypto-erase
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Block erase&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; nvme sanitize /dev/nvme0n1 -a start-block-erase
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;You can view the status of the operation using the following command. &lt;strong&gt;Sanitize progress&lt;/strong&gt; denotes the progress and a value of &lt;strong&gt;65535&lt;/strong&gt; corresponds to completion.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; nvme sanitize-log /dev/nvme0n1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If the sanitize or format operations aren&amp;rsquo;t supported or for some reason didn&amp;rsquo;t work for you, then you can use the generic options described below.&lt;/p&gt;
&lt;h4 data-hextra-search-id="generic-way-of-wiping-drives"&gt;Generic way of wiping drives&lt;span class="hx:absolute hx:-mt-20" id="generic-way-of-wiping-drives"&gt;&lt;/span&gt;
&lt;a href="#generic-way-of-wiping-drives" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;I will now demonstrate the generic way of wiping your drive with zeros or random data using &lt;code&gt;dd&lt;/code&gt;. You may also use other tools, which are documented in the Arch wiki. In the commands, replace &lt;code&gt;/dev/nvme0n1&lt;/code&gt; with the block device corresponding to the drive to be wiped. You can find this information with the &lt;code&gt;lsblk&lt;/code&gt; or &lt;code&gt;fdisk&lt;/code&gt; command.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Wiping with zeros&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; dd &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/dev/zero &lt;span class="nv"&gt;of&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/dev/nvme0n1 &lt;span class="nv"&gt;bs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;4096&lt;/span&gt; &lt;span class="nv"&gt;status&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;progress
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Wiping with random data&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; dd &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/dev/urandom &lt;span class="nv"&gt;of&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/dev/nvme0n1 &lt;span class="nv"&gt;bs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;4096&lt;/span&gt; &lt;span class="nv"&gt;iflag&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;fullblock &lt;span class="nv"&gt;status&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;progress
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;When the command returns &lt;strong&gt;No space left on device&lt;/strong&gt;, then the wipe has finished, unless it explicitly throws an error.&lt;/p&gt;
&lt;h3 data-hextra-search-id="formatting-your-drive"&gt;Formatting your drive&lt;span class="hx:absolute hx:-mt-20" id="formatting-your-drive"&gt;&lt;/span&gt;
&lt;a href="#formatting-your-drive" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;In this guide, we will be installing Arch Linux on a single SSD. We will create two partitions: an unencrypted ESP partition (&lt;code&gt;/dev/nvme0n1p1&lt;/code&gt;), which we will be mounting at &lt;code&gt;/boot&lt;/code&gt; for simplicity, and the rest of the drive for the encrypted LUKS container (&lt;code&gt;/dev/nvme0n1p2&lt;/code&gt;), which will contain LVM logical volumes for &lt;code&gt;/home&lt;/code&gt;, &lt;code&gt;/&lt;/code&gt; and &lt;code&gt;/swap&lt;/code&gt;. You could create a separate encrypted boot partition as well, but this is a feature only supported by GRUB, and even then it has limited support for LUKS2 as of writing. The aforementioned ESP partition must remain unencrypted, because your UEFI/BIOS must be able to run the bootloader stored within. In the case where you don&amp;rsquo;t have a bootloader, this would be an EFI stub, i.e., the kernel or a unified kernel image. I partitioned my drive using &lt;code&gt;fdisk&lt;/code&gt;. Start by making a 1 GB partition of the type &lt;strong&gt;EFI system&lt;/strong&gt;. Then, with the rest of the space, make a partition of the type &lt;strong&gt;Linux filesystem&lt;/strong&gt;. The second partition type doesn&amp;rsquo;t really matter here, it is simply for documentation purposes. You can also make it &lt;strong&gt;Linux LVM&lt;/strong&gt;, since we are going to be using LVM for our installation. The following diagram illustrates the partition and volume structure of our installation.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/arch-linux-encryption/partitioning.svg" title="Diagram of the partition and volume structure." alt="Partitioning" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Diagram of the partition and volume structure.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="set-up-luks-and-lvm"&gt;Set up LUKS and LVM&lt;span class="hx:absolute hx:-mt-20" id="set-up-luks-and-lvm"&gt;&lt;/span&gt;
&lt;a href="#set-up-luks-and-lvm" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Now we are going to set up our second partition as a LUKS2 encrypted container, i.e., it will serve as our encrypted block device where we will set up LVM. Then we will open it (&lt;code&gt;--allow-discards&lt;/code&gt; and &lt;code&gt;--persistent&lt;/code&gt; are optional for TRIM). I will call it &lt;strong&gt;clvm&lt;/strong&gt;, but you can call it whatever you want. Lastly, confirm that &lt;code&gt;--allow-discards&lt;/code&gt; was enabled with &lt;code&gt;cryptsetup luksDump&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Create the container&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; cryptsetup luksFormat /dev/nvme0n1p2
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Open it and verify&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; cryptsetup --allow-discards --persistent open /dev/nvme0n1p2 clvm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; cryptsetup luksDump /dev/nvme0n1p2 &lt;span class="p"&gt;|&lt;/span&gt; grep Flags
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Then we will set up LVM on the new encrypted block device. Start by making an LVM physical volume of the block device and then add it to a volume group. I called it &lt;strong&gt;cvolgp&lt;/strong&gt;, but again, name it however you want.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Create a physical volume and a volume group&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; pvcreate /dev/mapper/clvm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; vgcreate cvolgp /dev/mapper/clvm
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Next we will create the logical volumes for &lt;code&gt;/home&lt;/code&gt;, &lt;code&gt;/&lt;/code&gt; and &lt;code&gt;/swap&lt;/code&gt;. I will allocate 16 GB for my swap volume, because then I can fit my whole RAM of 16 GB into it, allowing for hibernation. For root, I gave 50 GB and the rest for the home volume, but you can adjust these how you like. If you plan to use &lt;strong&gt;ext4,&lt;/strong&gt; it is also recommended to shave off 256 MB to allow using &lt;a href="https://man.archlinux.org/man/e2scrub.8.en" target="_blank" rel="noopener"&gt;&lt;code&gt;e2scrub&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Create the logical volumes&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; lvcreate -L 16G -n swap cvolgp
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; lvcreate -L 50G -n root cvolgp
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; lvcreate -l 100%FREE -n home cvolgp
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; lvreduce -L -256M cvolgp/home
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Next, format the volumes and set up the swap volume. I will be using ext4, because it is ubiquitous and well-supported. It also allows for dynamic resizing of the volumes, which is also a feature with &lt;strong&gt;btrfs&lt;/strong&gt;. I will also set up FAT32 for the EFI system partition.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Format the filesystems&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; mkfs.ext4 /dev/cvolgp/root
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; mkfs.ext4 /dev/cvolgp/home
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; mkswap /dev/cvolgp/swap
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; mkfs.fat -F32 /dev/nvme0n1p1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Then mount the filesystems to prepare for the actual installation. Turn on your swap partition and mount your EFI partition to &lt;code&gt;/mnt/boot&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mount the filesystems&lt;/strong&gt;&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; mount /dev/cvolgp/root /mnt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; mount --mkdir /dev/cvolgp/home /mnt/home
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; swapon /dev/cvolgp/swap
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;#&lt;/span&gt; mount --mkdir /dev/nvme0n1p1 /mnt/boot
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Continue installing Linux as you normally would, following the wiki and installing the bootloader of your choice (or don&amp;rsquo;t). Then we can configure &lt;strong&gt;mkinitcpio&lt;/strong&gt; in &lt;code&gt;/etc/mkinitcpio.conf&lt;/code&gt;. Make sure to install the &lt;code&gt;lvm2&lt;/code&gt; package. Add the following hooks. For a non-US console keymap, add the &lt;code&gt;keymap&lt;/code&gt; and &lt;code&gt;consolefont&lt;/code&gt; hooks. Optionally add a hook for &lt;strong&gt;Plymouth&lt;/strong&gt;, which introduces a neat graphical password prompt for the encrypted partition, as opposed to the default TTY prompt. You can install Plymouth with pacman. Remember to regenerate the &lt;strong&gt;initramfs&lt;/strong&gt; with &lt;code&gt;mkinitcpio -P&lt;/code&gt;.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;HOOKS&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;base udev autodetect microcode modconf kms keyboard keymap consolefont block plymouth encrypt lvm2 filesystems resume fsck&lt;span class="o"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Lastly, configure your bootloader. The following kernel parameters need to be configured (&lt;code&gt;resume&lt;/code&gt; optional for hibernation). You can get the device UUIDs with the command &lt;code&gt;blkid&lt;/code&gt;.&lt;/p&gt;
&lt;div
data-alert="note" class="hextra-alert"
&gt;
&lt;p class="hextra-alert-title"&gt;&lt;svg height=16px class="hextra-alert-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"&gt;&lt;path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/&gt;&lt;/svg&gt;&lt;span class="hextra-alert-title-text"&gt;Note&lt;/span&gt;
&lt;/p&gt;
&lt;div class="hextra-alert-content"&gt;&lt;p&gt;Don&amp;rsquo;t use the automatically assigned block device names i.e., /dev/sda, /dev/nvme0n1, etc. These are not persistent, and can change between boots, making your system unbootable, forcing you to boot to an installation image to fix it.&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;cryptdevice&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;UUID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;encrypted-partition-UUID:cryptlvm &lt;span class="nv"&gt;root&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/dev/cvolgp/root &lt;span class="nv"&gt;resume&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;UUID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;swap-volume-UUID&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2 data-hextra-search-id="conclusion"&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;If you have done all the necessary generic steps required for the installation, then you should be able to reboot and be presented with the password prompt. After unlocking, the system will continue booting until it reaches the display manager, if that&amp;rsquo;s something you already installed. With GNOME, it would be GDM. This is obviously still quite an incomplete installation. There are some additions you could make to improve security, such as enabling &lt;strong&gt;secure boot&lt;/strong&gt; and &lt;strong&gt;TPM&lt;/strong&gt;. You can also enable TPM to use it for passwordless unlocking. This means that the encrypted partitions of drives attached to your computer cannot be deciphered without the secrets stored in the TPM on the motherboard. It&amp;rsquo;s a good idea to check out &lt;a href="https://wiki.archlinux.org/title/General_recommendations" target="_blank" rel="noopener"&gt;general recommendations&lt;/a&gt; for more information.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://bbs.archlinux.org/viewtopic.php?pid=1821686#p1821686" target="_blank" rel="noopener"&gt;Thumbnail by &lt;strong&gt;astize&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description></item><item><title>Transform an old PC into an 8 terabyte NAS and media server</title><link>https://samsitlab.com/blogs/truenas-server/</link><pubDate>Thu, 24 Jul 2025 00:00:00 +0300</pubDate><guid>https://samsitlab.com/blogs/truenas-server/</guid><description>
&lt;img src="https://samsitlab.com/blogs/truenas-server/featured_hu_2f375b8163ee6063.jpg" width="640" height="361"/>&lt;p&gt;In this blog, I&amp;rsquo;m going to show you how to turn nearly any dusty old computer into a multi-terabyte NAS and media server. No more storing your most important data on failing external hard drives or multiple free cloud storage accounts. All it takes is a reasonable one time investment, and then it&amp;rsquo;s only running on power. I&amp;rsquo;ll go from putting together the physical server to installing and deploying &lt;a href="https://www.truenas.com/docs/softwarestatus/" target="_blank" rel="noopener"&gt;TrueNAS Community Edition&lt;/a&gt; on it.&lt;/p&gt;
&lt;h2 data-hextra-search-id="the-data-problem"&gt;The data problem&lt;span class="hx:absolute hx:-mt-20" id="the-data-problem"&gt;&lt;/span&gt;
&lt;a href="#the-data-problem" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;For a long time, I&amp;rsquo;ve been thinking about how I&amp;rsquo;m going to safely store and organize the massive amounts of data that I own. From family photos scattered across multiple scratched up CDs to the hundreds of gigabytes of pictures that I&amp;rsquo;ve taken over the years stored on my main computer. The data is irreplaceable and yet, it&amp;rsquo;s hanging on by a thread.&lt;/p&gt;
&lt;p&gt;I could throw it all into the cloud, but then again, the space offered by free plans is limited. Creating multiple free accounts for this is not only against the TOS of service providers, but also extremely clunky and unmanageable. Paying isn&amp;rsquo;t an option either because the last thing I need as a student is another subscription. And what if for some unforeseen reason I lose access to that paid account, the company goes out of business, or gets breached.&lt;/p&gt;
&lt;h2 data-hextra-search-id="hosting-it-yourself"&gt;Hosting it yourself&lt;span class="hx:absolute hx:-mt-20" id="hosting-it-yourself"&gt;&lt;/span&gt;
&lt;a href="#hosting-it-yourself" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;With the options discussed above out of the window, the only option left seems to be hosting the infrastructure yourself. Not that hosting the server yourself removes the risk of a cataclysmic event where your server either catches fire or gets hacked. I&amp;rsquo;m, however, going to show you how to reduce that risk. Considering that I&amp;rsquo;m a want to be engineer (student), it&amp;rsquo;s only canon to end up at this conclusion.&lt;/p&gt;
&lt;p&gt;I didn&amp;rsquo;t want to just barge to buy any pre-built NAS. Even though they offer an out-of-the-box experience, the fun ends there. The replacement parts are often proprietary and expensive, support is spotty, customization is limited, and most importantly it&amp;rsquo;s too simple. Which, of course, is no fun. Therefore, I must build and host it myself.&lt;/p&gt;
&lt;p&gt;I wanted to make the most optimal purchasing decision for the parts for this project, like any self-respecting engineer would. Since I was going to be hosting this myself, I had to plan this through somehow. So for a while I crunched on the options for my semi-final storage solution and came up with this &lt;strong&gt;list of requirements:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Serviceability:&lt;/strong&gt; replacement parts are readily available.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Flexibility:&lt;/strong&gt; system components can be substituted according to what is available at hand.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Expandability&lt;/strong&gt;: the scope of the server can be expanded to serve other functions to not waste computing resources.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reliability:&lt;/strong&gt; I can trust that the server will work as expected, and in the event of failure, it can be fixed without data loss.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Adaptability:&lt;/strong&gt; the system is general-purpose and can be equipped with a multitude of different operating systems, making it independent of any specific software stack.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Supportability:&lt;/strong&gt; the software installed is well-supported, sustainable, and offers modern features.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 data-hextra-search-id="building-the-server"&gt;Building the server&lt;span class="hx:absolute hx:-mt-20" id="building-the-server"&gt;&lt;/span&gt;
&lt;a href="#building-the-server" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 data-hextra-search-id="the-old-pc"&gt;The old PC&lt;span class="hx:absolute hx:-mt-20" id="the-old-pc"&gt;&lt;/span&gt;
&lt;a href="#the-old-pc" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;I just so happened to remember that I had an old gaming PC motherboard and case lying around. The case, a Fractal Design Core 2500, was in my garage, missing all its legs, 3 PCIe I/O-shields, and one hard drive bay. The motherboard was an Asus Z97-E with an Intel Core i5-4690K along with its I/O-shield also missing. Instead of buying a new motherboard and case for this project, I wanted to be resourceful and thus, that&amp;rsquo;s what I went with.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/truenas-server/img/case-1.jpg" title="This is what I&amp;#39;m working with." alt="The gaming PC" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;This is what I&amp;#39;m working with.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The motherboard and the CPU certainly aren&amp;rsquo;t the latest and greatest in terms of performance and power efficiency. They, however, have all the features I need for my server, and I don&amp;rsquo;t see a reason to throw away perfectly good hardware. Notably, the motherboard has a total of 6 SATA ports. 2 of which share the same PCIe bandwidth with a SATA Express port and an M.2 socket. I&amp;rsquo;m going to be using the M.2 socket for my TrueNAS boot drive.&lt;/p&gt;
&lt;h3 data-hextra-search-id="getting-the-missing-parts"&gt;Getting the missing parts&lt;span class="hx:absolute hx:-mt-20" id="getting-the-missing-parts"&gt;&lt;/span&gt;
&lt;a href="#getting-the-missing-parts" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;From AliExpress, I bought some makeshift rubber feet meant for furniture and screwed them on the bottom of the case. I also ordered a NVMe PCIe expansion card, I/O-shields for the PCIe slots and one for the motherboard. I had the original front intake fans for the case lying around, so I threw those in the mix as well. Then I got an extra 500 GB NVMe drive from a friend for a considerable discount. He also knew a guy who runs a computer repair business from his garage. From him, I got a used CPU cooler and the missing hard drive bay. That guy also tried to run a NAS once. It was a pre-built made by QNAP if I remember correctly. Anyway, it was compromised by Turkish hackers and his data held for ransom due to a zero-day. Tough luck, I guess.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/truenas-server/img/case-2.jpg" title="Missing parts filled in." alt="Missing parts filled in" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Missing parts filled in.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;div class="gallery-stack"&gt;
&lt;div
id="hextra-gallery-0"
class="hextra-gallery hextra-gallery--grid not-prose"
data-pswp-gallery="#hextra-gallery-0"
style="--hextra-gallery-cols: 1; --hextra-gallery-gap: 0.5rem;"
&gt;
&lt;figure class="hextra-gallery__item"&gt;
&lt;a
class="hextra-gallery__link"
href="https://samsitlab.com/blogs/truenas-server/img/screenshot-1.png" data-pswp-width="1157" data-pswp-height="298"&gt;
&lt;img
src="https://samsitlab.com/blogs/truenas-server/img/screenshot-1_hu_1b27e4a5afe8b18d.webp"
alt="AliExpress order: PCI expansion slot cover plates"
loading="lazy"
decoding="async" width="800" height="206"/&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;figure class="hextra-gallery__item"&gt;
&lt;a
class="hextra-gallery__link"
href="https://samsitlab.com/blogs/truenas-server/img/screenshot-2.png" data-pswp-width="1157" data-pswp-height="298"&gt;
&lt;img
src="https://samsitlab.com/blogs/truenas-server/img/screenshot-2_hu_e64602c4ef42a79f.webp"
alt="AliExpress order: M.2 NVMe to PCIe x1 adapter card"
loading="lazy"
decoding="async" width="800" height="206"/&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;figure class="hextra-gallery__item"&gt;
&lt;a
class="hextra-gallery__link"
href="https://samsitlab.com/blogs/truenas-server/img/screenshot-3.png" data-pswp-width="1157" data-pswp-height="298"&gt;
&lt;img
src="https://samsitlab.com/blogs/truenas-server/img/screenshot-3_hu_152eca93831422de.webp"
alt="AliExpress order: I/O shield for the ASUS Z97M-PLUS"
loading="lazy"
decoding="async" width="800" height="206"/&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;figure class="hextra-gallery__item"&gt;
&lt;a
class="hextra-gallery__link"
href="https://samsitlab.com/blogs/truenas-server/img/screenshot-4.png" data-pswp-width="1157" data-pswp-height="298"&gt;
&lt;img
src="https://samsitlab.com/blogs/truenas-server/img/screenshot-4_hu_a610e1bb11c23d2a.webp"
alt="AliExpress order: rubber foot pads"
loading="lazy"
decoding="async" width="800" height="206"/&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3 data-hextra-search-id="considering-the-psu"&gt;Considering the PSU&lt;span class="hx:absolute hx:-mt-20" id="considering-the-psu"&gt;&lt;/span&gt;
&lt;a href="#considering-the-psu" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Since this is going to be a server, which I&amp;rsquo;m going to trust with all of my data, it needs to be reasonably reliable (coming back to my requirements). I was, however, a little suspicious of my Corsair VS650 PSU, which must be at least 10 years old now. The fan was making a loud screeching noise, but I was still able to use it to test the functionality of my motherboard, RAM and SSDs. Taking apart the PSU and inspecting the fan bearing, I found that there was a massive groove that had been gouged into the inner fan housing due to the parts rubbing together. The rotor shaft was also bone dry. I wasn&amp;rsquo;t going to salvage it, so I just threw it away.&lt;/p&gt;
&lt;p&gt;The server is going to be in my bedroom, so it also has to be relatively quiet. If I were to only replace the fan, then I&amp;rsquo;d need to get a fan with the same features. Since the original fan header only had a wire for 12V input and ground, I&amp;rsquo;d also need to retrofit the correct header for the new fan. You just can&amp;rsquo;t find fans with that kind of header by default, and even if I happened to find the OEM fan for this PSU, the price wouldn&amp;rsquo;t make up for it. For such an effort and investment, only to still end up with the same mediocre PSU, I was better off getting a new more reliable and efficient one.&lt;/p&gt;
&lt;p&gt;An excellent resource for comparing different PSUs is the &lt;a href="https://www.cybenetics.com/index.php?option=psu-performance-database" target="_blank" rel="noopener"&gt;Cybenetics PSU performance database.&lt;/a&gt; Another is Gamers Nexus on YouTube for general information about PSUs. I went with the modular Be Quiet! Pure Power 13 M 550 W. I found that to be a good compromise of price, performance, and efficiency for my purpose. The power is pretty low, but I&amp;rsquo;m unlikely to need more than that, since the server has a relatively low power consumption anyway.&lt;/p&gt;
&lt;h3 data-hextra-search-id="choosing-the-hard-drives"&gt;Choosing the hard drives&lt;span class="hx:absolute hx:-mt-20" id="choosing-the-hard-drives"&gt;&lt;/span&gt;
&lt;a href="#choosing-the-hard-drives" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;For the hard drives, I went with 4x Seagate IronWolf 4 TB drives (ST4000VN006). I went slightly overkill with the size, but I can use the extra space for redundancy. I configured the drives with raid 10, which means that there are two mirror pairs, with the data striped across the two mirrors. This leaves me with 8 TB of raw usable space. I&amp;rsquo;ll explain more about this in the TrueNAS installation steps. First, I must attach the hard drives to the drive bays. Then rubber rings in between to attenuate the vibrations. I also put on some labels, so I know to put them back in if I take them out at any point.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/truenas-server/img/drives-1.jpg" title="Drives attached to the bays (top view)." alt="Drives attached to the bays top view" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Drives attached to the bays (top view).&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/truenas-server/img/drives-2.jpg" title="Drives attached to the bays (bottom view)." alt="Drives attached to the bays bottom view" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Drives attached to the bays (bottom view).&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="final-assembly"&gt;Final assembly&lt;span class="hx:absolute hx:-mt-20" id="final-assembly"&gt;&lt;/span&gt;
&lt;a href="#final-assembly" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;After installing the new PSU, hard drives and managing the cables, the final assembly of the server is finished. The hard drives are connected to the SATA ports in the bottom right corner of the motherboard. On the motherboard, I have a 128 GB NVMe drive, which I pulled out of an unused laptop. I&amp;rsquo;ll use that as the boot drive for the installation. The expansion card has the 500 GB drive that I&amp;rsquo;ill use to store app configuration data. A little oversized for its purpose, but it&amp;rsquo;s what I had.&lt;/p&gt;
&lt;p&gt;The general recommendation by TrueNAS is to have redundancy for your boot drives. This enables TrueNAS to boot even if the other one of the redundant drives fails unexpectedly. I, however, don&amp;rsquo;t need that kind of availability. The most important thing for me is that the hard drives used for storing the actual data have redundancy and that the configuration is occasionally backed up.&lt;/p&gt;
&lt;p&gt;The two front intake fans have a mesh air filter in front of them, which limits dust and cools the drives conveniently. They produce a net positive static pressure inside the case, which should ideally limit the air from flowing in through unfiltered gaps. I removed the USB cable and HD audio cables from the case, because they&amp;rsquo;re redundant for the server and take up space.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/truenas-server/featured.jpg" title="Final assembly of the server." alt="Final assembly" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Final assembly of the server.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/truenas-server/img/UEFI.jpg" title="Memory recognized and CPU working in the UEFI BIOS." alt="UEFI BIOS memory stats" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Memory recognized and CPU working in the UEFI BIOS.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2 data-hextra-search-id="installing-truenas-community-edition"&gt;Installing TrueNAS Community Edition&lt;span class="hx:absolute hx:-mt-20" id="installing-truenas-community-edition"&gt;&lt;/span&gt;
&lt;a href="#installing-truenas-community-edition" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 data-hextra-search-id="installing"&gt;Installing&lt;span class="hx:absolute hx:-mt-20" id="installing"&gt;&lt;/span&gt;
&lt;a href="#installing" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;For this server, I&amp;rsquo;m going to be installing TrueNAS Community Edition. It was previously known as an umbrella term to describe the Linux branch of TrueNAS (SCALE) and the FreeBSD branch (CORE). Since April 15, 2025, &lt;a href="https://www.truenas.com/blog/truenas-community-edition-release-2504/" target="_blank" rel="noopener"&gt;SCALE was merged&lt;/a&gt; as part of TrueNAS Community Edition, and CORE eventually entered its maintenance phase. So by Community Edition I mean the linux version of TrueNAS.&lt;/p&gt;
&lt;p&gt;If you plan on building your own TrueNAS server, you should read the TrueNAS &lt;a href="https://www.truenas.com/docs/scale/gettingstarted/scalehardwareguide/" target="_blank" rel="noopener"&gt;hardware guide&lt;/a&gt;, which tells you everything you need to know in terms of choosing the components. After that, you can pick based on your requirements whether you want the latest version with the latest features or an older release if you prefer stability. I went with the version 25.04, aka Fangtooth. TrueNAS has the all the details for this on their &lt;a href="https://www.truenas.com/docs/" target="_blank" rel="noopener"&gt;documentation hub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To install TrueNAS, you need to flash the installation ISO to a USB stick like usual. Turning your server on with a monitor and keyboard connected, select to boot from a USB stick or any other media you&amp;rsquo;ve chosen. Remember to turn off secure boot because otherwise the installer will not boot. I won&amp;rsquo;t go through the installation process here, since there is no reason to duplicate the &lt;a href="https://www.truenas.com/docs/scale/25.04/gettingstarted/install/installingscale/" target="_blank" rel="noopener"&gt;original instructions.&lt;/a&gt; TrueNAS provides an easy to follow interactive installer with the installation media.&lt;/p&gt;
&lt;p&gt;TrueNAS provides the feature to install apps, which are applications running in docker containers. These include, for example, a VPN for remote management, a media server, or an ad blocking DNS server like Pi-Hole. The data for these apps, however, can&amp;rsquo;t be stored on the boot drive, i.e., you can&amp;rsquo;t create different partitions on the boot drive for TrueNAS itself and app data separately. TrueNAS doesn&amp;rsquo;t support it.&lt;/p&gt;
&lt;h3 data-hextra-search-id="configuring"&gt;Configuring&lt;span class="hx:absolute hx:-mt-20" id="configuring"&gt;&lt;/span&gt;
&lt;a href="#configuring" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;After TrueNAS has been installed, a DHCP server will automatically start on boot. You can thus plug the server into your local network and access it via the web UI. When entering the web UI, you can log in with the default administrator account if you set that up during the installation. It&amp;rsquo;s recommended to create a new administrator account with a unique name, password, and disable password login for the others (&lt;code&gt;truenas_admin&lt;/code&gt; and &lt;code&gt;root&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;You can then get to know the interface. Check out the different tabs and settings menus. Install the latest minor version, timezones, set the appearance of the dashboard and the theme, etc. It&amp;rsquo;s recommended to configure a static IP-address for your server, so that it doesn&amp;rsquo;t change unexpectedly. You can also configure alerts for your system, so you get notified if something happens. I went with Gmail, but there are many other options available.&lt;/p&gt;
&lt;h3 data-hextra-search-id="pools-and-vdevs"&gt;Pools and Vdevs&lt;span class="hx:absolute hx:-mt-20" id="pools-and-vdevs"&gt;&lt;/span&gt;
&lt;a href="#pools-and-vdevs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;To start using my TrueNAS server, I created one ZFS pool for app data on my 500 GB SSD called &lt;strong&gt;fast-pool&lt;/strong&gt; and another pool for my 4 HDDs with 2 mirrored vdevs of 2 disks called &lt;strong&gt;jumbo-pool&lt;/strong&gt;. Freedom to use your preferred naming convention here, but I went with something simple and concise. The data pool has no redundancy here, but I can always occasionally replicate a snapshot of the drive to my larger storage pool. Here are the two storage pools.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/truenas-server/img/fast-pool.png" title="Pool for my app data storage." alt="App data pool" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Pool for my app data storage.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/truenas-server/img/jumbo-pool.png" title="Main storage pool for storing all my data." alt="Main storage pool" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Main storage pool for storing all my data.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Despite the penalty in the usable space, it offers some advantages over a 4 disk setup with RAIDZ1, which is basically the ZFS equivalent of RAID 5. Notably, the faster read speed and IOPS. It can also lose up to 2 disks at the same time, although, I doubt I&amp;rsquo;ll be needing that. If you want to learn more about the advantages of different configurations, you can check out this &lt;a href="https://www.truenas.com/wp-content/uploads/2023/11/ZFS_Storage_Pool_Layout_White_Paper_November_2023.pdf" target="_blank" rel="noopener"&gt;white paper by TrueNAS.&lt;/a&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="datasets"&gt;Datasets&lt;span class="hx:absolute hx:-mt-20" id="datasets"&gt;&lt;/span&gt;
&lt;a href="#datasets" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;After setting up your storage pools, you can make datasets or zvols on them. Every pool has a root dataset by default that you can further divide up into smaller non-root parent datasets and child datasets. A dataset is essentially a filesystem for which you can configure specific permissions. A zvol is a virtual block device, which has a predefined size. Zvols are mainly used with the iSCSI sharing protocol, and for virtual machine storage needs. I created and categorized some datasets based on the different types of data that I have. The home (koti) dataset stores my family pictures and files. Devices (laitteet) has child datasets for files that are specific to all my devices, including a child dataset for files share across devices. A media dataset for storing movies, books, and music. And lastly, a dataset that has a child dataset for each family member&amp;rsquo;s personal cloud storage.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/truenas-server/img/datasets.png" title="Datasets of my main storage pool." alt="Datasets" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Datasets of my main storage pool.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2 data-hextra-search-id="risk-assessment"&gt;Risk assessment&lt;span class="hx:absolute hx:-mt-20" id="risk-assessment"&gt;&lt;/span&gt;
&lt;a href="#risk-assessment" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;This may be a little out of scope for this blog, but I think it&amp;rsquo;s a good idea to go through the risks of this deployment. This is something we all should think about when self-hosting anything that is of importance to you or others. Naturally, you take responsibility of maintaining the hardware and software that comprise the system. If you used reliable hardware and did a proper initial configuration, it&amp;rsquo;s relatively safe for a set it and forget it type of setup. I&amp;rsquo;ve been running my server for about two months now and haven&amp;rsquo;t had any issues. Regardless, it&amp;rsquo;s smart to go through the things that could go wrong, and analyze if there&amp;rsquo;s a reasonable way to mitigate the risk. It&amp;rsquo;s important to remember that there exists no absolute security. We can only mitigate risk to a point where it&amp;rsquo;s acceptable. This is also by no means an exhaustive list, rather some of the things that came to my mind.&lt;/p&gt;
&lt;h3 data-hextra-search-id="environmental-risks"&gt;Environmental risks&lt;span class="hx:absolute hx:-mt-20" id="environmental-risks"&gt;&lt;/span&gt;
&lt;a href="#environmental-risks" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Is the air really humid, hot, or dusty:&lt;/strong&gt; these are factors that may decrease the life expectancy of your components. Try finding the most climate controlled room for your server, taking into account how you&amp;rsquo;re going to wire it for networking.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Where is the server placed:&lt;/strong&gt; is it on the floor or high up, and can it easily fall off if tripped on? Put it in a place where it cannot be accidentally knocked over, and tuck the cables away so no one trips on them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Do you live in a place with frequent thunderstorms or blackouts:&lt;/strong&gt; these can cause unexpected shutdowns or even damage your components if proper surge protection isn&amp;rsquo;t present. It&amp;rsquo;s not a bad idea to invest in a UPS or have whole-building surge protection, which is designed to counter surge currents from lightning strikes. The surge protection in a power cord or a small desktop UPS is probably not going to save you from direct strikes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Do other people have access to the room where the server resides:&lt;/strong&gt; do the people with access to the room know of the server&amp;rsquo;s importance? Can they accidentally shut down or damage the server? Maybe put a do not touch sign on the case or some other warning.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Do you have an offsite backup:&lt;/strong&gt; what if your house gets robbed, burned down, the server gets smashed or enough drives fail at the same time? The server represents a single point of failure. TrueNAS supports setting up replication to another remote TrueNAS server. If that&amp;rsquo;s too much investment, then storing an off site backup of your most important data offline on a hard drive already reduces the risk quite a lot. Besides, having the disk offline air gaps it from a ransomware attack to your NAS.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 data-hextra-search-id="cyber-risks"&gt;Cyber risks&lt;span class="hx:absolute hx:-mt-20" id="cyber-risks"&gt;&lt;/span&gt;
&lt;a href="#cyber-risks" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Do you trust the network or subnet, which the server is a part of:&lt;/strong&gt; does the server share a subnet with untrusted devices, which have a high possibility of being compromised, and being used to gain lateral movement in your network? If applicable, configure your server to be in a different isolated VLAN.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Is the software up to date and passwords secure:&lt;/strong&gt; not always a problem, unless the server is exposed to the internet, or the above is true. Still a good habit to update TrueNAS and all the apps you&amp;rsquo;re running regularly, and not use the most popular passwords.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Is confidential data encrypted:&lt;/strong&gt; if you&amp;rsquo;re concerned about the possibility of theft, then you should enable data-at-rest encryption on the datasets that you deem important. You can enable encryption with a password or key on a ZFS pool or per dataset/child dataset. Take care to store the passphrase or key in a safe place, as this represents a new risk for complete data loss.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Are permissions configured correctly:&lt;/strong&gt; do only the people you intend to have access to resources have access, and no one else. Have you disabled login for the default administrator accounts? When creating new network shares, it&amp;rsquo;s best practice to dedicate a separate account for each share or group of similar shares.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 data-hextra-search-id="conclusion"&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Overall, this was one of the best things I&amp;rsquo;ve built for myself. It has massively helped me organize and manage my data, and has given me the ability to access it from anywhere using Tailscale VPN. With the help of redundancy from ZFS RAID, I can lose up to 2 disks at the same time (one from both vdevs), and still retain all my data. At the same time, I can get notifications about the state of my drives through TrueNAS. This is in contrast to storing your data cold on an external hard drive, which you can&amp;rsquo;t actively monitor.&lt;/p&gt;
&lt;p&gt;In future blogs, I&amp;rsquo;ll be showcasing how to set up a Jellyfin media server on it for streaming your favorite movies, shows, music, and family photos, FreshRSS news aggregator for accessing all your news and other media like YouTube videos from one place, Tailscale for remote management and resource access, and Syncthing for syncing your files across devices. A future improvement for this build would be adding a UPS, since I live in a place where power delivery can be spotty at times.&lt;/p&gt;</description></item><item><title>How to replace the lid on a ThinkPad T480</title><link>https://samsitlab.com/blogs/thinkpad-lid-replacement/</link><pubDate>Wed, 25 Jun 2025 00:00:00 +0300</pubDate><guid>https://samsitlab.com/blogs/thinkpad-lid-replacement/</guid><description>
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/featured_hu_f436379e606a4d68.jpg" width="640" height="360"/>&lt;p&gt;In this guide, we will be replacing the plastic top lid on a ThinkPad T480. We will go from finding the right product online to eventually installing it on your laptop. This guide assumes some previous experience with electronics repair, having the required tools and, most importantly, steady and patient hands. If you feel uncomfortable doing the work yourself, it&amp;rsquo;s best to consult someone with experience or have the repair done by a professional to avoid causing further damage.&lt;/p&gt;
&lt;h2 data-hextra-search-id="background"&gt;Background&lt;span class="hx:absolute hx:-mt-20" id="background"&gt;&lt;/span&gt;
&lt;a href="#background" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The time has come to upgrade my laptop again. The former just wasn&amp;rsquo;t keeping up with my workflow and the battery capacity was dwindling. One of the main things I prefer in my portable computing devices are durability, repairability, upgradability and battery capacity. Thus, the natural choice was the T480. A proven workhorse featuring fully upgradeable DIMMs, a hot-swappable external battery, an NVMe slot and a slot for a WAN card if that&amp;rsquo;s something you like. It is not however economical for an individual to buy a laptop like the T480 brand-new, but thankfully the used-laptop market is saturated with older but performant business-grade laptops for a fraction of the cost.&lt;/p&gt;
&lt;p&gt;I got my T480 from an electronics reseller who first purchased it from an electronics repair company. The laptop came with a rather major dent in the top lid and was slightly bent too. Functionality was otherwise unaffected, and I could&amp;rsquo;ve left it as is, but my stubbornness and perfectionism naturally became the reason for this blog post.&lt;/p&gt;
&lt;h2 data-hextra-search-id="getting-the-part-number"&gt;Getting the part number&lt;span class="hx:absolute hx:-mt-20" id="getting-the-part-number"&gt;&lt;/span&gt;
&lt;a href="#getting-the-part-number" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Before we can go about purchasing a new replacement lid, the part number must be identified, and in this case, it involves removing the display first. At this point, I presume you have your screwdriver and spudgers ready, but any appropriately shaped object of lesser hardness than the material of the parts that you are prying apart will suffice. I do not recommend using anything made of metal as this risks damage to the parts. Remember to remove the external battery and disable the internal battery in the UEFI BIOS. You may also disconnect the internal battery entirely for good measure.&lt;/p&gt;
&lt;h3 data-hextra-search-id="detach-the-front-bezel"&gt;Detach the front bezel&lt;span class="hx:absolute hx:-mt-20" id="detach-the-front-bezel"&gt;&lt;/span&gt;
&lt;a href="#detach-the-front-bezel" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Start by carefully inserting a thin spudger or card between the inner edge of the bezel and the display, and then work your way under until you have separated all the glue, if any. Then insert your spudger in the seam between the outer edge of the bezel and the top lid. Starting from a corner of the display, slowly pry the parts apart until you hear a click. Continue prying along the edge of the bezel until you have fully detached all the latches holding the bezel in place. You should now be able to carefully take off the bezel, revealing the following.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/bezel.jpg" title="Bezel removed from the lid." alt="Removed bezel" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Bezel removed from the lid.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="remove-the-display"&gt;Remove the display&lt;span class="hx:absolute hx:-mt-20" id="remove-the-display"&gt;&lt;/span&gt;
&lt;a href="#remove-the-display" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Next up: the display. Start by removing the four screws near each corner of the display. Then carefully rest the display on the keyboard so that the screen faces it like so. You can then disconnect the black display cable as shown in the image and store the display away in a safe place.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/display.jpg" title="Display removed, resting on the keyboard." alt="Removed display" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Display removed, resting on the keyboard.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="read-the-part-number"&gt;Read the part number&lt;span class="hx:absolute hx:-mt-20" id="read-the-part-number"&gt;&lt;/span&gt;
&lt;a href="#read-the-part-number" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;In the previous image, you can see the part number or “P/N, for short,” written out in the bottom left corner of the lid. In my case, the number is &lt;code&gt;FA12D000100&lt;/code&gt;. We can now use this information to verify that we are purchasing the right part.&lt;/p&gt;
&lt;div
data-alert="note" class="hextra-alert"
&gt;
&lt;p class="hextra-alert-title"&gt;&lt;svg height=16px class="hextra-alert-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"&gt;&lt;path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/&gt;&lt;/svg&gt;&lt;span class="hextra-alert-title-text"&gt;Note&lt;/span&gt;
&lt;/p&gt;
&lt;div class="hextra-alert-content"&gt;&lt;p&gt;It is very important that you buy a new component according to the part number that you have! In the case of the T480, there are two configurations available. One model with a plastic top lid and one with a magnesium composite top lid. Both come with different bezels that are not cross-compatible.&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h2 data-hextra-search-id="purchasing-the-replacement"&gt;Purchasing the replacement&lt;span class="hx:absolute hx:-mt-20" id="purchasing-the-replacement"&gt;&lt;/span&gt;
&lt;a href="#purchasing-the-replacement" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Now, this part is not something that you usually pick up from your local electronics retailer. There is of course the chance that repair shops have these lying around, but in this case we will be purchasing it from AliExpress. Another option which seems to have an abundance of them as of writing is eBay. On AliExpress, some listings can be ambiguous about whether the part you&amp;rsquo;re buying is the plastic or the metal one. Some listings may straight up list the wrong part number. If it&amp;rsquo;s not immediately obvious from the pictures or the description of the listing on which part is being sold, then I recommend verifying this information from the seller. If the seller fails to provide a straight answer, then I&amp;rsquo;d steer clear of them. In the upcoming steps we will be installing the new lid where we will be using some thin double-sided acrylic tape to re-secure the components. I&amp;rsquo;d recommend picking up that as well in this step if you don&amp;rsquo;t already have something similar.&lt;/p&gt;
&lt;h2 data-hextra-search-id="removing-the-old-lid"&gt;Removing the old lid&lt;span class="hx:absolute hx:-mt-20" id="removing-the-old-lid"&gt;&lt;/span&gt;
&lt;a href="#removing-the-old-lid" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;If the previous steps have been tedious, then it is about to get even more involved. We are going to be removing the original components from the old lid which include the camera module and its cable, the LED and its cable, the antenna wires and hinges. When bought separately, the lid doesn&amp;rsquo;t come with these parts pre-installed, and you certainly want to reuse them.&lt;/p&gt;
&lt;h3 data-hextra-search-id="disconnect-the-antenna-wires"&gt;Disconnect the antenna wires&lt;span class="hx:absolute hx:-mt-20" id="disconnect-the-antenna-wires"&gt;&lt;/span&gt;
&lt;a href="#disconnect-the-antenna-wires" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Unscrew the screws on the back cover of the laptop and open it up by prying from the edges gently. Disconnect the cables from the respective WLAN and WAN modules and undo the antenna wires up to the hinges.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/case.jpg" title="Antenna wires inside the chassis." alt="Antenna wires" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Antenna wires inside the chassis.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="unscrew-hinges-and-disconnect-other-cables"&gt;Unscrew hinges and disconnect other cables&lt;span class="hx:absolute hx:-mt-20" id="unscrew-hinges-and-disconnect-other-cables"&gt;&lt;/span&gt;
&lt;a href="#unscrew-hinges-and-disconnect-other-cables" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;After you&amp;rsquo;ve undone the cables and disconnected the two eDP cables near each hinge, you can unscrew the hinges from the bottom chassis. If you now unfold the laptop and lift the LCD assembly up from the hinges, it should separate. If you wish to have more detailed images of this step, I recommend checking out the guide on iFixit.&lt;/p&gt;
&lt;h3 data-hextra-search-id="remove-the-antennas-from-the-lid"&gt;Remove the antennas from the lid&lt;span class="hx:absolute hx:-mt-20" id="remove-the-antennas-from-the-lid"&gt;&lt;/span&gt;
&lt;a href="#remove-the-antennas-from-the-lid" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Start by wedging a tool under the plastic piece with the golden traces on it and pry it apart. Then grab it and peel away the copper tape from the lid. Ideally you want to preserve the tape because we are going to be reattaching it to the new lid. Perform a similar procedure for the smaller connection, as shown in the image. Also remove the beige-colored conductive tape in this step. Repeat for both antenna pairs.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/antenna.jpg" title="Antenna wires inside the LCD assembly." alt="More antenna wires" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Antenna wires inside the LCD assembly.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="remove-the-hinges-and-brackets-from-the-lid"&gt;Remove the hinges and brackets from the lid&lt;span class="hx:absolute hx:-mt-20" id="remove-the-hinges-and-brackets-from-the-lid"&gt;&lt;/span&gt;
&lt;a href="#remove-the-hinges-and-brackets-from-the-lid" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;After you have removed the antenna connectors, you can unscrew the screws holding the hinges to the lid and remove them, along with the two metal brackets on each side of the lid holding the wires down. You can now fully remove the antenna wires from the lid.&lt;/p&gt;
&lt;h3 data-hextra-search-id="remove-the-ribbon-cable"&gt;Remove the ribbon cable&lt;span class="hx:absolute hx:-mt-20" id="remove-the-ribbon-cable"&gt;&lt;/span&gt;
&lt;a href="#remove-the-ribbon-cable" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Start by disconnecting the ribbon cable from the module and slowly peel it off the lid. Once you&amp;rsquo;ve peeled to the intersection where the cable joins the LED cable, you can then peel that cable, starting from where the LED is. After that, you can remove the rest of the cable that is routed near the bottom edge of the lid.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/camera.jpg" title="Camera module with its ribbon cable." alt="Camera module" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Camera module with its ribbon cable.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="remove-the-camera-module"&gt;Remove the camera module&lt;span class="hx:absolute hx:-mt-20" id="remove-the-camera-module"&gt;&lt;/span&gt;
&lt;a href="#remove-the-camera-module" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Once you have fully removed the ribbon cable and stored it away, you can start removing the camera module. This one can be tricky so be patient. It is recommended to use multiple tools here to pry the module off from multiple points in order to apply even pressure. You should also take the piece of plastic on the left of the camera module and transfer it to the new lid as it adds some structural integrity.&lt;/p&gt;
&lt;h2 data-hextra-search-id="installing-the-new-lid"&gt;Installing the new lid&lt;span class="hx:absolute hx:-mt-20" id="installing-the-new-lid"&gt;&lt;/span&gt;
&lt;a href="#installing-the-new-lid" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;You should have now removed all the necessary components from the old lid. Now it&amp;rsquo;s time to start putting them into the new lid that you hopefully received in the mail. Here we will need some of that tape for reinforcement if the glue isn&amp;rsquo;t sticky enough anymore. We&amp;rsquo;re basically retracing our steps in reverse, execpt that I will provide more detailed imagery of the steps involved.&lt;/p&gt;
&lt;h3 data-hextra-search-id="reattach-the-camera-module"&gt;Reattach the camera module&lt;span class="hx:absolute hx:-mt-20" id="reattach-the-camera-module"&gt;&lt;/span&gt;
&lt;a href="#reattach-the-camera-module" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/new-camera.jpg" title="Camera module reattached using double-sided tape." alt="Reattached camera" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Camera module reattached using double-sided tape.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="reattach-the-ribbon-cable"&gt;Reattach the ribbon cable&lt;span class="hx:absolute hx:-mt-20" id="reattach-the-ribbon-cable"&gt;&lt;/span&gt;
&lt;a href="#reattach-the-ribbon-cable" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/ribbon-1.jpg" title="Ribbon cable of the camera attached with tape (connect the cable to the module first)." alt="Cable reattached half way" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Ribbon cable of the camera attached with tape (connect the cable to the module first).&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/ribbon-2.jpg" title="Ribbon cable of the LED attached." alt="Cable attached fully" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Ribbon cable of the LED attached.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="reattach-antennas-brackets-and-hinges"&gt;Reattach antennas, brackets and hinges&lt;span class="hx:absolute hx:-mt-20" id="reattach-antennas-brackets-and-hinges"&gt;&lt;/span&gt;
&lt;a href="#reattach-antennas-brackets-and-hinges" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/featured.jpg" title="Antennas and their wires along with brackets and hinges reattached." alt="Antennas, brackets and hinges" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Antennas and their wires along with brackets and hinges reattached.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="connect-the-display-and-bezel"&gt;Connect the display and bezel&lt;span class="hx:absolute hx:-mt-20" id="connect-the-display-and-bezel"&gt;&lt;/span&gt;
&lt;a href="#connect-the-display-and-bezel" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/tape.jpg" title="Display connected with tape ready for the bezel." alt="Display with tape" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Display connected with tape ready for the bezel.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="put-on-the-bezel-and-admire-your-work"&gt;Put on the bezel and admire your work&lt;span class="hx:absolute hx:-mt-20" id="put-on-the-bezel-and-admire-your-work"&gt;&lt;/span&gt;
&lt;a href="#put-on-the-bezel-and-admire-your-work" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/finished.jpg" title="Bezel reattached and the work is done." alt="Finished product" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Bezel reattached and the work is done.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/thinkpad-lid-replacement/img/lid.jpg" title="Top view of the finished product (don&amp;#39;t mind the sticker)." alt="Top view" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Top view of the finished product (don&amp;#39;t mind the sticker).&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2 data-hextra-search-id="conclusion"&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;That was it! You could optionally leave the tape out when reattaching the bezel, but there may be a glaring gap between the bezel and the display. Note that I also replaced the bezel here, since it was worn out – hence the extra tape. You only need to put a thin ribbon of tape around the edges of the LCD. Now was this whole ordeal worth it in end? I would say yes, from the perpective of learning how to repair and maintain your own devices this was worth the time and monetary investment.&lt;/p&gt;</description></item><item><title>Wireless split keyboard build</title><link>https://samsitlab.com/blogs/wireless-split-keyboard/</link><pubDate>Thu, 15 May 2025 00:00:00 +0300</pubDate><guid>https://samsitlab.com/blogs/wireless-split-keyboard/</guid><description>
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/featured_hu_44679b9e53abb04f.jpg" width="640" height="360"/>&lt;p&gt;In this blog, I am building a completely wireless custom 42-key split keyboard. The PCB for this build, designed by &lt;a href="https://splitkb.com" target="_blank" rel="noopener"&gt;Splitkb.com&lt;/a&gt;, is a derivative of the &lt;a href="https://github.com/foostan/crkbd" target="_blank" rel="noopener"&gt;original Corne&lt;/a&gt; design by Foostan. I am not affiliated with Splitkb.com, but they are among the good few in the EU that sell pre-made PCBs, switches, keycaps, and other parts for custom keyboards. What makes it wireless is the pair of &lt;a href="https://nicekeyboards.com/nice-nano/" target="_blank" rel="noopener"&gt;nice!nano&lt;/a&gt; microcontrollers along with the &lt;a href="https://zmk.dev" target="_blank" rel="noopener"&gt;ZMK firmware&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Custom keyboards tend to be on the more expensive side, but you can of course leave out the parts that aren&amp;rsquo;t absolutely necessary for the function of the keyboard, such as the acrylic plates, displays, or tenting legs. You can also cut costs by going the full DIY route of 3D printing the parts yourself and getting the PCB printed by a manufacturer like &lt;a href="https://pcbway.com" target="_blank" rel="noopener"&gt;PCBWay&lt;/a&gt;. If you decide to go that route, consider creating your own design if you have the time and patience. This opens up the opportunity to design it precisely for your needs on top of teaching you a thing or two about PCB design!&lt;/p&gt;
&lt;h2 data-hextra-search-id="why-the-split"&gt;Why the split&lt;span class="hx:absolute hx:-mt-20" id="why-the-split"&gt;&lt;/span&gt;
&lt;a href="#why-the-split" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 data-hextra-search-id="the-issue-with-modern-keyboards"&gt;The issue with modern keyboards&lt;span class="hx:absolute hx:-mt-20" id="the-issue-with-modern-keyboards"&gt;&lt;/span&gt;
&lt;a href="#the-issue-with-modern-keyboards" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Admittedly, the split keyboard has a bit of a niche market, especially compared to keyboards with the ubiquitous QWERTY layout that comes in ISO and ANSI variants. A third, less common standard is JIS, which is used primarily in Japan. One reason for its popularity is its long history and wide adoption, stemming from the age of the typewriter. Despite its downsides, the layout along with the arrangement of keys is still the most popular in today&amp;rsquo;s keyboards. Notably, the horizontal staggering of the keys is a feature to prevent the typebars of typewriters from jamming when multiple keys are pressed at the same time. This, however, presents &lt;strong&gt;no mechanical or ergonomic advantage&lt;/strong&gt; in modern keyboards.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/layouts.jpg" title="Image by Switch and Click." alt="ANSI and ISO layout" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Image by Switch and Click.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Another drawback of this physical layout is that the keys are all in a single, compact cluster. This can be inflexible for people with varying shoulder widths. When we rest our hands on the keyboard in a touch-typing position, our wrists are often parallel to the keys of the home row. If your shoulders are any wider than the home row, then your wrists will be in ulnar deviation. I myself have adjusted for this by resting my hands on the keyboard at a slight angle and curling my fingers appropriately, so that there is no deviation in my wrists.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/ulnar-deviation.gif" title="Demonstration of ulnar deviation when typing." alt="Ulnar deviation demonstration" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Demonstration of ulnar deviation when typing.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The last notable problem is the unbalanced stress on each finger of the hand. When touch typing, there is a major difference in the number of keys assigned to each finger and the distance needed to reach them. Especially the pinky fingers have a lot more keys to press and reach compared to the middle fingers for example. This can be seen in common touch-typing diagrams. The extra distance that the pinky fingers need to move in order to reach the furthest keys often results in the hands drifting away from the home row and having to readjust afterwards.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/touch-typing.png" title="Touch typing finger assignment." alt="Touch typing" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Touch typing finger assignment.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="what-does-the-split-keyboard-fix"&gt;What does the split keyboard fix&lt;span class="hx:absolute hx:-mt-20" id="what-does-the-split-keyboard-fix"&gt;&lt;/span&gt;
&lt;a href="#what-does-the-split-keyboard-fix" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The keyboard that I built fixes the majority of these issues, introducing a full split design, and allowing for liberal placement of the two halves of the keyboard. It removes the row staggering and instead replaces it with column staggering in order to mimic the natural shape of the human hand. It almost entirely fixes the finger inequality issue. Each finger has only three keys to press, except for the pinky and index fingers, which both have six. The thumb is also heavily used for the modifier keys required to switch between layers to access more keys. Despite this, when resting the hands on the home row, each key is only one key&amp;rsquo;s distance away. There is an even smaller design called the &lt;a href="https://github.com/davidphilipbarr/Sweep" target="_blank" rel="noopener"&gt;Sweep&lt;/a&gt;, which shaves off a column from each half and one key from each thumb cluster. The one I am building is thus a compromise between ergonomics and the number of keys for accessibility.&lt;/p&gt;
&lt;h2 data-hextra-search-id="the-build"&gt;The build&lt;span class="hx:absolute hx:-mt-20" id="the-build"&gt;&lt;/span&gt;
&lt;a href="#the-build" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Now I am going to start building the actual keyboard. This is not really a tutorial per se, but serves as a demonstration that different kinds of keyboards exist, and how they are built. I will
thus be skipping over the steps a bit as I build. The comprehensive build guide for this keyboard can be found on &lt;a href="https://docs.splitkb.com/product-guides/aurora-series/build-guide" target="_blank" rel="noopener"&gt;Splitkb.com&amp;rsquo;s wiki&lt;/a&gt;.&lt;/p&gt;
&lt;h3 data-hextra-search-id="assortment-of-parts"&gt;Assortment of parts&lt;span class="hx:absolute hx:-mt-20" id="assortment-of-parts"&gt;&lt;/span&gt;
&lt;a href="#assortment-of-parts" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;For the build, I used the following parts that I ordered from Splitkb.com. Starting from the top-left of the image:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;2x Acrylic bottom plates&lt;/li&gt;
&lt;li&gt;2x nice!nano microcontrollers and Mill-Max low profile sockets&lt;/li&gt;
&lt;li&gt;Wireless controller expansion bundle (switches and buttons for wireless functionality), standoffs, and screws for the bottom plates&lt;/li&gt;
&lt;li&gt;2x FR4 top plates&lt;/li&gt;
&lt;li&gt;Aurora Corne PCB kit&lt;/li&gt;
&lt;li&gt;42x MBK PBT keycaps&lt;/li&gt;
&lt;li&gt;42x Kailh low-profile Burnt Orange switches&lt;/li&gt;
&lt;li&gt;2x 110 mAh 3.3 V batteries (not in the image; bought separately due to regulatory issues)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/parts.jpg" title="All parts of the build (excluding the batteries)." alt="The parts" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;All parts of the build (excluding the batteries).&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="equipment"&gt;Equipment&lt;span class="hx:absolute hx:-mt-20" id="equipment"&gt;&lt;/span&gt;
&lt;a href="#equipment" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Here&amp;rsquo;s some of the equipment that I used for this build. Most importantly, a soldering iron (preferably adjustable), which I bought off AliExpress. A pair of magnifying glasses, even though I don&amp;rsquo;t really need them, since I can see up close quite well. Some 0.5 mm soldering wire with a flux core. You can go with leaded or lead-free solder. Leaded solder is generally easier to work with due to the lower melting point and flow characteristics. Lastly, while not shown here, it is going to make your life significantly easier to use extra flux while soldering.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/equipment.jpg" title="Equipment used for the build." alt="Equipment" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Equipment used for the build.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="diodes"&gt;Diodes&lt;span class="hx:absolute hx:-mt-20" id="diodes"&gt;&lt;/span&gt;
&lt;a href="#diodes" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;I first soldered the SMD diodes onto the PCB. There are two small pads for each diode. I first applied a small amount of solder for each pair of pads. I then moved a diode over a pad with a pair of tweezers, soldered one connection by reflowing the previously applied solder, and then the other connection. I repeated this for each diode for both halves of the keyboard. Likewise, I also applied some solder to the switch socket pads in this step. The diodes are quite small, so I took my time here. They also need to be in the correct orientation.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/smd.jpg" title="SMD diodes up close." alt="SMD diodes" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;SMD diodes up close.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/diodes.jpg" title="Diodes soldered onto the right half." alt="Soldering the diodes" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Diodes soldered onto the right half.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="hot-swap-switch-sockets"&gt;Hot-swap switch sockets&lt;span class="hx:absolute hx:-mt-20" id="hot-swap-switch-sockets"&gt;&lt;/span&gt;
&lt;a href="#hot-swap-switch-sockets" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;I then soldered on the hot-swap switch sockets that allow for hot-swapping the board with different low-profile switches if I ever want to try out different ones. I will follow the same procedure for the sockets as I did on the diodes. Only now the pads are larger and easier to work with.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/sockets-1.jpg" title="Sockets soldered on halfway." alt="Sockets soldered on half way" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Sockets soldered on halfway.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/sockets-2.jpg" title="Sockets soldered all the way." alt="Sockets soldered on all the way" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Sockets soldered all the way.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="resistors-and-reset-button"&gt;Resistors and reset button&lt;span class="hx:absolute hx:-mt-20" id="resistors-and-reset-button"&gt;&lt;/span&gt;
&lt;a href="#resistors-and-reset-button" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Next I soldered on the resistors R1 and R2. I also soldered on the reset button in this step. This lets you enter bootloader mode by quickly pressing the button twice in succession, allowing you to flash the firmware again. If you press it once, you can reset the controller&amp;rsquo;s connection. This is handy if you are experiencing connection issues.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/resistor-and-reset.jpg" title="Resistors R1, R2 and reset switch soldered on." alt="Resistors and reset switch" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Resistors R1, R2 and reset switch soldered on.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/reset.jpg" title="Reset switch view from the bottom." alt="Reset switch view from the bottom" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Reset switch view from the bottom.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="power-switch"&gt;Power switch&lt;span class="hx:absolute hx:-mt-20" id="power-switch"&gt;&lt;/span&gt;
&lt;a href="#power-switch" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Next, the power switch. This is useful for preserving battery life when not using the keyboard, as it cuts power from the battery to the microcontroller. While the power-saving mode of the nice!nano is pretty efficient, it certainly doesn&amp;rsquo;t hurt to have one on. Besides, the circuit is open as is, so it needs something to bridge the gap. I first applied a bit of solder to one pad, attached the switch, and soldered the rest.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/power.jpg" title="Solder applied to power switch pad." alt="Solder on one pad" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Solder applied to power switch pad.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="mill-max-sockets"&gt;Mill-Max sockets&lt;span class="hx:absolute hx:-mt-20" id="mill-max-sockets"&gt;&lt;/span&gt;
&lt;a href="#mill-max-sockets" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The sockets allow for easy relocation of the microcontroller if you ever need to replace it or move it to some other keyboard. I put on some Kapton tape to hold the sockets in place as I soldered them. It&amp;rsquo;s very important to get them straight, otherwise the microcontroller won&amp;rsquo;t fit into the sockets, meaning you&amp;rsquo;ll likely have to resolder the sockets.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/millmax.jpg" title="Mill-Max sockets soldered on the left half." alt="Mill-Max sockets" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Mill-Max sockets soldered on the left half.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="batteries-and-nicenanos"&gt;Batteries and nice!nanos&lt;span class="hx:absolute hx:-mt-20" id="batteries-and-nicenanos"&gt;&lt;/span&gt;
&lt;a href="#batteries-and-nicenanos" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;I first tried to attach the battery by soldering JST jacks onto the PCB and attaching male connectors onto the battery wires. I later realized that this would not fit with the final assembly, so I desoldered the jacks and soldered the battery directly onto the PCB. I also soldered the male Mill-Max socket headers onto the nice!nanos in this step. Before doing that, it is a good idea to test the microcontrollers by flashing the default firmware to them. If that doesn&amp;rsquo;t yield any errors then it is relatively safe to assume that the controllers work.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/battery-1.jpg" title="Battery attached via a JST connector." alt="Battery attached via a JST connector" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Battery attached via a JST connector.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/wireless-split-keyboard/img/battery-2.jpg" title="Battery soldered directly to the PCB." alt="Battery soldered directly to the PCB" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Battery soldered directly to the PCB.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="final-assembly"&gt;Final assembly&lt;span class="hx:absolute hx:-mt-20" id="final-assembly"&gt;&lt;/span&gt;
&lt;a href="#final-assembly" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Now the hard part is practically over. Lastly, we need to attach the switches and keycaps along with the top plate onto the PCB, and screw the top plate to the bottom plate. I added some covers for the microcontrollers because they look cool and might protect them from shorts. You can see that I also added some tenting legs to the bottom plate. This positions the keyboard in a way that reduces forearm pronation, aka the scissoring of the forearm bones. I got those from AliExpress as well.&lt;/p&gt;
&lt;div
id="hextra-gallery-0"
class="hextra-gallery hextra-gallery--carousel not-prose"
data-pswp-gallery="#hextra-gallery-0"
style="--hextra-gallery-cols: 3; --hextra-gallery-gap: 0.5rem;"
role="region" aria-roledescription="carousel" aria-label="Image gallery"
&gt;&lt;button type="button" class="hextra-gallery__nav hextra-gallery__nav--prev" data-gallery-prev aria-label="Previous image" aria-controls="hextra-gallery-0-track"&gt;
&lt;svg viewBox="0 0 24 24" aria-hidden="true" focusable="false" width="20" height="20"&gt;
&lt;path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M15 6l-6 6 6 6" /&gt;
&lt;/svg&gt;
&lt;/button&gt;
&lt;button type="button" class="hextra-gallery__nav hextra-gallery__nav--next" data-gallery-next aria-label="Next image" aria-controls="hextra-gallery-0-track"&gt;
&lt;svg viewBox="0 0 24 24" aria-hidden="true" focusable="false" width="20" height="20"&gt;
&lt;path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M9 6l6 6-6 6" /&gt;
&lt;/svg&gt;
&lt;/button&gt;
&lt;div id="hextra-gallery-0-track" class="hextra-gallery__track hextra-scrollbar" tabindex="0" aria-describedby="hextra-gallery-0-status"&gt;
&lt;figure class="hextra-gallery__item"&gt;
&lt;a
class="hextra-gallery__link"
href="https://samsitlab.com/blogs/wireless-split-keyboard/img/final1.jpg" data-pswp-width="4624" data-pswp-height="3472"&gt;
&lt;img
src="https://samsitlab.com/blogs/wireless-split-keyboard/img/final1_hu_df28c383b31777e9.webp"
alt=""
loading="lazy"
decoding="async" width="800" height="601"/&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;figure class="hextra-gallery__item"&gt;
&lt;a
class="hextra-gallery__link"
href="https://samsitlab.com/blogs/wireless-split-keyboard/img/final2.jpg" data-pswp-width="4624" data-pswp-height="3472"&gt;
&lt;img
src="https://samsitlab.com/blogs/wireless-split-keyboard/img/final2_hu_8198adc57194ffaf.webp"
alt=""
loading="lazy"
decoding="async" width="800" height="601"/&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;figure class="hextra-gallery__item"&gt;
&lt;a
class="hextra-gallery__link"
href="https://samsitlab.com/blogs/wireless-split-keyboard/img/final3.jpg" data-pswp-width="4624" data-pswp-height="3472"&gt;
&lt;img
src="https://samsitlab.com/blogs/wireless-split-keyboard/img/final3_hu_b535b20994274f55.webp"
alt=""
loading="lazy"
decoding="async" width="800" height="601"/&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;figure class="hextra-gallery__item"&gt;
&lt;a
class="hextra-gallery__link"
href="https://samsitlab.com/blogs/wireless-split-keyboard/img/final4.jpg" data-pswp-width="4624" data-pswp-height="3472"&gt;
&lt;img
src="https://samsitlab.com/blogs/wireless-split-keyboard/img/final4_hu_b303b40bb65ee6c0.webp"
alt=""
loading="lazy"
decoding="async" width="800" height="601"/&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;/div&gt;
&lt;div id="hextra-gallery-0-status" class="hx:sr-only" aria-live="polite" role="status" data-gallery-status&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 data-hextra-search-id="flashing-the-firmware"&gt;Flashing the firmware&lt;span class="hx:absolute hx:-mt-20" id="flashing-the-firmware"&gt;&lt;/span&gt;
&lt;a href="#flashing-the-firmware" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;For the final part of this project, I flashed the firmware onto the nice!nanos. Splitkb.com provides the precompiled default firmware for all their keyboards. If you want to modify the layout, and I assume you do, then you can follow the instructions &lt;a href="https://zmk.dev/docs/user-setup" target="_blank" rel="noopener"&gt;from ZMK&amp;rsquo;s wiki&lt;/a&gt; to set up a new GitHub repository with ZMK CLI, modify the keymap and push it to be buit by GitHub Actions. I kind of contradict myself here because I went with the standard QWERTY layout instead of something more optimal like Dvorak. I did that to reduce the friction of switching to the new keyboard. I didn&amp;rsquo;t want to spend more time learning a new layout. It is mostly about the physical arrangement of keys that makes the difference for me. I made a separate layer for numbers and special characters and a third for function keys. You can check out my layout below.&lt;/p&gt;
&lt;div class="hextra-cards hx:mt-4 hx:gap-4 hx:grid not-prose" style="--hextra-cards-grid-cols: 1;"&gt;
&lt;a class="hextra-card hx:group hx:flex hx:flex-col hx:justify-start hx:overflow-hidden hx:rounded-lg hx:border hx:border-gray-200 hx:text-current hx:no-underline hx:dark:shadow-none hx:hover:shadow-gray-100 hx:dark:hover:shadow-none hx:shadow-gray-100 hx:active:shadow-sm hx:active:shadow-gray-200 hx:transition-all hx:duration-200 hx:hover:border-gray-300 hx:bg-transparent hx:shadow-xs hx:dark:border-neutral-800 hx:hover:bg-slate-50 hx:hover:shadow-md hx:dark:hover:border-neutral-700 hx:dark:hover:bg-neutral-900" href="https://github.com/minfux/zmk-config" target="_blank" rel="noreferrer"&gt;&lt;div class="hx:mt-auto"&gt;
&lt;span class="hextra-card-icon hx:flex hx:font-semibold hx:items-start hx:gap-2 hx:pt-4 hx:px-4 hx:text-gray-700 hx:hover:text-gray-900 hx:dark:text-neutral-200 hx:dark:hover:text-neutral-50"&gt;&lt;svg fill="currentColor" viewBox="3 3 18 18"&gt;
&lt;path d="M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"&gt;&lt;/path&gt;
&lt;/svg&gt;
minfux/zmk-config&lt;/span&gt;&lt;div class="hextra-card-subtitle hx:line-clamp-3 hx:text-sm hx:font-normal hx:text-gray-500 hx:dark:text-gray-400 hx:px-4 hx:mb-4 hx:mt-2"&gt;My ZMK keymap and firmware config on GitHub.&lt;/div&gt;&lt;/div&gt;&lt;/a&gt;
&lt;/div&gt;</description></item><item><title>Nintendo Switch hardware modding</title><link>https://samsitlab.com/blogs/nintendoswitch-modding/</link><pubDate>Thu, 01 May 2025 00:00:00 +0300</pubDate><guid>https://samsitlab.com/blogs/nintendoswitch-modding/</guid><description>
&lt;img src="https://samsitlab.com/blogs/nintendoswitch-modding/featured_hu_21a1064e845d0562.jpg" width="640" height="361"/>&lt;p&gt;Modding your Nintendo Switch unlocks many capabilities, it previously did not have. Including overclocking, backing up your game saves, installing custom menu themes, running your own custom apps, aka. Homebrew apps and custom firmware. This guide is for people who have a patched version of the Switch, since the opposite does not require the installation of a chip. I must note that this process requires some microsoldering skills, and will most certainly void your warranty, if that&amp;rsquo;s something you care about. I do not hold responsibility for any damage caused from following this guide. Everything here is done at your own risk.&lt;/p&gt;
&lt;h2 data-hextra-search-id="identifying-your-model"&gt;Identifying your model&lt;span class="hx:absolute hx:-mt-20" id="identifying-your-model"&gt;&lt;/span&gt;
&lt;a href="#identifying-your-model" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Currently, there are two hardware revisions of the Switch. Any Switch that was manufactured before the middle of 2018 (HAC-001) with the Tegra X1 SoC has a bug in its boot ROM that enables running custom code regardless of the firmware version installed. Thus, Nintendo cannot patch it remotely. After that point, Nintendo started to push out a new iteration of the console with a patched boot ROM with the same model number. A software exploit may be found for these patched Switches in the far future, if the firmware is kept below 7.0.1. I wouldn&amp;rsquo;t have time to bet on that.&lt;/p&gt;
&lt;p&gt;In July 2019 Nintendo announced two updated consoles: the Switch Lite (HDH-001) and a new model of the original Switch (HAC-001(-01)/“V2”) with better battery life. Both models have the upgraded Tegra X1+ SoC and a completely new boot ROM, which can only be hacked with a modchip. There&amp;rsquo;s also an OLED version (HEG-001), which came out in 2021. I have the V2, which I&amp;rsquo;ll be modding. To identify your Switch, you can follow the NH Switch Guide.&lt;/p&gt;
&lt;div
data-alert="note" class="hextra-alert"
&gt;
&lt;p class="hextra-alert-title"&gt;&lt;svg height=16px class="hextra-alert-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"&gt;&lt;path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/&gt;&lt;/svg&gt;&lt;span class="hextra-alert-title-text"&gt;Note&lt;/span&gt;
&lt;/p&gt;
&lt;div class="hextra-alert-content"&gt;&lt;p&gt;The Nintendo Switch 2, released on June 5, 2025, is ignored here. Some user land exploits have &lt;a href="https://www.tomshardware.com/video-games/handheld-gaming/hackers-discover-nintendo-switch-2-exploit-one-day-after-launch-minor-hack-allows-running-custom-code-on-top-of-os" target="_blank" rel="noopener"&gt;already been demonstrated&lt;/a&gt;, but it&amp;rsquo;s not enough to gain privileged access to the device. No hardware hacks have been discovered either.&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h2 data-hextra-search-id="obtain-the-modchip"&gt;Obtain the modchip&lt;span class="hx:absolute hx:-mt-20" id="obtain-the-modchip"&gt;&lt;/span&gt;
&lt;a href="#obtain-the-modchip" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The modchip that I&amp;rsquo;ll be installing is the Picofly, which comes in different variants based on the Switch model. Core for the normal Switch, Lite for the Lite Switch, and OLED for the OLED. All are based on the RP2040 microcontroller. You may also use RP2040 development boards like the RP2040-Zero, but the installation is way more involved. The modchips are most commonly found on AliExpress.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/nintendoswitch-modding/img/modchip.jpg" title="Switch and Core modchip with ribbon cables, and a USB-C port for flashing." alt="Modchip and Switch" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Switch and Core modchip with ribbon cables, and a USB-C port for flashing.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;One may often come across the terms “Hwfly” or “SX Clone” in listings, which refer to the SX Core and SX Lite modchips originally designed and produced by Team Xecuter, until they were arrested. They are partly the reason for the muddy reputation of Switch modchips. These chips that you find nowadays are clones of the originals and use closed source microcontrollers, board designs, and ofter poor quality components. These chips are not related to the Picofly.&lt;/p&gt;
&lt;h2 data-hextra-search-id="installation"&gt;Installation&lt;span class="hx:absolute hx:-mt-20" id="installation"&gt;&lt;/span&gt;
&lt;a href="#installation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 data-hextra-search-id="test-the-modchip"&gt;Test the modchip&lt;span class="hx:absolute hx:-mt-20" id="test-the-modchip"&gt;&lt;/span&gt;
&lt;a href="#test-the-modchip" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Before all else, you should test that the modchip works by connecting the modchip via the USB debug port. The Picofly should come with the firmware pre-flashed onto the controller, but since the firmware is actively maintained by Rehius on GPAtemp, it&amp;rsquo;s not a bad idea to make sure the firmware is up to date. Holding down the boot button while simultaneously plugging in the USB cable will present the modchip as a disk on your computer. Just drag and drop in the firmware.uf2 file, and it will automatically eject itself.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/nintendoswitch-modding/img/firmware.jpg" title="Flashing the firmware." alt="Flashing the firmware" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Flashing the firmware.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="open-up-the-switch"&gt;Open up the switch&lt;span class="hx:absolute hx:-mt-20" id="open-up-the-switch"&gt;&lt;/span&gt;
&lt;a href="#open-up-the-switch" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;I&amp;rsquo;m not going to show the detailed steps on how to tear down the Switch. You can, however, find those steps on the guides from iFixit, for example. You should take apart the Switch, until you get to the bare SoC. Before you do that, it&amp;rsquo;s a good idea to cover the screen with something like tape to prevent scratches when you&amp;rsquo;re working on it. Remember to unplug the battery, once you get to that step. I also disconnected the speaker near the SoC, because its cable was in the way a little. Clean up all the solder paste in preparation for soldering. I first wiped off the bulk with paper, then with a Q-tip and isopropyl alcohol, and lastly with a toothbrush to get the paste between the capacitors on the SoC die.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/nintendoswitch-modding/img/teardown.jpg" title="Switch opened up." alt="Teardown" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Switch opened up.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/nintendoswitch-modding/img/cleaned.jpg" title="SoC cleaned up." alt="SoC cleaned up" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;SoC cleaned up.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="solder-on-the-ribbon-cable"&gt;Solder on the ribbon cable&lt;span class="hx:absolute hx:-mt-20" id="solder-on-the-ribbon-cable"&gt;&lt;/span&gt;
&lt;a href="#solder-on-the-ribbon-cable" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The Picofly Core kit comes with ribbon cables for the V1 and V2 version of the Switch, respectively. The difference between them is the orientation of the capacitors to be soldered to the pads on the cable. Apply flux and pre-tin the pads labeled &lt;code&gt;SP1&lt;/code&gt; and &lt;code&gt;SP2&lt;/code&gt; on the ribbon cable. I didn&amp;rsquo;t have extra flux at the time of soldering, but I tried anyway. Long story short, the experience was so terrible that I stopped to order some before continuing. I used lead-free solder with a flux core, but the flux would evaporate before I got to do the actual soldering of the capacitors.&lt;/p&gt;
&lt;p&gt;After you have tinned the pads on the cable, place it, so that the pads align with the first capacitor from the left and the second last to the right. Make sure the two anker pads and the large pad of the MOSFET section of the cable are under the metal frame around the SoC. Apply more flux to the pads, and while holding down the cable with something like a pair of tweezers, carefully solder the two pairs of pads to the ends of the capacitors. You should be constantly cleaning your iron during the process. Lastly, solder the two anker points to the frame. Using Q-tips, a toothbrush, and isopropyl alcohol, remove the remaining flux to prevent corrosion.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/nintendoswitch-modding/img/soldered.png" title="Ribbon cable soldered on." alt="Soldered" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Ribbon cable soldered on.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="connect-the-modchip-and-emmc-module"&gt;Connect the modchip and eMMC module&lt;span class="hx:absolute hx:-mt-20" id="connect-the-modchip-and-emmc-module"&gt;&lt;/span&gt;
&lt;a href="#connect-the-modchip-and-emmc-module" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Remove the eMMC module from the FPC connector on the motherboard, then connect it to the FPC interface on the modchip. Take something non-conductive like Kapton tape and put it between the modchip and the RAM modules on the right of the SoC. Attach the connector labeled UP on the cable to the modchip and connect the modchip to the motherboard onto the FPC connector where the eMMC module originally was. You can now connect the battery cable and turn on the console to test if it works. When powering on the console, the modchip will start to glitch the CPU, and eventually the screen will display a splash screen: “No SD Card”.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/nintendoswitch-modding/img/installed.jpg" title="Modchip connected to the ribbon cable." alt="Modchip installed" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Modchip connected to the ribbon cable.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/nintendoswitch-modding/img/success.jpg" title="Modchip isntalled succesfully." alt="Success" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Modchip isntalled succesfully.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3 data-hextra-search-id="reassemble-the-console"&gt;Reassemble the console&lt;span class="hx:absolute hx:-mt-20" id="reassemble-the-console"&gt;&lt;/span&gt;
&lt;a href="#reassemble-the-console" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;You can now start putting the Switch back together. After you have tested that your installation works in the previous step, you can remove the Kapton tape on top of the RAM modules. Apply new thermal paste on to the SoC. You need to fold one of the edges of the IHS flat to allow room for the ribbon cable. After putting the IHS back on, put on some Kapton tape between the modchip and the IHS to prevent shorts. As you assemble, apply more thermal paste if needed or replace it completely. Once you get to putting the metal backplate on, you need to cut out a piece from it, because otherwise the modchip doesn&amp;rsquo;t have enough clearance. A pair of scissors works just fine.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://samsitlab.com/blogs/nintendoswitch-modding/img/finished.jpg" title="Finished mod." alt="Finished" data-zoomable loading="lazy" /&gt;
&lt;figcaption&gt;Finished mod.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2 data-hextra-search-id="conclusion"&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;That&amp;rsquo;s all you need to do to unlock a Nintendo Switch. At least the hard part. Next up, you should download a bootloader like Hekate on to an SD card, which allows you to easily load custom firmware like Atmosphère, or even Android and Linux if you like. Hekate offers many useful features, such as, backing up your sysMMC, formatting an SD card and setting up emuMMC, and viewing hardware information. With Atmosphère you can customize the look of the UI, backup your game saves, and mod your games to add new features.&lt;/p&gt;</description></item></channel></rss>