trents_blog/site/posts/forklift-upgrade-arch-linux-precision-3561/index.html
2021-10-19 17:53:46 -07:00

2505 lines
63 KiB
HTML

<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="Trent's blog of mostly technical documentations.">
<link rel="canonical" href="https://blog.trentsonlinedocs.xyz/posts/forklift-upgrade-arch-linux-precision-3561/">
<link rel="icon" href="../../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.2.2, mkdocs-material-7.2.6">
<title>Forklift Upgrade Arch Linux To A Dell Precision 3561 - Trent's Blog</title>
<link rel="stylesheet" href="../../assets/stylesheets/main.802231af.min.css">
<link rel="stylesheet" href="../../assets/stylesheets/palette.3f5d1f46.min.css">
<meta name="theme-color" content="#ffffff">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700%7CRoboto+Mono&display=fallback">
<style>:root{--md-text-font-family:"Roboto";--md-code-font-family:"Roboto Mono"}</style>
<link rel="stylesheet" href="../../extra.css">
<meta property="og:type" content="website" />
<meta property="og:title" content="Trent's Blog - Forklift Upgrade Arch Linux To A Dell Precision 3561" />
<meta property="og:description" content="Trent's blog of mostly technical documentations." />
<meta property="og:url" content="https://blog.trentsonlinedocs.xyz/posts/forklift-upgrade-arch-linux-precision-3561/" />
<meta property="og:image" content="https://blog.trentsonlinedocs.xyz/photos/fifty-screenFetch-2021-10-19_02-11-50.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="960" />
<meta property="og:image:height" content="540" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@BoringTrent" />
<meta name="twitter:creator" content="@BoringTrent" />
<meta name="twitter:title" content="Trent's Blog - Forklift Upgrade Arch Linux To A Dell Precision 3561" />
<meta name="twitter:description" content="Trent's blog of mostly technical documentations." />
<meta name="twitter:image" content="https://blog.trentsonlinedocs.xyz/photos/fifty-screenFetch-2021-10-19_02-11-50.png" />
<link href="https://blog.trentsonlinedocs.xyz/feed_rss_created.xml" type="application/rss+xml" rel="alternate" title="Trent's Blog - RSS Feed Created"/>
<link href="https://blog.trentsonlinedocs.xyz/feed_rss_updated.xml" type="application/rss+xml" rel="alternate" title="Trent's Blog - RSS Feed Updated"/>
</head>
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="white" data-md-color-accent="">
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" for="__drawer"></label>
<div data-md-component="skip">
<a href="#introduction" class="md-skip">
Skip to content
</a>
</div>
<div data-md-component="announce">
</div>
<header class="md-header" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header">
<a href="../.." title="Trent&#39;s Blog" class="md-header__button md-logo" aria-label="Trent's Blog" data-md-component="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54z"/></svg>
</a>
<label class="md-header__button md-icon" for="__drawer">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
</label>
<div class="md-header__title" data-md-component="header-title">
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis">
Trent's Blog
</span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
Forklift Upgrade Arch Linux To A Dell Precision 3561
</span>
</div>
</div>
</div>
<label class="md-header__button md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
</label>
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
<label class="md-search__icon md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
</label>
<nav class="md-search__options" aria-label="Search">
<button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</nav>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
<div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
</div>
</div>
</div>
</div>
</nav>
</header>
<div class="md-container" data-md-component="container">
<nav class="md-tabs" aria-label="Tabs" data-md-component="tabs">
<div class="md-tabs__inner md-grid">
<ul class="md-tabs__list">
<li class="md-tabs__item">
<a href="../.." class="md-tabs__link">
Home
</a>
</li>
<li class="md-tabs__item">
<a href="../../rss/" class="md-tabs__link">
RSS
</a>
</li>
<li class="md-tabs__item">
<a href="../../links/" class="md-tabs__link">
Links
</a>
</li>
<li class="md-tabs__item">
<a href="./" class="md-tabs__link md-tabs__link--active">
Posts
</a>
</li>
<li class="md-tabs__item">
<a href="https://git.boringonian.com/trent/trents_blog" class="md-tabs__link">
Source
</a>
</li>
<li class="md-tabs__item">
<a href="https://trentpalmer.org" class="md-tabs__link">
TrentReads
</a>
</li>
<li class="md-tabs__item">
<a href="https://blog.trentpalmer.org" class="md-tabs__link">
AttentionSpanHistory
</a>
</li>
<li class="md-tabs__item">
<a href="https://github.com/TrentSPalmer" class="md-tabs__link">
GitHub
</a>
</li>
<li class="md-tabs__item">
<a href="https://twitter.com/boringtrent" class="md-tabs__link">
Twitter
</a>
</li>
<li class="md-tabs__item">
<a href="https://www.facebook.com/trentspalmer" class="md-tabs__link">
Facebook
</a>
</li>
<li class="md-tabs__item">
<a href="https://docs.trentsonlinedocs.xyz/" class="md-tabs__link">
TrentDocs
</a>
</li>
<li class="md-tabs__item">
<a href="https://trentsonlinedocs.xyz/hugo-themes-report/hugo-themes-report.html" class="md-tabs__link">
HugoThemesReport
</a>
</li>
<li class="md-tabs__item">
<a href="https://play.google.com/store/apps/details?id=org.trentpalmer.libre_gps_parser" class="md-tabs__link">
LibreGpsParser
</a>
</li>
</ul>
</div>
</nav>
<main class="md-main" data-md-component="main">
<div class="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="../.." title="Trent&#39;s Blog" class="md-nav__button md-logo" aria-label="Trent's Blog" data-md-component="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54z"/></svg>
</a>
Trent's Blog
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_1" type="checkbox" id="__nav_1" >
<label class="md-nav__link" for="__nav_1">
Home
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Home" data-md-level="1">
<label class="md-nav__title" for="__nav_1">
<span class="md-nav__icon md-icon"></span>
Home
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../.." class="md-nav__link">
Home
</a>
</li>
<li class="md-nav__item">
<input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
<label class="md-nav__link md-nav__link--active" for="__toc">
Forklift Upgrade Arch Linux To A Dell Precision 3561
<span class="md-nav__icon md-icon"></span>
</label>
<a href="./" class="md-nav__link md-nav__link--active">
Forklift Upgrade Arch Linux To A Dell Precision 3561
</a>
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#introduction" class="md-nav__link">
Introduction
</a>
</li>
<li class="md-nav__item">
<a href="#the-new-laptop" class="md-nav__link">
The New Laptop
</a>
</li>
<li class="md-nav__item">
<a href="#creating-a-rescue-disk" class="md-nav__link">
Creating a Rescue Disk
</a>
</li>
<li class="md-nav__item">
<a href="#transfering-arch-to-usb" class="md-nav__link">
Transfering Arch to USB
</a>
<nav class="md-nav" aria-label="Transfering Arch to USB">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#formatting-the-thumb-drive" class="md-nav__link">
Formatting the Thumb Drive.
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-efi-partition-files-to-thumb-drive" class="md-nav__link">
Copying the efi partition files to Thumb Drive
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-partition-files-to-the-thumb-drive" class="md-nav__link">
Copying the / partition files to the Thumb Drive
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#rescuing-the-thumb-drive-via-chroot" class="md-nav__link">
Rescuing The Thumb Drive via Chroot
</a>
<nav class="md-nav" aria-label="Rescuing The Thumb Drive via Chroot">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#updating-fstab-for-the-thumb-drive" class="md-nav__link">
Updating fstab for the Thumb Drive
</a>
</li>
<li class="md-nav__item">
<a href="#rebuilding-the-initramfs-for-the-thumb-drive" class="md-nav__link">
Rebuilding the Initramfs for the Thumb Drive
</a>
</li>
<li class="md-nav__item">
<a href="#updating-the-systemd-boot-entry-for-the-thumb-drive" class="md-nav__link">
Updating the systemd-boot Entry for the Thumb Drive
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#running-arch-from-usb" class="md-nav__link">
Running Arch from USB
</a>
</li>
<li class="md-nav__item">
<a href="#transfering-arch-to-the-new-ssds" class="md-nav__link">
Transfering Arch to the New ssds
</a>
<nav class="md-nav" aria-label="Transfering Arch to the New ssds">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#formatting-the-new-nvme-ssds" class="md-nav__link">
Formatting The New NVME ssds
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-efi-partition-files-to-nvme-ssd" class="md-nav__link">
Copying the efi partition files to NVME ssd
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-partition-files-to-the-new-nvme-ssds" class="md-nav__link">
Copying the / partition files to the new NVME ssds
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#rescuing-the-new-laptop-via-chroot" class="md-nav__link">
Rescuing The New Laptop via Chroot
</a>
<nav class="md-nav" aria-label="Rescuing The New Laptop via Chroot">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#updating-fstab-for-the-new-laptop" class="md-nav__link">
Updating fstab for The New Laptop
</a>
</li>
<li class="md-nav__item">
<a href="#updating-mdadmconf-and-mkinitcpioconf" class="md-nav__link">
Updating mdadm.conf and mkinitcpio.conf
</a>
</li>
<li class="md-nav__item">
<a href="#updating-the-systemd-boot-entry-for-the-new-laptop" class="md-nav__link">
Updating the systemd-boot Entry for the New Laptop
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-6/" class="md-nav__link">
Ansible KVM Router Lab Part 6
</a>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-5/" class="md-nav__link">
Ansible KVM Router Lab Part 5
</a>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-4/" class="md-nav__link">
Ansible KVM Router Lab Part 4
</a>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-3/" class="md-nav__link">
Ansible KVM Router Lab Part 3
</a>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-2/" class="md-nav__link">
Ansible KVM Router Lab Part 2
</a>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-1/" class="md-nav__link">
Ansible KVM Router Lab Part 1
</a>
</li>
<li class="md-nav__item">
<a href="../add-kvm-network-with-virsh/" class="md-nav__link">
Add KVM Network With Virsh
</a>
</li>
<li class="md-nav__item">
<a href="../kvm-on-arch/" class="md-nav__link">
KVM On Arch
</a>
</li>
<li class="md-nav__item">
<a href="../raspberrypi-lte-failover-router-with-dns-caching/" class="md-nav__link">
RaspberryPi LTE-Failover Router With DNS Caching
</a>
</li>
<li class="md-nav__item">
<a href="../debian-11-nspawn-flutter-integration-test-server/" class="md-nav__link">
Flutter Integration Test Server in Debian 11 Nspawn Container
</a>
</li>
<li class="md-nav__item">
<a href="../debian-11-ttrss/" class="md-nav__link">
Debian 11 TT-RSS
</a>
</li>
<li class="md-nav__item">
<a href="../trents-favorite-podcasts/" class="md-nav__link">
Trent's Favorite Podcasts
</a>
</li>
<li class="md-nav__item">
<a href="../test-qr-svg-django/" class="md-nav__link">
Test QR SVG Django
</a>
</li>
<li class="md-nav__item">
<a href="../prosody-photo-uploads/" class="md-nav__link">
Prosody Photo Uploads
</a>
</li>
<li class="md-nav__item">
<a href="../xmpp-apt-notifications/" class="md-nav__link">
XMPP Apt Notification
</a>
</li>
<li class="md-nav__item">
<a href="../apache-virtual-hosts/" class="md-nav__link">
Apache Virtual Hosts
</a>
</li>
<li class="md-nav__item">
<a href="../sendxmpp-handler-for-python-logging/" class="md-nav__link">
SENDXMPP Handler for Python Logging
</a>
</li>
<li class="md-nav__item">
<a href="../instructions-for-tethering-from-phone/" class="md-nav__link">
Instruction For Tethering From Phone
</a>
</li>
<li class="md-nav__item">
<a href="../lmde4-custom-partitions-disk-encryption/" class="md-nav__link">
LMDE4 Custom Partitions for Disk Encryption
</a>
</li>
<li class="md-nav__item">
<a href="../linux-move-cursor-with-keyboard/" class="md-nav__link">
Linux Move Cursor With Keyboard
</a>
</li>
<li class="md-nav__item">
<a href="../simplified-raspberry-streaming/" class="md-nav__link">
Simplified Raspberry Streaming
</a>
</li>
<li class="md-nav__item">
<a href="../clear-linux-encrypted-xfs-root/" class="md-nav__link">
Clear Linux Encrypted XFS Root
</a>
</li>
<li class="md-nav__item">
<a href="../clear-linux-guest-virt-manager/" class="md-nav__link">
Clear Linux Guest Virt Manager
</a>
</li>
<li class="md-nav__item">
<a href="../faster-partitioning-with-sgdisk/" class="md-nav__link">
Faster Partitioning with Sgdisk
</a>
</li>
<li class="md-nav__item">
<a href="../lmde3-xfs-full-disk-encryption/" class="md-nav__link">
LMDE3 XFS Full Disk Encryption
</a>
</li>
<li class="md-nav__item">
<a href="../rewrite-hugo-themes-report-in-python/" class="md-nav__link">
Rewrite Hugo Themes Report In Python
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_2" type="checkbox" id="__nav_2" >
<label class="md-nav__link" for="__nav_2">
RSS
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="RSS" data-md-level="1">
<label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span>
RSS
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../rss/" class="md-nav__link">
RSS
</a>
</li>
<li class="md-nav__item">
<a href="/feed_rss_created.xml" class="md-nav__link">
RssCreated
</a>
</li>
<li class="md-nav__item">
<a href="/feed_rss_updated.xml" class="md-nav__link">
RssUpdated
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
<label class="md-nav__link" for="__nav_3">
Links
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Links" data-md-level="1">
<label class="md-nav__title" for="__nav_3">
<span class="md-nav__icon md-icon"></span>
Links
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../links/" class="md-nav__link">
Links
</a>
</li>
<li class="md-nav__item">
<a href="https://git.boringonian.com/trent/trents_blog" class="md-nav__link">
Source
</a>
</li>
<li class="md-nav__item">
<a href="https://trentpalmer.org" class="md-nav__link">
TrentReads
</a>
</li>
<li class="md-nav__item">
<a href="https://blog.trentpalmer.org" class="md-nav__link">
AttentionSpanHistory
</a>
</li>
<li class="md-nav__item">
<a href="https://github.com/TrentSPalmer" class="md-nav__link">
GitHub
</a>
</li>
<li class="md-nav__item">
<a href="https://twitter.com/boringtrent" class="md-nav__link">
Twitter
</a>
</li>
<li class="md-nav__item">
<a href="https://www.facebook.com/trentspalmer" class="md-nav__link">
Facebook
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.trentsonlinedocs.xyz/" class="md-nav__link">
TrentDocs
</a>
</li>
<li class="md-nav__item">
<a href="https://trentsonlinedocs.xyz/hugo-themes-report/hugo-themes-report.html" class="md-nav__link">
HugoThemesReport
</a>
</li>
<li class="md-nav__item">
<a href="https://play.google.com/store/apps/details?id=org.trentpalmer.libre_gps_parser" class="md-nav__link">
LibreGpsParser
</a>
</li>
<li class="md-nav__item">
<a href="https://concise-pdx.com/" class="md-nav__link">
ConcisePDX
</a>
</li>
<li class="md-nav__item">
<a href="https://trentspalmer.github.io/fcc-challenges/" class="md-nav__link">
FreeCodeCampChallenges
</a>
</li>
<li class="md-nav__item">
<a href="https://trentpalmer.work/6a57bbe24d8244289610bf57533d6c6f/" class="md-nav__link">
DeviceLayout
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
<label class="md-nav__link" for="__nav_4">
Posts
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Posts" data-md-level="1">
<label class="md-nav__title" for="__nav_4">
<span class="md-nav__icon md-icon"></span>
Posts
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--active">
<input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
<label class="md-nav__link md-nav__link--active" for="__toc">
Forklift Upgrade Arch Linux To A Dell Precision 3561
<span class="md-nav__icon md-icon"></span>
</label>
<a href="./" class="md-nav__link md-nav__link--active">
Forklift Upgrade Arch Linux To A Dell Precision 3561
</a>
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#introduction" class="md-nav__link">
Introduction
</a>
</li>
<li class="md-nav__item">
<a href="#the-new-laptop" class="md-nav__link">
The New Laptop
</a>
</li>
<li class="md-nav__item">
<a href="#creating-a-rescue-disk" class="md-nav__link">
Creating a Rescue Disk
</a>
</li>
<li class="md-nav__item">
<a href="#transfering-arch-to-usb" class="md-nav__link">
Transfering Arch to USB
</a>
<nav class="md-nav" aria-label="Transfering Arch to USB">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#formatting-the-thumb-drive" class="md-nav__link">
Formatting the Thumb Drive.
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-efi-partition-files-to-thumb-drive" class="md-nav__link">
Copying the efi partition files to Thumb Drive
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-partition-files-to-the-thumb-drive" class="md-nav__link">
Copying the / partition files to the Thumb Drive
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#rescuing-the-thumb-drive-via-chroot" class="md-nav__link">
Rescuing The Thumb Drive via Chroot
</a>
<nav class="md-nav" aria-label="Rescuing The Thumb Drive via Chroot">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#updating-fstab-for-the-thumb-drive" class="md-nav__link">
Updating fstab for the Thumb Drive
</a>
</li>
<li class="md-nav__item">
<a href="#rebuilding-the-initramfs-for-the-thumb-drive" class="md-nav__link">
Rebuilding the Initramfs for the Thumb Drive
</a>
</li>
<li class="md-nav__item">
<a href="#updating-the-systemd-boot-entry-for-the-thumb-drive" class="md-nav__link">
Updating the systemd-boot Entry for the Thumb Drive
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#running-arch-from-usb" class="md-nav__link">
Running Arch from USB
</a>
</li>
<li class="md-nav__item">
<a href="#transfering-arch-to-the-new-ssds" class="md-nav__link">
Transfering Arch to the New ssds
</a>
<nav class="md-nav" aria-label="Transfering Arch to the New ssds">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#formatting-the-new-nvme-ssds" class="md-nav__link">
Formatting The New NVME ssds
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-efi-partition-files-to-nvme-ssd" class="md-nav__link">
Copying the efi partition files to NVME ssd
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-partition-files-to-the-new-nvme-ssds" class="md-nav__link">
Copying the / partition files to the new NVME ssds
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#rescuing-the-new-laptop-via-chroot" class="md-nav__link">
Rescuing The New Laptop via Chroot
</a>
<nav class="md-nav" aria-label="Rescuing The New Laptop via Chroot">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#updating-fstab-for-the-new-laptop" class="md-nav__link">
Updating fstab for The New Laptop
</a>
</li>
<li class="md-nav__item">
<a href="#updating-mdadmconf-and-mkinitcpioconf" class="md-nav__link">
Updating mdadm.conf and mkinitcpio.conf
</a>
</li>
<li class="md-nav__item">
<a href="#updating-the-systemd-boot-entry-for-the-new-laptop" class="md-nav__link">
Updating the systemd-boot Entry for the New Laptop
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-6/" class="md-nav__link">
Ansible KVM Router Lab Part 6
</a>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-5/" class="md-nav__link">
Ansible KVM Router Lab Part 5
</a>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-4/" class="md-nav__link">
Ansible KVM Router Lab Part 4
</a>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-3/" class="md-nav__link">
Ansible KVM Router Lab Part 3
</a>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-2/" class="md-nav__link">
Ansible KVM Router Lab Part 2
</a>
</li>
<li class="md-nav__item">
<a href="../ansible-kvm-router-lab-part-1/" class="md-nav__link">
Ansible KVM Router Lab Part 1
</a>
</li>
<li class="md-nav__item">
<a href="../add-kvm-network-with-virsh/" class="md-nav__link">
Add KVM Network With Virsh
</a>
</li>
<li class="md-nav__item">
<a href="../kvm-on-arch/" class="md-nav__link">
KVM On Arch
</a>
</li>
<li class="md-nav__item">
<a href="../raspberrypi-lte-failover-router-with-dns-caching/" class="md-nav__link">
RaspberryPi LTE-Failover Router With DNS Caching
</a>
</li>
<li class="md-nav__item">
<a href="../debian-11-nspawn-flutter-integration-test-server/" class="md-nav__link">
Flutter Integration Test Server in Debian 11 Nspawn Container
</a>
</li>
<li class="md-nav__item">
<a href="../debian-11-ttrss/" class="md-nav__link">
Debian 11 TT-RSS
</a>
</li>
<li class="md-nav__item">
<a href="../trents-favorite-podcasts/" class="md-nav__link">
Trent's Favorite Podcasts
</a>
</li>
<li class="md-nav__item">
<a href="../test-qr-svg-django/" class="md-nav__link">
Test QR SVG Django
</a>
</li>
<li class="md-nav__item">
<a href="../prosody-photo-uploads/" class="md-nav__link">
Prosody Photo Uploads
</a>
</li>
<li class="md-nav__item">
<a href="../xmpp-apt-notifications/" class="md-nav__link">
XMPP Apt Notification
</a>
</li>
<li class="md-nav__item">
<a href="../apache-virtual-hosts/" class="md-nav__link">
Apache Virtual Hosts
</a>
</li>
<li class="md-nav__item">
<a href="../sendxmpp-handler-for-python-logging/" class="md-nav__link">
SENDXMPP Handler for Python Logging
</a>
</li>
<li class="md-nav__item">
<a href="../instructions-for-tethering-from-phone/" class="md-nav__link">
Instruction For Tethering From Phone
</a>
</li>
<li class="md-nav__item">
<a href="../lmde4-custom-partitions-disk-encryption/" class="md-nav__link">
LMDE4 Custom Partitions for Disk Encryption
</a>
</li>
<li class="md-nav__item">
<a href="../linux-move-cursor-with-keyboard/" class="md-nav__link">
Linux Move Cursor With Keyboard
</a>
</li>
<li class="md-nav__item">
<a href="../simplified-raspberry-streaming/" class="md-nav__link">
Simplified Raspberry Streaming
</a>
</li>
<li class="md-nav__item">
<a href="../clear-linux-encrypted-xfs-root/" class="md-nav__link">
Clear Linux Encrypted XFS Root
</a>
</li>
<li class="md-nav__item">
<a href="../clear-linux-guest-virt-manager/" class="md-nav__link">
Clear Linux Guest Virt Manager
</a>
</li>
<li class="md-nav__item">
<a href="../faster-partitioning-with-sgdisk/" class="md-nav__link">
Faster Partitioning with Sgdisk
</a>
</li>
<li class="md-nav__item">
<a href="../lmde3-xfs-full-disk-encryption/" class="md-nav__link">
LMDE3 XFS Full Disk Encryption
</a>
</li>
<li class="md-nav__item">
<a href="../rewrite-hugo-themes-report-in-python/" class="md-nav__link">
Rewrite Hugo Themes Report In Python
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="https://git.boringonian.com/trent/trents_blog" class="md-nav__link">
Source
</a>
</li>
<li class="md-nav__item">
<a href="https://trentpalmer.org" class="md-nav__link">
TrentReads
</a>
</li>
<li class="md-nav__item">
<a href="https://blog.trentpalmer.org" class="md-nav__link">
AttentionSpanHistory
</a>
</li>
<li class="md-nav__item">
<a href="https://github.com/TrentSPalmer" class="md-nav__link">
GitHub
</a>
</li>
<li class="md-nav__item">
<a href="https://twitter.com/boringtrent" class="md-nav__link">
Twitter
</a>
</li>
<li class="md-nav__item">
<a href="https://www.facebook.com/trentspalmer" class="md-nav__link">
Facebook
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.trentsonlinedocs.xyz/" class="md-nav__link">
TrentDocs
</a>
</li>
<li class="md-nav__item">
<a href="https://trentsonlinedocs.xyz/hugo-themes-report/hugo-themes-report.html" class="md-nav__link">
HugoThemesReport
</a>
</li>
<li class="md-nav__item">
<a href="https://play.google.com/store/apps/details?id=org.trentpalmer.libre_gps_parser" class="md-nav__link">
LibreGpsParser
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#introduction" class="md-nav__link">
Introduction
</a>
</li>
<li class="md-nav__item">
<a href="#the-new-laptop" class="md-nav__link">
The New Laptop
</a>
</li>
<li class="md-nav__item">
<a href="#creating-a-rescue-disk" class="md-nav__link">
Creating a Rescue Disk
</a>
</li>
<li class="md-nav__item">
<a href="#transfering-arch-to-usb" class="md-nav__link">
Transfering Arch to USB
</a>
<nav class="md-nav" aria-label="Transfering Arch to USB">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#formatting-the-thumb-drive" class="md-nav__link">
Formatting the Thumb Drive.
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-efi-partition-files-to-thumb-drive" class="md-nav__link">
Copying the efi partition files to Thumb Drive
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-partition-files-to-the-thumb-drive" class="md-nav__link">
Copying the / partition files to the Thumb Drive
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#rescuing-the-thumb-drive-via-chroot" class="md-nav__link">
Rescuing The Thumb Drive via Chroot
</a>
<nav class="md-nav" aria-label="Rescuing The Thumb Drive via Chroot">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#updating-fstab-for-the-thumb-drive" class="md-nav__link">
Updating fstab for the Thumb Drive
</a>
</li>
<li class="md-nav__item">
<a href="#rebuilding-the-initramfs-for-the-thumb-drive" class="md-nav__link">
Rebuilding the Initramfs for the Thumb Drive
</a>
</li>
<li class="md-nav__item">
<a href="#updating-the-systemd-boot-entry-for-the-thumb-drive" class="md-nav__link">
Updating the systemd-boot Entry for the Thumb Drive
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#running-arch-from-usb" class="md-nav__link">
Running Arch from USB
</a>
</li>
<li class="md-nav__item">
<a href="#transfering-arch-to-the-new-ssds" class="md-nav__link">
Transfering Arch to the New ssds
</a>
<nav class="md-nav" aria-label="Transfering Arch to the New ssds">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#formatting-the-new-nvme-ssds" class="md-nav__link">
Formatting The New NVME ssds
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-efi-partition-files-to-nvme-ssd" class="md-nav__link">
Copying the efi partition files to NVME ssd
</a>
</li>
<li class="md-nav__item">
<a href="#copying-the-partition-files-to-the-new-nvme-ssds" class="md-nav__link">
Copying the / partition files to the new NVME ssds
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#rescuing-the-new-laptop-via-chroot" class="md-nav__link">
Rescuing The New Laptop via Chroot
</a>
<nav class="md-nav" aria-label="Rescuing The New Laptop via Chroot">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#updating-fstab-for-the-new-laptop" class="md-nav__link">
Updating fstab for The New Laptop
</a>
</li>
<li class="md-nav__item">
<a href="#updating-mdadmconf-and-mkinitcpioconf" class="md-nav__link">
Updating mdadm.conf and mkinitcpio.conf
</a>
</li>
<li class="md-nav__item">
<a href="#updating-the-systemd-boot-entry-for-the-new-laptop" class="md-nav__link">
Updating the systemd-boot Entry for the New Laptop
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<h1>Forklift Upgrade Arch Linux To A Dell Precision 3561</h1>
<p>date: 2021-10-19</p>
<h2 id="introduction">Introduction</h2>
<p>I fork-lift upgraded my luks-encrypted Arch Linux installation from a Lenovo T460
to a luks-encrypted, software raid1 mirror on a Dell Precision 3561.</p>
<p>It was relatively easy to do.</p>
<h2 id="the-new-laptop">The New Laptop</h2>
<figure>
<img src=../../photos/fifty-screenFetch-2021-10-19_02-11-50.png width="100%" />
<figcaption>the Dell Precision 3561 runs Arch Linux flawlessly, btw</figcaption>
</figure>
<p>I ordered a new Dell Precision 3561 with the minimal ram and ssd configuration,
running Ubuntu 20.04.</p>
<p>The plan was to transfer a luks-encrypted Arch Linux from my Lenovo T460 to a
luks-encrypted thumbdrive. Then run Arch Linux from the thumbdrive on the new Precision 3561 for
a few days while I waited for Amazon to deliver some 1tb Samsung 830 nvme ssds.
And then finally to transfer the Arch installation from the thumbdrive onto an
luks-encrypted software raid1 mirror on the new Precision 3561.</p>
<p>Everything went according to plan, with not a single stumble or mishap; and so
I'm documenting here how it went down. The only thing left to do now is to order
64gb of ram, so I can run Android Studio, and continue working on
<a href="https://play.google.com/store/apps/details?id=org.trentpalmer.trentreads" target="_blank">my Android App</a>
(which needs some work). And of course update Arch Linux 5 times a day.</p>
<p>I use Arch Linux, btw!</p>
<h2 id="creating-a-rescue-disk">Creating a Rescue Disk</h2>
<p>The transfer process I came up with involved two thumb drives: one to serve as
a live disk to work from, and the other to temporarily run Arch on the new laptop.</p>
<p>So why would I not use an Arch install disk as a live disk? Because I cache Arch
packages on my lan using an Nginx reverse-cacheing proxy, which makes it really
fast to simply bootstrap (pacstrap) a new Arch installation onto a thumb drive,
exactly as I would install Arch anywhere else.</p>
<h2 id="transfering-arch-to-usb">Transfering Arch to USB</h2>
<p>I booted my <em>old</em> T460 from my rescue disk and also plugged the other thumb drive into
a usb port.</p>
<h3 id="formatting-the-thumb-drive">Formatting the Thumb Drive.</h3>
<p>I opened the target thumbdrive in <code>gdisk</code> interactive partition tool, created a new
gpt partition table by pressing <code>o</code>. Then created a 1GB <em>efi</em> partition, type ef00,
and a single partition for the remainder of the 256gb thumb.</p>
<ul>
<li>I formatted the <em>efi</em> parition on the thumbdrive:<ul>
<li><code>mkfs.vfat -F32 /dev/sdc1</code></li>
</ul>
</li>
<li>I luks-encrypted the other partition on the thumbdrive:<ul>
<li><code>luksFormat -y -v /dev/sdc2</code></li>
</ul>
</li>
<li>Then I opened the new luks device:<ul>
<li><code>cryptsetup open /dev/sdc2 cryptroot</code></li>
</ul>
</li>
<li>And formatted it:<ul>
<li><code>mkfs.xfs /dev/mapper/cryptroot</code></li>
</ul>
</li>
</ul>
<h3 id="copying-the-efi-partition-files-to-thumb-drive">Copying the <em>efi</em> partition files to Thumb Drive</h3>
<p>More specifically in a typical <code>systemd-boot</code> configuration the <em>efi</em> partition
contains the entire <code>/boot</code> directory.</p>
<ul>
<li>I mounted the T460's <em>efi</em> partition for Arch Linux:<ul>
<li><code>mount /dev/sda5 /mnt2</code></li>
</ul>
</li>
<li>I mounted the thumbdrive's <em>efi</em> partition:<ul>
<li><code>mount /dev/sdc1 /mnt</code></li>
</ul>
</li>
<li>And then copied all the files over:<ul>
<li><code>cp -av /mnt2/* /mnt/</code></li>
</ul>
</li>
<li>I then unmounted the <em>efi</em> partitions:<ul>
<li><code>umount /mnt2 ; umount /mnt</code></li>
</ul>
</li>
</ul>
<h3 id="copying-the-partition-files-to-the-thumb-drive">Copying the <code>/</code> partition files to the Thumb Drive</h3>
<ul>
<li>I decrypted the Arch <code>/</code> device on the T460<ul>
<li><code>cryptsetup open /dev/sda6 cryptroot2</code></li>
</ul>
</li>
<li>And then mounted it:<ul>
<li><code>mount /dev/mapper/cryptroot2 /mnt2</code></li>
</ul>
</li>
<li>...mounted the <code>/</code> device for the thumbdrive:<ul>
<li><code>mount /dev/mapper/cryptroot /mnt</code></li>
</ul>
</li>
<li>And copied the files:<ul>
<li><code>rsync -aAXvPH /mnt2/ /mnt/</code></li>
</ul>
</li>
</ul>
<h2 id="rescuing-the-thumb-drive-via-chroot">Rescuing The Thumb Drive via <em>Chroot</em></h2>
<ul>
<li>I unmounted the T460's <code>/</code> device:<ul>
<li><code>umount /mnt2</code></li>
</ul>
</li>
<li>Mounted the thumbdrive's <em>efi</em> partition relative to <code>/mnt</code><ul>
<li><code>mount /dev/sdc /mnt/boot</code></li>
</ul>
</li>
<li>And entered <em>chroot</em>:<ul>
<li><code>arch-chroot /mnt</code></li>
</ul>
</li>
</ul>
<h3 id="updating-fstab-for-the-thumb-drive">Updating <code>fstab</code> for the Thumb Drive</h3>
<ul>
<li>I located the UUID of the thumbdrive's <em>efi</em> partition:<ul>
<li><code>blkid /dev/sdc1</code></li>
</ul>
</li>
<li>I located the UUID of the luks device:<ul>
<li><code>blkid /dev/mapper/cryptroot</code></li>
</ul>
</li>
<li>And updated <code>/etc/fstab</code> accordingly.</li>
</ul>
<div class="highlight"><pre><span></span><code><span class="c1"># /etc/fstab</span>
<span class="c1"># /dev/mapper/cryptroot</span>
<span class="na">UUID</span><span class="o">=</span><span class="s">391f6062-d8af-4266-a48c-186270d54ef3 / xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 1</span>
<span class="c1"># /dev/sdc1</span>
<span class="na">UUID</span><span class="o">=</span><span class="s">&quot;FACA-0B61&quot; /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2</span>
<span class="na">...</span>
</code></pre></div>
<h3 id="rebuilding-the-initramfs-for-the-thumb-drive">Rebuilding the <em>Initramfs</em> for the Thumb Drive</h3>
<p>Still inside <em>chroot</em> I ran the following command to rebuild the <em>initramfs</em>.
<div class="highlight"><pre><span></span><code>mkinitcpio -P
</code></pre></div></p>
<h3 id="updating-the-systemd-boot-entry-for-the-thumb-drive">Updating the <code>systemd-boot</code> Entry for the Thumb Drive</h3>
<ul>
<li>I located the UUID of <code>/dev/sdc2</code> with the following command:<ul>
<li><code>blkid /dev/sdc2</code></li>
</ul>
</li>
<li>And updated <code>/boot/loader/entries/arch.conf</code> accordingly.</li>
</ul>
<div class="highlight"><pre><span></span><code><span class="c1"># /boot/loader/entries/arch.conf</span>
<span class="na">title arch</span>
<span class="na">linux /vmlinuz-linux</span>
<span class="na">initrd /intel-ucode.img</span>
<span class="na">initrd /initramfs-linux.img</span>
<span class="na">options cryptdevice</span><span class="o">=</span><span class="s">UUID=f8c5062a-849d-4c56-bc98-2c93da85090f:cryptroot root=/dev/mapper/cryptroot rw quiet loglevel=3</span>
</code></pre></div>
<h2 id="running-arch-from-usb">Running Arch from USB</h2>
<p>At this point Arch would boot and run flawlessly on the new Dell Precision 3561.
I went ahead and changed the hostname, machine-id, ssh-keys, and host_ssh_keys to make it official.</p>
<p>While test-driving the new machine, I worked on my
<a href="https://github.com/TrentSPalmer/router-lab" target="_blank">Ansible-KVM Router Lab</a>.
As configured, the mobile workstation gets great battery life under a light work-load
of web browser and ssh terminal work.</p>
<p>Satisfied that the new system was going to work out, I ordered a pair of 1tb
Samsung 830 nvme ssds, and installed them when they arrived.</p>
<h2 id="transfering-arch-to-the-new-ssds">Transfering Arch to the New ssds</h2>
<p>After installing new nvme ssds, I booted the Dell Precision 3561 from my rescue disk,
and also plugged in the thumbdrive on which my Arch system was installed.</p>
<h3 id="formatting-the-new-nvme-ssds">Formatting The New NVME ssds</h3>
<p>I opened each nvme ssd in <code>gdisk</code>, created a new <em>gpt</em> partition table,
an 1GB <em>efi</em> partition (type ef00), and for the remainder of each disk
created a Linux Raid Parition (type fd00).
* I formatted one of the <em>efi</em> partitions:
* <code>mkfs.vfat -F32 /dev/nvme0n1p1</code>
* I created a <em>raid</em> array:
* <code>mdadm --create --verbose --level=1 --metadata=1.2 --raid-devices=2 /dev/md0 /dev/nvme0n1p2 /dev/nvme1n1p2</code>
* I luks-encrypted the new <em>raid</em> array:
* <code>luksFormat -y -v /dev/md0</code>
* I opened the new luks device:
* <code>cryptsetup open /dev/md0 cryptroot</code>
* And then Formatted it:
* <code>mkfs.xfs /dev/mapper/cryptroot</code></p>
<h3 id="copying-the-efi-partition-files-to-nvme-ssd">Copying the <em>efi</em> partition files to NVME ssd</h3>
<ul>
<li>I mounted the thumbdrive's <em>efi</em> partition:<ul>
<li><code>mount /dev/sdb1 /mnt2</code></li>
</ul>
</li>
<li>Then I mounted the laptop's <em>efi</em> partition:<ul>
<li><code>mount /dev/nvme0n1p1 /mnt</code></li>
</ul>
</li>
<li>And copied to files to the new <em>efi</em> partition:<ul>
<li><code>cp -av /mnt2/* /mnt/</code></li>
</ul>
</li>
<li>And then I unmounted both <em>efi</em> partitions:<ul>
<li><code>umount /mnt2 ; umount /mnt</code></li>
</ul>
</li>
</ul>
<h3 id="copying-the-partition-files-to-the-new-nvme-ssds">Copying the <code>/</code> partition files to the new NVME ssds</h3>
<ul>
<li>First I opened the <code>/</code> luks device on the thumbdrive:<ul>
<li><code>cryptsetup open /dev/sdb2 cryptroot2</code></li>
</ul>
</li>
<li>And then mounted it:<ul>
<li><code>mount /dev/mapper/cryptroot2 /mnt2</code></li>
</ul>
</li>
<li>Then I mounted the laptop's <code>/</code> luks device:<ul>
<li><code>mount /dev/mapper/cryptroot /mnt</code></li>
</ul>
</li>
<li>And <code>rsynced</code> the operating system files onto the new laptop:<ul>
<li><code>rsync -aAXvPH /mnt2/ /mnt/</code></li>
</ul>
</li>
</ul>
<h2 id="rescuing-the-new-laptop-via-chroot">Rescuing The New Laptop via <em>Chroot</em></h2>
<ul>
<li>First I unmounted the thumbdrive:<ul>
<li><code>umount /mnt2</code></li>
</ul>
</li>
<li>Then I mounted the <em>efi</em> partition relative to <code>/mnt</code>:<ul>
<li><code>mount /dev/nvme0n1p1 /mnt/boot</code></li>
</ul>
</li>
<li>And entered <em>chroot</em>;<ul>
<li><code>arch-chroot /mnt</code></li>
</ul>
</li>
</ul>
<h3 id="updating-fstab-for-the-new-laptop">Updating <code>fstab</code> for The New Laptop</h3>
<ul>
<li>I used to the following command to discover the UUID of the <code>/</code> device:<ul>
<li><code>blkid /dev/mapper/cryptroot</code></li>
</ul>
</li>
<li>And a similar command to find the UUID of the <em>efi</em> partition:<ul>
<li><code>blkid /dev/nvme0n1p1</code></li>
</ul>
</li>
<li>Then I editted <code>/etc/fstab</code> to describe the above two UUIDs.</li>
</ul>
<div class="highlight"><pre><span></span><code><span class="c1"># /etc/fstab</span>
<span class="c1"># /dev/mapper/cryptroot</span>
<span class="na">UUID</span><span class="o">=</span><span class="s">3486b7d1-ccc9-43dc-b8ab-abcf71aea90f / xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=32,swidth=256,noquota 0 1</span>
<span class="c1"># /dev/nvme0n1p1</span>
<span class="na">UUID</span><span class="o">=</span><span class="s">9FE0-2A98 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2</span>
<span class="na">...</span>
</code></pre></div>
<h3 id="updating-mdadmconf-and-mkinitcpioconf">Updating <code>mdadm.conf</code> and <code>mkinitcpio.conf</code></h3>
<p>When I boot the laptop, the initramfs must assemble the raid array, which requires
the following configuration details.</p>
<p>I appended a description of the raid array to the bottom of <code>/etc/mdadm.conf</code> by
running the following command.
<div class="highlight"><pre><span></span><code>mdadm --detail --scan &gt;&gt; /etc/mdadm.conf
</code></pre></div></p>
<p>Then I editted <code>/etc/mkinitcpio.conf</code> to require the <em>mdadm_udev</em> hook.
<div class="highlight"><pre><span></span><code><span class="c1"># /etc/mkinitcpio.conf</span>
<span class="na">...</span>
<span class="c1"># change this</span>
<span class="na">HOOKS</span><span class="o">=</span><span class="s">(base udev autodetect modconf block encrypt filesystems keyboard fsck)</span>
<span class="c1"># to this</span>
<span class="na">HOOKS</span><span class="o">=</span><span class="s">(base udev autodetect modconf block mdadm_udev encrypt filesystems keyboard fsck)</span>
<span class="na">...</span>
</code></pre></div>
And then finally rebuilt the <em>initramfs</em>:
<div class="highlight"><pre><span></span><code>mkinitcpio -P
</code></pre></div></p>
<h3 id="updating-the-systemd-boot-entry-for-the-new-laptop">Updating the <code>systemd-boot</code> Entry for the New Laptop</h3>
<p>The final step was to update <code>/boot/loader/entries/arch.conf</code>.
As explained above, the initramfs assembles the raid device,
so I just need to tell the kernel about it.</p>
<p>I used the following command to discover the UUID of the <em>raid1</em> device:</p>
<ul>
<li><code>blkid /dev/md0</code></li>
</ul>
<p>And then updated <code>/boot/loader/entries/arch.conf</code> accordingly.
<div class="highlight"><pre><span></span><code><span class="na">title arch</span>
<span class="na">linux /vmlinuz-linux</span>
<span class="na">initrd /intel-ucode.img</span>
<span class="na">initrd /initramfs-linux.img</span>
<span class="na">options cryptdevice</span><span class="o">=</span><span class="s">UUID=48f782a9-6c1b-4242-84f9-66b20ff27845:cryptroot root=/dev/mapper/cryptroot rw quiet loglevel=3</span>
</code></pre></div></p>
<script src="https://giscus.app/client.js"
data-repo="TrentSPalmer/trentsblog_comments"
data-repo-id="R_kgDOGLitLQ"
data-category="Announcements"
data-category-id="DIC_kwDOGLitLc4B_VyZ"
data-mapping="og:title"
data-reactions-enabled="1"
data-emit-metadata="0"
data-theme="light"
crossorigin="anonymous"
async>
</script>
</article>
</div>
</div>
</main>
<footer class="md-footer">
<nav class="md-footer__inner md-grid" aria-label="Footer">
<a href="../../links/" class="md-footer__link md-footer__link--prev" aria-label="Previous: Links" rel="prev">
<div class="md-footer__button md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
</div>
<div class="md-footer__title">
<div class="md-ellipsis">
<span class="md-footer__direction">
Previous
</span>
Links
</div>
</div>
</a>
<a href="../ansible-kvm-router-lab-part-6/" class="md-footer__link md-footer__link--next" aria-label="Next: Ansible KVM Router Lab Part 6" rel="next">
<div class="md-footer__title">
<div class="md-ellipsis">
<span class="md-footer__direction">
Next
</span>
Ansible KVM Router Lab Part 6
</div>
</div>
<div class="md-footer__button md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
</div>
</a>
</nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
Material for MkDocs
</a>
</div>
<div class="md-footer-social">
<a href="https://twitter.com/boringtrent" target="_blank" rel="noopener" title="trent on twitter" class="md-footer-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg>
</a>
<a href="https://www.facebook.com/trentspalmer" target="_blank" rel="noopener" title="trent on facebook" class="md-footer-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"/></svg>
</a>
<a href="https://github.com/TrentSPalmer" target="_blank" rel="noopener" title="trent on github" class="md-footer-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
</a>
<a href="/rss" target="_blank" rel="noopener" title="rss" class="md-footer-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"/></svg>
</a>
</div>
</div>
</div>
</footer>
</div>
<div class="md-dialog" data-md-component="dialog">
<div class="md-dialog__inner md-typeset"></div>
</div>
<script id="__config" type="application/json">{"base": "../..", "features": ["navigation.tabs"], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.409db549.min.js", "version": null}</script>
<script src="../../assets/javascripts/bundle.756773cc.min.js"></script>
</body>
</html>