<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Cryptsetup on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/cryptsetup/</link>
    <description>Recent content in Cryptsetup on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Sun, 12 Jul 2020 23:07:26 +1000</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/cryptsetup/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Changing LUKS Passphrase</title>
      <link>https://blog.khmersite.net/p/changing-luks-passphrase/</link>
      <pubDate>Sun, 12 Jul 2020 23:07:26 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/changing-luks-passphrase/</guid>
      <description>&lt;p&gt;In my previous blog post, &lt;a href=&#34;https://blog.khmersite.net/2020/06/managing-file-system-encryption-with-luks/&#34;&gt;Managing File System Encryption with LUKS&lt;/a&gt;, I showed how to create an encrypted partition (of disk) using LUKS.&lt;/p&gt;
&lt;p&gt;Today, I&amp;rsquo;d like to show you how we can change the passphrase on this LUKS encrypted partition and keeping this passphrase (key) in the same slot.&lt;/p&gt;
&lt;p&gt;While I&amp;rsquo;m writing this blog post, I cannot remember how to do this, and I&amp;rsquo;m going to try to figure this out without doing the Google search. :)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Managing File System Encryption with LUKS</title>
      <link>https://blog.khmersite.net/p/managing-file-system-encryption-with-luks/</link>
      <pubDate>Sun, 28 Jun 2020 21:31:48 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/managing-file-system-encryption-with-luks/</guid>
      <description>&lt;p&gt;Last year, I already wrote a blog post about the same topic: &lt;a href=&#34;https://blog.khmersite.net/2019/08/configure-encrypted-storage-with-luks&#34;&gt;Configure Encrypted Storage With LUKS&lt;/a&gt;, and I had used &lt;code&gt;fdisk&lt;/code&gt; to create a disk partition. In this post, I&amp;rsquo;ll use &lt;code&gt;parted&lt;/code&gt; to achieve the same thing.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m going to perform this operation on a server called &lt;code&gt;servera&lt;/code&gt; on a disk device &lt;code&gt;/dev/vdb&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;First, let&amp;rsquo;s verify that &lt;code&gt;vdb&lt;/code&gt; is available and has no partition:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[root@servera ~]# parted -l
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Error: /dev/vdb: unrecognised disk label
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Model: Virtio Block Device (virtblk)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Disk /dev/vdb: 1074MB
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Sector size (logical/physical): 512B/512B
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Partition Table: unknown
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Disk Flags: 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Use &lt;code&gt;parted&lt;/code&gt; to create a partition on &lt;code&gt;vdb&lt;/code&gt; using the whole disk.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Gentoo Luks Fails Kernel 5.6</title>
      <link>https://blog.khmersite.net/p/gentoo-luks-fails-kernel-5-6/</link>
      <pubDate>Sat, 11 Apr 2020 01:05:06 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/gentoo-luks-fails-kernel-5-6/</guid>
      <description>&lt;p&gt;My Gentoo based Linux laptop which is still running the older kernel 5.3.15. A short while back, I had a failed attempt to upgrade the kernel to 5.4.2 as the disk which encrypted with &lt;a href=&#34;https://wiki.gentoo.org/wiki/Dm-crypt&#34;&gt;dm-crypt&lt;/a&gt; couldn&amp;rsquo;t be decrypted on boot. Since the older kernel 5.3.15 was working fine and free time was I what I lacked of, it seemed logical to just not doing anything about it.&lt;/p&gt;
&lt;p&gt;Today while updating all the packages on my Gentoo laptop, I notice there was a newer kernel available: 5.6.3. So let&amp;rsquo;s try to install this newest kernel again and see if the issue with Luks/dm-crypt still persists.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Configure Encrypted Storage With LUKS</title>
      <link>https://blog.khmersite.net/p/configure-encrypted-storage-with-luks/</link>
      <pubDate>Thu, 29 Aug 2019 22:30:12 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/configure-encrypted-storage-with-luks/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m currently preparing for the &lt;a href=&#34;https://www.redhat.com/en/services/training/ex415-red-hat-certified-specialist-security-linux-exam&#34;&gt;Red Hat Certified Specialist in Security: Linux exam (EX415)&lt;/a&gt;. One of the exam objectives is about storage encryption using LUKS.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s my note learning about LUKS. It&amp;rsquo;s not meant to be a guide which you should copy and paste and run it on your production system.&lt;/p&gt;
&lt;p&gt;Suppose I have a new disk (&lt;strong&gt;/dev/vdb&lt;/strong&gt;) attached to my server and I&amp;rsquo;d like to use it as an encrypted storage using LUKS. Here is how I&amp;rsquo;d do it.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
