{"id":703,"date":"2023-01-18T20:00:01","date_gmt":"2023-01-18T14:30:01","guid":{"rendered":"https:\/\/www.lguruprasad.in\/blog\/?p=703"},"modified":"2023-01-18T20:00:14","modified_gmt":"2023-01-18T14:30:14","slug":"ubuntu-22-04-desktop-installation-guide-btrfs-luks-full-disk-encryption-including-boot","status":"publish","type":"post","link":"https:\/\/www.lguruprasad.in\/blog\/2023\/01\/18\/ubuntu-22-04-desktop-installation-guide-btrfs-luks-full-disk-encryption-including-boot\/","title":{"rendered":"Ubuntu 22.04 desktop installation guide btrfs-luks full disk encryption including \/boot"},"content":{"rendered":"\n<p>I am a big fan of <a href=\"https:\/\/mutschler.eu\/\" target=\"_blank\" rel=\"noreferrer noopener\">Willi Mutschler<\/a>&#8216;s btrfs-luks full disk encryption installation guides on his site, <a href=\"https:\/\/mutschler.dev\">https:\/\/mutschler.dev<\/a>, and have used them for installing Manjaro and Ubuntu 20.04 and newer versions. Recently, I set up Kubuntu 22.04 full disk encryption by following the same guide and noticed a couple of changes that had to be done to get it working. So I am documenting those here till he writes a new guide for Ubuntu 22.04. \ud83d\ude42<\/p>\n\n\n\n<p>In the <a rel=\"noreferrer noopener\" href=\"https:\/\/mutschler.dev\/linux\/ubuntu-btrfs-20-04\/#step-3-optional-optimize-mount-options-for-ssd-or-nvme-drives\" target=\"_blank\">step 3<\/a> of his excellent guide, the optimized mount options for SSD and NVMe drives are listed. The <code>space_cache<\/code> option mentioned in that section no longer works on Ubuntu 22.04 because the option has been renamed in the newer versions of the Linux kernel. So one has to specify the option as <code>space_cache=v2<\/code>. Otherwise, the Ubiquity installer will crash, and the installation will fail.<\/p>\n\n\n\n<p>Also, in the <a rel=\"noreferrer noopener\" href=\"https:\/\/mutschler.dev\/linux\/ubuntu-btrfs-20-04\/#install-the-efi-bootloader\" target=\"_blank\">Install the EFI bootloader<\/a> section, it is a good idea to use the HWE Linux kernel package names corresponding to <code>22.04<\/code> instead of <code>20.04<\/code> since the packages containing the old LTS version in their name are &#8216;dummy transitional packages&#8217;. So the corresponding command can to be updated to<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install -y --reinstall grub-efi-amd64-signed linux-generic linux-headers-generic linux-generic-hwe-22.04 linux-headers-generic-hwe-22.04<\/code><\/pre>\n\n\n\n<p>At the time of writing this post, the HWE package installs the same kernel version as the one that shipped with Ubuntu 22.04 since there isn&#8217;t a newer kernel released yet &#8211; these are usually backported from newer LTS versions.<\/p>\n\n\n\n<p>With these minor changes, it should be possible to follow the steps in that documentation to set up full disk encryption with btrfs and luks on Ubuntu 22.04.<\/p>\n\n\n\n<p>As a bonus, I have used the same guide for installing Kubuntu 20.04, 21.10 and 22.04, with appropriate substitutions, wherever needed.<\/p>\n\n\n\n<p>I have usually skipped the last section in this guide, <a rel=\"noreferrer noopener\" href=\"https:\/\/mutschler.dev\/linux\/ubuntu-btrfs-20-04\/#step-7-install-timeshift-timeshift-autosnap-apt-and-grub-btrfs\" target=\"_blank\">Install Timeshift, timeshift-autosnap-apt and grub-btrfs<\/a>, in favour of using my tools of choice to do the same &#8211; <a rel=\"noreferrer noopener\" href=\"http:\/\/snapper.io\/\" target=\"_blank\">Snapper<\/a> and <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/ricardomv\/snapper-gui\" target=\"_blank\">snapper-gui<\/a>, both of which are available in the official Ubuntu repositories. I will write a blog post about it in the future. \ud83e\udd1e<div class=\"page-body\"><div class=\"container-fluid docs\"><div class=\"row flex-xl-nowrap\"><main class=\"col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 docs-content\" role=\"main\"><article class=\"article\"><div class=\"docs-article-container\"><div class=\"article-style\"><h2 id=\"step-7-install-timeshift-timeshift-autosnap-apt-and-grub-btrfs\"><h2 id=\"step-7-install-timeshift-timeshift-autosnap-apt-and-grub-btrfs\"><\/h2><\/div><\/div><\/article><\/main><\/div><\/div><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am a big fan of Willi Mutschler&#8216;s btrfs-luks full disk encryption installation guides on his site, https:\/\/mutschler.dev, and have used them for installing Manjaro and Ubuntu 20.04 and newer versions. Recently, I set up Kubuntu 22.04 full disk encryption by following the same guide and noticed a couple of changes that had to be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"","activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[12,14,286,34],"tags":[336,334,338,337,335,259],"class_list":["post-703","post","type-post","status-publish","format-standard","hentry","category-foss","category-gnulinux","category-technology","category-ubuntu","tag-22-04","tag-btrfs","tag-full-disk-encryption","tag-kubuntu","tag-luks","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.lguruprasad.in\/blog\/wp-json\/wp\/v2\/posts\/703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lguruprasad.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lguruprasad.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lguruprasad.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lguruprasad.in\/blog\/wp-json\/wp\/v2\/comments?post=703"}],"version-history":[{"count":2,"href":"https:\/\/www.lguruprasad.in\/blog\/wp-json\/wp\/v2\/posts\/703\/revisions"}],"predecessor-version":[{"id":705,"href":"https:\/\/www.lguruprasad.in\/blog\/wp-json\/wp\/v2\/posts\/703\/revisions\/705"}],"wp:attachment":[{"href":"https:\/\/www.lguruprasad.in\/blog\/wp-json\/wp\/v2\/media?parent=703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lguruprasad.in\/blog\/wp-json\/wp\/v2\/categories?post=703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lguruprasad.in\/blog\/wp-json\/wp\/v2\/tags?post=703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}