fix forklift-upgrade-arch-linux-precision-3561.md

This commit is contained in:
2021-10-22 00:36:14 -07:00
parent 848f3d73bd
commit 4cf55974ec
7 changed files with 61 additions and 45 deletions

View File

@ -2259,17 +2259,29 @@ 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>
created a Linux Raid Parition (type fd00).</p>
<ul>
<li>I formatted one of the <em>efi</em> partitions:<ul>
<li><code>mkfs.vfat -F32 /dev/nvme0n1p1</code></li>
</ul>
</li>
<li>I created a <em>raid</em> array:
<div class="highlight"><pre><span></span><code>mdadm --create --verbose --level<span class="o">=</span><span class="m">1</span> --metadata<span class="o">=</span><span class="m">1</span>.2 <span class="se">\ </span>
--raid-devices<span class="o">=</span><span class="m">2</span> /dev/md0 /dev/nvme0n1p2 /dev/nvme1n1p2
</code></pre></div></li>
<li>I luks-encrypted the new <em>raid</em> array:<ul>
<li><code>luksFormat -y -v /dev/md0</code></li>
</ul>
</li>
<li>I opened the new luks device:<ul>
<li><code>cryptsetup open /dev/md0 cryptroot</code></li>
</ul>
</li>
<li>And then Formatted it:<ul>
<li><code>mkfs.xfs /dev/mapper/cryptroot</code></li>
</ul>
</li>
</ul>
<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>