<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Encrypt Full Disk While Installing Ubuntu 22.04	</title>
	<atom:link href="https://www.tecmint.com/encrypt-disk-installing-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/encrypt-disk-installing-ubuntu/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Fri, 21 Jun 2024 22:11:36 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Anon		</title>
		<link>https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2182856</link>

		<dc:creator><![CDATA[Anon]]></dc:creator>
		<pubDate>Fri, 21 Jun 2024 22:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=2924#comment-2182856</guid>

					<description><![CDATA[Ravi, great directions! However, you forgot to include:
&lt;pre&gt;
update-grub
grub-install
&lt;/pre&gt;
along with the `&lt;strong&gt;update-initramfs&lt;/strong&gt;` command at the end of your instructions.]]></description>
			<content:encoded><![CDATA[<p>Ravi, great directions! However, you forgot to include:</p>
<pre>
update-grub
grub-install
</pre>
<p>along with the `<strong>update-initramfs</strong>` command at the end of your instructions.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2181243</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 17 Jun 2024 09:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=2924#comment-2181243</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2181240&quot;&gt;Christian Stoltz&lt;/a&gt;.

@Christian,

Hi! Thank you for following the article. 

To update from &lt;strong&gt;Ubuntu 22.04&lt;/strong&gt; to &lt;strong&gt;Ubuntu 24.04&lt;/strong&gt; while maintaining your exact encryption setup with both the boot partition LUKS1-encrypted and the root partition LUKS2-encrypted, you will need to follow a manual process since the default installer doesn&#039;t provide this specific configuration. 

&lt;strong&gt;Warning&lt;/strong&gt;: Before proceeding, ensure that you have backed up all important data. The following steps involve manual partitioning and encryption which can result in data loss if not done correctly. Proceed with caution and make sure you are comfortable with using terminal commands and managing disk partitions.

Here’s a step-by-step guide:

&lt;strong&gt;1.&lt;/strong&gt; Download the Ubuntu 24.04 LTS ISO from the official website and Create a bootable USB drive using tools like Rufus or balenaEtcher.

&lt;strong&gt;2.&lt;/strong&gt; Insert the Live USB into your Acer Swift Go 14 and boot from it.

&lt;strong&gt;3.&lt;/strong&gt; Choose “&lt;strong&gt;Try Ubuntu&lt;/strong&gt;” to enter the live session.

&lt;strong&gt;4.&lt;/strong&gt; Set up LUKS encryption for the boot partition:
&lt;pre&gt;
sudo cryptsetup luksFormat --type luks1 /dev/nvme0n1p1
sudo cryptsetup open /dev/nvme0n1p1 cryptboot
mkfs.ext4 /dev/mapper/cryptboot
&lt;/pre&gt;
&lt;strong&gt;5.&lt;/strong&gt; Set up LUKS encryption for the root partition:
&lt;pre&gt;
sudo cryptsetup luksFormat /dev/nvme0n1p2
sudo cryptsetup open /dev/nvme0n1p2 cryptroot
mkfs.ext4 /dev/mapper/cryptroot
&lt;/pre&gt;
&lt;strong&gt;6.&lt;/strong&gt; Mount the partitions.
&lt;pre&gt;
sudo mount /dev/mapper/cryptroot /mnt
sudo mkdir /mnt/boot
sudo mount /dev/mapper/cryptboot /mnt/boot
&lt;/pre&gt;
&lt;strong&gt;7.&lt;/strong&gt; Start the Ubuntu installer from the live session. When asked about the installation type, choose “&lt;strong&gt;Something else&lt;/strong&gt;” to perform manual partitioning.
&lt;ul&gt;
&lt;li&gt;Select the &lt;strong&gt;/dev/mapper/cryptroot&lt;/strong&gt; partition and set it as the root &lt;strong&gt;(/)&lt;/strong&gt; partition.&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;/dev/mapper/cryptboot&lt;/strong&gt; partition and set it as the &lt;strong&gt;boot&lt;/strong&gt; partition.&lt;/li&gt;
&lt;/ul&gt;
&lt;strong&gt;8.&lt;/strong&gt; Follow the remaining steps of the installer to complete the installation. 

&lt;strong&gt;9.&lt;/strong&gt; After the installation is complete, do not reboot yet. Instead, chroot into the new system:
&lt;pre&gt;
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
&lt;/pre&gt;
&lt;strong&gt;10.&lt;/strong&gt; Configure the initramfs to unlock both partitions at boot by editing &lt;strong&gt;/etc/crypttab&lt;/strong&gt; file:
&lt;pre&gt;
nano /etc/crypttab
&lt;/pre&gt;
Add the following lines:
&lt;pre&gt;
cryptboot UUID=&lt;UUID of /dev/nvme0n1p1&gt; none luks
cryptroot UUID=&lt;UUID of /dev/nvme0n1p2&gt; none luks
&lt;/pre&gt;
You can get the UUIDs by running:
&lt;pre&gt;
blkid
&lt;/pre&gt;
&lt;strong&gt;11.&lt;/strong&gt; Update the initramfs and GRUB configuration:
&lt;pre&gt;
update-initramfs -u
update-grub
&lt;/pre&gt;
&lt;strong&gt;12.&lt;/strong&gt; Exit chroot and reboot:
&lt;pre&gt;
exit
sudo reboot
&lt;/pre&gt;
By following these steps, you should be able to upgrade to &lt;strong&gt;Ubuntu 24.04&lt;/strong&gt; while keeping your &lt;strong&gt;boot&lt;/strong&gt; and &lt;strong&gt;root&lt;/strong&gt; partitions encrypted with &lt;strong&gt;LUKS1&lt;/strong&gt; and &lt;strong&gt;LUKS2&lt;/strong&gt;, respectively. If you encounter any issues or have further questions, feel free to ask!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2181240">Christian Stoltz</a>.</p>
<p>@Christian,</p>
<p>Hi! Thank you for following the article. </p>
<p>To update from <strong>Ubuntu 22.04</strong> to <strong>Ubuntu 24.04</strong> while maintaining your exact encryption setup with both the boot partition LUKS1-encrypted and the root partition LUKS2-encrypted, you will need to follow a manual process since the default installer doesn&#8217;t provide this specific configuration. </p>
<p><strong>Warning</strong>: Before proceeding, ensure that you have backed up all important data. The following steps involve manual partitioning and encryption which can result in data loss if not done correctly. Proceed with caution and make sure you are comfortable with using terminal commands and managing disk partitions.</p>
<p>Here’s a step-by-step guide:</p>
<p><strong>1.</strong> Download the Ubuntu 24.04 LTS ISO from the official website and Create a bootable USB drive using tools like Rufus or balenaEtcher.</p>
<p><strong>2.</strong> Insert the Live USB into your Acer Swift Go 14 and boot from it.</p>
<p><strong>3.</strong> Choose “<strong>Try Ubuntu</strong>” to enter the live session.</p>
<p><strong>4.</strong> Set up LUKS encryption for the boot partition:</p>
<pre>
sudo cryptsetup luksFormat --type luks1 /dev/nvme0n1p1
sudo cryptsetup open /dev/nvme0n1p1 cryptboot
mkfs.ext4 /dev/mapper/cryptboot
</pre>
<p><strong>5.</strong> Set up LUKS encryption for the root partition:</p>
<pre>
sudo cryptsetup luksFormat /dev/nvme0n1p2
sudo cryptsetup open /dev/nvme0n1p2 cryptroot
mkfs.ext4 /dev/mapper/cryptroot
</pre>
<p><strong>6.</strong> Mount the partitions.</p>
<pre>
sudo mount /dev/mapper/cryptroot /mnt
sudo mkdir /mnt/boot
sudo mount /dev/mapper/cryptboot /mnt/boot
</pre>
<p><strong>7.</strong> Start the Ubuntu installer from the live session. When asked about the installation type, choose “<strong>Something else</strong>” to perform manual partitioning.</p>
<ul>
<li>Select the <strong>/dev/mapper/cryptroot</strong> partition and set it as the root <strong>(/)</strong> partition.</li>
<li>Select the <strong>/dev/mapper/cryptboot</strong> partition and set it as the <strong>boot</strong> partition.</li>
</ul>
<p><strong>8.</strong> Follow the remaining steps of the installer to complete the installation. </p>
<p><strong>9.</strong> After the installation is complete, do not reboot yet. Instead, chroot into the new system:</p>
<pre>
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
</pre>
<p><strong>10.</strong> Configure the initramfs to unlock both partitions at boot by editing <strong>/etc/crypttab</strong> file:</p>
<pre>
nano /etc/crypttab
</pre>
<p>Add the following lines:</p>
<pre>
cryptboot UUID=<uuid of /dev/nvme0n1p1> none luks
cryptroot UUID=</uuid><uuid of /dev/nvme0n1p2> none luks
</uuid></pre>
<p>You can get the UUIDs by running:</p>
<pre>
blkid
</pre>
<p><strong>11.</strong> Update the initramfs and GRUB configuration:</p>
<pre>
update-initramfs -u
update-grub
</pre>
<p><strong>12.</strong> Exit chroot and reboot:</p>
<pre>
exit
sudo reboot
</pre>
<p>By following these steps, you should be able to upgrade to <strong>Ubuntu 24.04</strong> while keeping your <strong>boot</strong> and <strong>root</strong> partitions encrypted with <strong>LUKS1</strong> and <strong>LUKS2</strong>, respectively. If you encounter any issues or have further questions, feel free to ask!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Christian Stoltz		</title>
		<link>https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2181240</link>

		<dc:creator><![CDATA[Christian Stoltz]]></dc:creator>
		<pubDate>Mon, 17 Jun 2024 09:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=2924#comment-2181240</guid>

					<description><![CDATA[Hi! 

On my &lt;strong&gt;Acer Swift Go 14&lt;/strong&gt;, I now have only &lt;strong&gt;Ubuntu 22.04 LTS&lt;/strong&gt; with the boot partition LUKS1-encrypted and the root partition LUKS2-encrypted. 

I just followed your article &quot;&lt;strong&gt;How to Encrypt Full Disk While Installing Ubuntu 22.04&lt;/strong&gt;&quot;! I have an &lt;strong&gt;NVMe SSD&lt;/strong&gt; on my laptop. So, if I now wish to update from &lt;strong&gt;Ubuntu 22.04&lt;/strong&gt; to &lt;strong&gt;Ubuntu 24.04&lt;/strong&gt; and still keep this exact encryption setup with encrypted boot and root, how would I achieve it? 

Tell me if you know a way, or can you find out what in this article needs to be changed to make it work for manually encrypting Ubuntu 24.04 during installation?]]></description>
			<content:encoded><![CDATA[<p>Hi! </p>
<p>On my <strong>Acer Swift Go 14</strong>, I now have only <strong>Ubuntu 22.04 LTS</strong> with the boot partition LUKS1-encrypted and the root partition LUKS2-encrypted. </p>
<p>I just followed your article &#8220;<strong>How to Encrypt Full Disk While Installing Ubuntu 22.04</strong>&#8220;! I have an <strong>NVMe SSD</strong> on my laptop. So, if I now wish to update from <strong>Ubuntu 22.04</strong> to <strong>Ubuntu 24.04</strong> and still keep this exact encryption setup with encrypted boot and root, how would I achieve it? </p>
<p>Tell me if you know a way, or can you find out what in this article needs to be changed to make it work for manually encrypting Ubuntu 24.04 during installation?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2181194</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 17 Jun 2024 06:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=2924#comment-2181194</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2180835&quot;&gt;Christian Stoltz&lt;/a&gt;.

@Christian,

Here is the article that demonstrates how to encrypt the full disk during Ubuntu 24.04 installation: [&lt;a href=&quot;https://www.tecmint.com/encrypt-ubuntu-24-04-installation/&quot; title=&quot;Encrypt Full Disk During Ubuntu 24.04 Install&quot; target=&quot;_blank&quot; rel=&quot;noopener ugc&quot;&gt;Encrypt Ubuntu 24.04 Installation&lt;/a&gt;]]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2180835">Christian Stoltz</a>.</p>
<p>@Christian,</p>
<p>Here is the article that demonstrates how to encrypt the full disk during Ubuntu 24.04 installation: [<a target="_blank" href="https://www.tecmint.com/encrypt-ubuntu-24-04-installation/" title="Encrypt Full Disk During Ubuntu 24.04 Install" target="_blank" rel="noopener ugc">Encrypt Ubuntu 24.04 Installation</a>]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Christian Stoltz		</title>
		<link>https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2180835</link>

		<dc:creator><![CDATA[Christian Stoltz]]></dc:creator>
		<pubDate>Sun, 16 Jun 2024 00:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=2924#comment-2180835</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2177617&quot;&gt;Ravi Saive&lt;/a&gt;.

Thanks a lot. When do you think you will have it ready?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/encrypt-disk-installing-ubuntu/comment-page-1/#comment-2177617">Ravi Saive</a>.</p>
<p>Thanks a lot. When do you think you will have it ready?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
