<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Btrfs on Wimpy's World</title><link>https://blog.wimpys.world/tags/btrfs/</link><description>Recent content in Btrfs on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Thu, 15 May 2025 13:37:42 +0100</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/btrfs/rss.xml" rel="self" type="application/rss+xml"/><item><title>Nothing but Nix</title><link>https://blog.wimpys.world/posts/nothing-but-nix-github-actions/</link><pubDate>Thu, 15 May 2025 13:37:42 +0100</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/nothing-but-nix-github-actions/</guid><description>&lt;p&gt;Have you ever tried to build a complex &lt;a href="https://nixos.org/"&gt;NixOS&lt;/a&gt; ️❄️ configuration in GitHub Actions only to be greeted by the dreaded &lt;em&gt;&amp;ldquo;no space left on device&amp;rdquo;&lt;/em&gt; error? I certainly have, and it&amp;rsquo;s been driving me bonkers for quite some time! 😖&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories"&gt;Standard GitHub Actions runners&lt;/a&gt; come with a paltry ~20GB of free disk space, or so it would seem. Which sounds decent until you try to build sophisticated NixOS or &lt;a href="https://nix-community.github.io/home-manager/"&gt;Home Manager&lt;/a&gt; configurations. A comprehensive workstation or home lab server setup can consume 10-15GB due to all the included packages and dependencies, leaving precious little headroom for anything else 🤏&lt;/p&gt;
&lt;p&gt;This space limitation effectively meant I couldn&amp;rsquo;t build my full workstation and server configurations in CI. So annoying! 😠 I wanted my CI to cache complete builds to &lt;a href="https://flakehub.com/"&gt;FlakeHub Cache&lt;/a&gt;, but was forever stuck with only partial builds or individual packages that wouldn&amp;rsquo;t properly test the complete configurations. This meant that each configuration change on my workstations and servers required frustrating additional compilation time for things like 3rd party kernel modules, &lt;a href="https://ollama.com/"&gt;Ollama&lt;/a&gt;, custom package overrides, and more - all because I couldn&amp;rsquo;t get full builds cached through CI ️🥺&lt;/p&gt;
&lt;p&gt;Well, I&amp;rsquo;d had enough of that nonsense and decided to solve the problem once and for all 🧠&lt;/p&gt;
&lt;h2 id="introducing-nothing-but-nix-"&gt;Introducing &lt;em&gt;Nothing but Nix&lt;/em&gt; ️❄️&lt;/h2&gt;
&lt;p&gt;I&amp;rsquo;m chuffed to bits to announce &lt;a href="https://github.com/marketplace/actions/nothing-but-nix"&gt;&lt;em&gt;Nothing but Nix&lt;/em&gt;&lt;/a&gt;, a GitHub Action that &lt;strong&gt;brutally reclaims&lt;/strong&gt; disk space 🪓 on runners and transforms them into Nix powerhouses!&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s what it does in a nutshell:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- &lt;span class="nt"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;actions/checkout@v4&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- &lt;span class="nt"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;wimpysworld/nothing-but-nix@main&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- &lt;span class="nt"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;DeterminateSystems/determinate-nix-action@main&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- &lt;span class="nt"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="sd"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; nix flake check&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The result? Instead of ~20GB for your &lt;a href="https://zero-to-nix.com/concepts/nix-store/"&gt;Nix store&lt;/a&gt;, you get &lt;strong&gt;65GB to 130GB&lt;/strong&gt; of sweet, glorious Nix-dedicated space. That&amp;rsquo;s enough to build even the chonkiest of configurations! 🪨&lt;/p&gt;
&lt;h2 id="space-the-final-frontier-"&gt;Space, the Final Frontier 🌌&lt;/h2&gt;
&lt;p&gt;Working at &lt;a href="https://determinate.systems"&gt;Determinate Systems&lt;/a&gt;, I get to see firsthand how powerful Nix can be when properly cached. Our &lt;a href="https://flakehub.com"&gt;FlakeHub Cache&lt;/a&gt; makes system updates lightning fast ⚡ but I couldn&amp;rsquo;t fully leverage it in CI because my builds kept running out of space.&lt;/p&gt;
&lt;p&gt;I wanted to be able to &lt;strong&gt;build and test all my configurations&lt;/strong&gt; in CI:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;💁 &lt;strong&gt;Servers:&lt;/strong&gt; media services, local LLMs, website, fediverse services, distributed storage, backup&lt;/li&gt;
&lt;li&gt;️🖥️ &lt;strong&gt;Workstations:&lt;/strong&gt; dual GPU, loaded with dev tools, content creation apps and local LLMs&lt;/li&gt;
&lt;li&gt;💻 &lt;strong&gt;Laptops:&lt;/strong&gt; optimized for travel, media on the go, presentations and development&lt;/li&gt;
&lt;li&gt;👻 &lt;strong&gt;VMs:&lt;/strong&gt; for &lt;a href="https://ubuntu-mate.org"&gt;Linux desktop development&lt;/a&gt; and testing&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But GitHub&amp;rsquo;s ~20GB limitation kept getting in the way 🙅 Sure, I could have paid GitHub for their larger runners with more disk space, but being both cheap and stubborn, I wasn&amp;rsquo;t having any of that! 💸❌ Instead, I started thinking, &lt;em&gt;&amp;ldquo;Hang on a minute, those free runners must have more space somewhere - I just need to find it and claim it!&amp;rdquo;&lt;/em&gt; 🤔💭&lt;/p&gt;
&lt;p&gt;After digging through the runner specs and file system layout, I discovered that &lt;strong&gt;GitHub Actions runners have a large chunk of free space on the &lt;code&gt;/mnt&lt;/code&gt; filesystem that&amp;rsquo;s barely used&lt;/strong&gt; 🤯 There was also the possibility to reclaim significant space by purging pre-installed software that Nix users don&amp;rsquo;t need anyway 😈&lt;/p&gt;
&lt;h2 id="the-slightly-mad-science-bit-"&gt;The Slightly Mad Science Bit ‍🧑‍🔬&lt;/h2&gt;
&lt;p&gt;At its core, &lt;em&gt;Nothing but Nix&lt;/em&gt; uses a two-pronged attack:&lt;/p&gt;
&lt;h3 id="1-the-initial-slash-instant-volume-creation"&gt;1. The Initial Slash: Instant Volume Creation&lt;/h3&gt;
&lt;p&gt;First, the action creates a large loop device from free space on &lt;code&gt;/mnt&lt;/code&gt; and sets up a properly tuned BTRFS filesystem:&lt;/p&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="c1"&gt;# Create a large disk image in the free space&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;free_space&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;df -m --output&lt;span class="o"&gt;=&lt;/span&gt;avail /mnt &lt;span class="p"&gt;|&lt;/span&gt; tail -n &lt;span class="m"&gt;1&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; tr -d &lt;span class="s1"&gt;&amp;#39; &amp;#39;&lt;/span&gt;&lt;span class="k"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;loop_dev&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;sudo losetup --find&lt;span class="k"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo fallocate -l &lt;span class="k"&gt;$((&lt;/span&gt;free_space &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="m"&gt;1024&lt;/span&gt;&lt;span class="k"&gt;))&lt;/span&gt;M &lt;span class="s2"&gt;&amp;#34;/mnt/disk0.img&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo losetup &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;loop_dev&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;/mnt/disk0.img&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Set up an optimized BTRFS filesystem&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mkfs.btrfs -L nix -d raid0 -m raid0 --nodiscard &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;loop_dev&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mount &lt;span class="nv"&gt;LABEL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;nix /nix -o noatime,nobarrier,nodiscard,compress&lt;span class="o"&gt;=&lt;/span&gt;zstd:1,space_cache&lt;span class="o"&gt;=&lt;/span&gt;v2,commit&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;120&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;This immediately provides around 65GB of Nix-ready space before your workflow even gets going!&lt;/strong&gt; 💪
I could have stopped here, but did I mention beging stubborn yet? 🫏&lt;/p&gt;
&lt;h3 id="2-the-background-purge-merciless-space-reclamation"&gt;2. The Background Purge: Merciless Space Reclamation&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;While your workflow continues&lt;/strong&gt;, &lt;em&gt;Nothing but Nix&lt;/em&gt; starts a background process to ruthlessly eliminate unnecessary software:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Docker images? Gone! 🗑️&lt;/li&gt;
&lt;li&gt;Language runtimes? Obliterated! 💥&lt;/li&gt;
&lt;li&gt;Package managers? Annihilated! 💣&lt;/li&gt;
&lt;li&gt;Documentation? Vaporized! 🔥&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As space is reclaimed, it creates a second disk image on the root file system and adds it to the BTRFS pool, &lt;strong&gt;dynamically growing your Nix volume up to around 130GB.&lt;/strong&gt; 🚀&lt;/p&gt;
&lt;p&gt;The file system purge is powered by &lt;code&gt;rmz&lt;/code&gt; (from the &lt;a href="https://github.com/SUPERCILEX/fuc"&gt;Fast Unix Commands (FUC)&lt;/a&gt; project) - a high-performance alternative to &lt;code&gt;rm&lt;/code&gt; that makes deletion blazingly fast. &lt;strong&gt;Using traditional &lt;code&gt;rm&lt;/code&gt; a full file system purge took ~11 minutes ⏳😞 &lt;code&gt;rmz&lt;/code&gt; cut that to under 60 seconds!&lt;/strong&gt; ️⏱️😀&lt;/p&gt;
&lt;h3 id="btrfs-with-nodiscard"&gt;BTRFS with &lt;code&gt;nodiscard&lt;/code&gt;?&lt;/h3&gt;
&lt;p&gt;I&amp;rsquo;m using &lt;a href="https://btrfs.readthedocs.io/en/latest/"&gt;BTRFS&lt;/a&gt; for the volume because it:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Supports dynamic device addition&lt;/li&gt;
&lt;li&gt;Has built-in compression to save even more space&lt;/li&gt;
&lt;li&gt;Allows optimal space utilization with RAID0 layout&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The &lt;strong&gt;&lt;code&gt;nodiscard&lt;/code&gt; mount option is absolutely essential&lt;/strong&gt; because we&amp;rsquo;re using loop devices backed by &lt;a href="https://en.wikipedia.org/wiki/Sparse_file"&gt;sparse files&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Without it, BTRFS would try to issue &lt;a href="https://btrfs.readthedocs.io/en/latest/Trim.html"&gt;TRIM/discard&lt;/a&gt; commands that cause allocation size to be misreported when using loop devices. This misreporting would result in inaccurate space accounting. The &lt;code&gt;nodiscard&lt;/code&gt; option ensures the filesystem maintains an accurate picture of its available storage.&lt;/p&gt;
&lt;h2 id="choose-your-weapon-the-hatchet-protocol-"&gt;Choose Your Weapon: The Hatchet Protocol 🪓&lt;/h2&gt;
&lt;p&gt;Not everyone needs the same level of space reclamation, so I&amp;rsquo;ve added different &lt;em&gt;&amp;ldquo;Hatchet Protocol&amp;rdquo;&lt;/em&gt; levels to control how aggressive the action is:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- &lt;span class="nt"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;wimpysworld/nothing-but-nix@main&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;hatchet-protocol&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;cleave&amp;#39;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Options: holster, carve, cleave (default), rampage&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Protocol&lt;/th&gt;
&lt;th&gt;&lt;code&gt;/nix&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Holster&lt;/td&gt;
&lt;td&gt;~65GB&lt;/td&gt;
&lt;td&gt;Keep the hatchet sheathed, use space from &lt;code&gt;/mnt&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Carve&lt;/td&gt;
&lt;td&gt;~85GB&lt;/td&gt;
&lt;td&gt;Craft and combine free space from &lt;code&gt;/&lt;/code&gt; and &lt;code&gt;/mnt&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cleave&lt;/td&gt;
&lt;td&gt;~115GB&lt;/td&gt;
&lt;td&gt;Make decisive cuts to large packages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rampage&lt;/td&gt;
&lt;td&gt;~130GB&lt;/td&gt;
&lt;td&gt;Relentless elimination of all bloat&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;I recommend &lt;strong&gt;Cleave&lt;/strong&gt; for most users, which is the default setting. It strikes a good balance between reclaiming space and keeping some useful tools around. But if you&amp;rsquo;re a proper Nix enthusiast who believes that &lt;code&gt;#nix-is-life&lt;/code&gt;, the Rampage protocol will squeeze out every last byte of space for your Nix store ️️❄️&lt;/p&gt;
&lt;h2 id="from-frustration-to-freedom-"&gt;From Frustration to Freedom ️🕊️&lt;/h2&gt;
&lt;p&gt;Since implementing &lt;em&gt;Nothing but Nix&lt;/em&gt;, I&amp;rsquo;ve been able to build &lt;strong&gt;all&lt;/strong&gt; my NixOS and Home Manager configurations in CI. This means:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;🔒 Every &lt;code&gt;flake.lock&lt;/code&gt; update is fully tested against my complete configuration set&lt;/li&gt;
&lt;li&gt;✅ All successful builds are cached to FlakeHub Cache&lt;/li&gt;
&lt;li&gt;⚡ System updates are lightning-fast&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This has been an absolute game-changer for my workflow. Now when I apply updates to any of my devices, everything is delivered directly from &lt;code&gt;cache.flakehub.com&lt;/code&gt; with zero local compilation time! 🚀 All packages have been pre-built and verified in CI, meaning updates that would have taken ages to compile (&lt;em&gt;looking at you &lt;code&gt;ollama&lt;/code&gt;&lt;/em&gt; 👀) locally now complete in seconds. It&amp;rsquo;s the difference between waiting for a coffee break and a blink-and-you&amp;rsquo;ll-miss-it experience 🤩&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s what the build times look like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;💁 2x Servers: ~5-10 minutes&lt;/li&gt;
&lt;li&gt;️🖥️ 2x Workstations: ~6-13 minutes&lt;/li&gt;
&lt;li&gt;💻 4x Laptops: ~7-10 minutes&lt;/li&gt;
&lt;li&gt;👻 2x Virutal Manachines: ~4-10 minutes&lt;/li&gt;
&lt;li&gt;📦 59x Local packages: ~5-14 minutes&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="getting-started-with-nothing-but-nix-"&gt;Getting Started with &lt;em&gt;Nothing but Nix&lt;/em&gt; ✨&lt;/h2&gt;
&lt;p&gt;Ready to give it a go? Here&amp;rsquo;s how to use it in your GitHub Actions workflow:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Test Nix Flake&amp;#34;&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;pull_request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;push&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;branches&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;main ]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;tests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;ubuntu-latest&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;id-token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;write&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;read&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;actions/checkout@v4 &lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# 👇 Add this before installing Nix&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;wimpysworld/nothing-but-nix@main &lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;DeterminateSystems/determinate-nix-action@main&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="sd"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; # Now you have 100+ GB for your Nix builds!
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; nix build . -L
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; nix flake check&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For FlakeHub users, make sure you add the &lt;code&gt;permissions&lt;/code&gt; block as shown above. This allows &lt;a href="https://determinate.systems/nix/"&gt;Determinate Nix&lt;/a&gt; to authenticate with FlakeHub and FlakeHub Cache.&lt;/p&gt;
&lt;h2 id="beyond-storage-to-virtual-machines-"&gt;Beyond Storage to Virtual Machines? 🔮&lt;/h2&gt;
&lt;p&gt;Now that I&amp;rsquo;ve proven large volumes can be dynamically constructed in GitHub runners, I&amp;rsquo;m starting to think about what else might be possible. A GitHub action that implements something like &lt;a href="https://github.com/quickemu-project/quickemu"&gt;Quickemu&lt;/a&gt; (&lt;em&gt;another project of mine&lt;/em&gt;), to standup KVM-accelerated VMs inside a GitHub runner is my favourite idea 💡&lt;/p&gt;
&lt;p&gt;GitHub has &lt;a href="https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-host"&gt;recently announced&lt;/a&gt; hardware acceleration for Android virtualization on Linux runners, which means the KVM infrastructure is already there and avilable for open source projects and larger runners 😯 All we need to do is leverage it for our own VMs.&lt;/p&gt;
&lt;p&gt;Imagine being able to run a full VM of your validated build environment inside GitHub Actions! It would be like having a self-hosted runner, but without the self-hosting 😏 And it just so happens that the &lt;a href="https://github.com/DeterminateSystems/determinate-nix-action"&gt;Determinate Nix Action&lt;/a&gt; enables KVM in GitHub runners. Coincidence? 😉&lt;/p&gt;
&lt;h2 id="build-something-massive-"&gt;Build Something Massive ️🏗️&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Nothing but Nix&lt;/em&gt; removes one of the most frustrating limitations for Nix users in GitHub Actions. No more trimming your configurations to fit into tiny spaces - now you can build and test your full NixOS fleet with confidence 🤓&lt;/p&gt;
&lt;p&gt;Give it a try, and let me know what you think!&lt;/p&gt;
&lt;p&gt;The action is available at:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/wimpysworld/nothing-but-nix"&gt;wimpysworld/nothing-but-nix&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Marketplace: &lt;a href="https://github.com/marketplace/actions/nothing-but-nix"&gt;&lt;em&gt;Nothing but Nix&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you run into any issues or have ideas for improvements, please open an issue on GitHub. And if this tool saves your CI builds, consider giving the repo a star! ⭐&lt;/p&gt;
&lt;p&gt;Happy Nixing! ❄️&lt;/p&gt;</description><summary>The Nix Space Heist: Reclaiming 130GB in GitHub Actions</summary></item><item><title>Linux Mint LMDE on Hybrid Disk Laptop</title><link>https://blog.wimpys.world/posts/linux-mint-lmde-on-hybrid-disk-laptop/</link><pubDate>Wed, 28 Aug 2013 20:10:09 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/linux-mint-lmde-on-hybrid-disk-laptop/</guid><description>&lt;p&gt;I have an old Thinkpad T43p that I am trying to extend the life of. So I recently
fitted a cheap 60GB IDE Solid State Drive (SSD) and put a 320GB SATA Hard Disk
Drive (HDD) in the Ultrabay. This is not a true hybrid disk, but the principles
are similar. The root partition will go on the SDD (for performance) and the
home partition will be located on the HDD (for capacity).&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve been running &lt;a href="http://www.archlinux.org"&gt;Arch Linux&lt;/a&gt; on the T43p and the SDD
improves system responsiveness and boot time considerably, especially when using
&lt;a href="http://en.wikipedia.org/wiki/F2FS"&gt;F2FS&lt;/a&gt; or
&lt;a href="https://btrfs.wiki.kernel.org/index.php/Main_Page"&gt;btrfs&lt;/a&gt; (with LZO
compression and SSD mount options) on the root filesystem.&lt;/p&gt;
&lt;p&gt;I am also testing &lt;a href="http://www.linuxmint.com/download_lmde.php"&gt;Linux Mint Debian Edition&lt;/a&gt; (LMDE)
with the &lt;a href="http://mate-desktop.org/"&gt;MATE Desktop&lt;/a&gt; desktop to determine if this
is a suitable operating system for my family to use. It appears they find
&lt;a href="http://www.gnome.org/gnome-3/"&gt;GNOME 3&lt;/a&gt; confusing and would prefer a familiar
desktop experience.&lt;/p&gt;
&lt;p&gt;While testing LMDE 201203 I ran into a few issues, so I&amp;rsquo;ve decided to capture
my notes here for future reference.&lt;/p&gt;
&lt;h1 id="fix-the-installer"&gt;Fix the installer&lt;/h1&gt;
&lt;p&gt;In order to install LMDE using partitions on multiple drives you must
use the ADVANCED USER install mode. However, the ADVANCED USER install mode
has a bug that prevents the installer from completing, so that needs to be
fixed first.&lt;/p&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;sudo nano /usr/lib/live-installer/frontend/gtk_interface.py
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Find the following on line 1765.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;wTree&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_widget&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;button_next&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After it add the following line, making sure the indentation is correct.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;wTree&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_widget&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;button_next&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_sensitive&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h1 id="installing-lmde"&gt;Installing LMDE&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Double click the &lt;code&gt;Install Linux Mint&lt;/code&gt; icon on the desktop.&lt;/li&gt;
&lt;li&gt;Select your &lt;em&gt;Language&lt;/em&gt; and click &lt;code&gt;Forward&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Select your &lt;em&gt;Timezone&lt;/em&gt; and click &lt;code&gt;Forward&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Select your &lt;em&gt;Keyboard layout&lt;/em&gt; and click &lt;code&gt;Forward&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Enter your &lt;em&gt;User info&lt;/em&gt; and click &lt;code&gt;Forward&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;From the &lt;em&gt;Hard drive&lt;/em&gt; window Select &lt;code&gt;Manually mount partitions (ADVANCED USERS ONLY)&lt;/code&gt; and click &lt;code&gt;Forward&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;em&gt;Please make sure you wish to manually manage partitions&lt;/em&gt; window will
appear. On my system the SSD is detected on &lt;code&gt;/dev/sda&lt;/code&gt; and the HDD is detected
on &lt;code&gt;/dev/sdb&lt;/code&gt;. Start &lt;code&gt;GParted&lt;/code&gt; and partition and format the drives as follows.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; /dev/sda1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Size: 256MiB
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Create as: Primary Partition
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; File system: ext4
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Label: boot
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; /dev/sda2
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Size: 2048MiB (or the size you prefer)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Create as: Primary Partition
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; File system: linux-swap
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Label: swap
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; /dev/sda3
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Size: Remainder
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Create as: Primary Partition
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; File system: btrfs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Label: root
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; /dev/sdb1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Size: All
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Create as: Primary Partition
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; File system: ext4
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Label: home
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Apply the changes and close GParted.&lt;/p&gt;
&lt;p&gt;I use ext4 for the &lt;code&gt;/boot&lt;/code&gt; partition because GRUB can&amp;rsquo;t currently boot from btrfs
in LMDE. I use ext4 for &lt;code&gt;/home&lt;/code&gt; because it offers the best performance on rotational
drives on my Thinkpad T43p. I use btrfs on the &lt;code&gt;/root&lt;/code&gt; partition because performs
best (by some margin) on solid state drives in my Thinkpad T43p.&lt;/p&gt;
&lt;p&gt;The filesystems need mounting under &lt;code&gt;/target&lt;/code&gt; so the installer can install the
OS. Open a Terminal and do the following.&lt;/p&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;sudo mkdir /target
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mount -t btrfs -o &lt;span class="nv"&gt;compress&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;lzo,ssd /dev/disk/by-label/root /target
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mkdir /target/&lt;span class="o"&gt;{&lt;/span&gt;boot,home&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mount -t ext4 /dev/disk/by-label/boot /target/boot
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mount -t ext4 /dev/disk/by-label/home /target/home
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Return to the Linux Mint Debian Installer.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click &lt;code&gt;Forward&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;From the &lt;em&gt;Advanced options&lt;/em&gt; check &lt;code&gt;Install GRUB&lt;/code&gt; and select &lt;code&gt;/dev/sda&lt;/code&gt;. Click &lt;code&gt;Forward&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Confirm the &lt;em&gt;Summary&lt;/em&gt; is correct and click &lt;code&gt;Install&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Time for a cup of tea while the install runs. A pop-up, titled &lt;em&gt;Installation
Paused&lt;/em&gt;, will appear. Click &lt;code&gt;OK&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="create-targetetcfstab"&gt;Create &lt;code&gt;/target/etc/fstab&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;Do as the installer says and create &lt;code&gt;/target/etc/fstab&lt;/code&gt;. Open a Terminal.&lt;/p&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;sudo nano /target/etc/fstab
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The following &lt;code&gt;fstab&lt;/code&gt; works for my T43p.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# /etc/fstab: static file system information.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;#
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# &amp;lt;file system&amp;gt; &amp;lt;mount point&amp;gt; &amp;lt;type&amp;gt; &amp;lt;options&amp;gt; &amp;lt;dump&amp;gt; &amp;lt;pass&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;proc /proc proc defaults 0 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;LABEL=root / btrfs defaults,noatime,compress=lzo,ssd 0 1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;LABEL=boot /boot ext4 defaults,noatime 0 2
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;LABEL=home /home ext4 defaults,relatime 0 2
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;LABEL=swap none swap sw 0 0
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="upgrade-mate-16-and-remove-legacy-mate-14-packages"&gt;Upgrade MATE 1.6 and remove legacy MATE 1.4 packages&lt;/h2&gt;
&lt;p&gt;MATE 1.6 has been released for LMDE 201203 so it is a good idea to upgrade
and remove legacy packages before the first boot to ensure a clean
configuration. Open a Terminal.&lt;/p&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;sudo chroot /target
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install apt-show-versions
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get dist-upgrade
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Some MATE 1.4 packages will be left behind that are no longer required. The
following can help identify them.&lt;/p&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;apt-show-versions &lt;span class="p"&gt;|&lt;/span&gt; grep 1&lt;span class="se"&gt;\.&lt;/span&gt;4&lt;span class="se"&gt;\.&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;0-9&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="se"&gt;\-&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;0-9&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="se"&gt;\+&lt;/span&gt;wheezy &lt;span class="p"&gt;|&lt;/span&gt; cut -f1 -d&lt;span class="s1"&gt;&amp;#39; &amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Purge the old MATE 1.4 packages.&lt;/p&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;PKGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;apt-show-versions &lt;span class="p"&gt;|&lt;/span&gt; grep 1&lt;span class="se"&gt;\.&lt;/span&gt;4&lt;span class="se"&gt;\.&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;0-9&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="se"&gt;\-&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;0-9&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="se"&gt;\+&lt;/span&gt;wheezy &lt;span class="p"&gt;|&lt;/span&gt; cut -f1 -d&lt;span class="s1"&gt;&amp;#39; &amp;#39;&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get purge &lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PKGS&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Exit the &lt;code&gt;chroot&lt;/code&gt;.&lt;/p&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="nb"&gt;exit&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="finish-the-install"&gt;Finish the install&lt;/h2&gt;
&lt;p&gt;Return to the Linux Mint Debian Installer.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click &lt;code&gt;Forward&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Some final installation steps will now complete.&lt;/li&gt;
&lt;li&gt;A pop-up, titled &lt;em&gt;Installation finished&lt;/em&gt;, will appear. Click &lt;code&gt;Yes&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Your computer will reboot and start LMDE.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://forums.linuxmint.com/viewtopic.php?f=189&amp;amp;t=129381"&gt;http://forums.linuxmint.com/viewtopic.php?f=189&amp;amp;t=129381&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://forums.linuxmint.com/viewtopic.php?f=185&amp;amp;t=143547"&gt;http://forums.linuxmint.com/viewtopic.php?f=185&amp;amp;t=143547&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Installing Linux Mint Debian Edition (LMDE) on a Laptop with Hybrid Disk</summary></item></channel></rss>