Revision of Full Disk Encryption Install from Mon, 06/15/2026 - 06:27

The revisions let you track differences between multiple versions of a post.

This manual describes the steps to install Trisquel GNU/Linux onto an encrypted LVM. The goal is to enhance user security and protect your data from prying eyes. In June, 2026, a new choice is added to this guide: encrypting the boot partition too. This manual is verified for Trisquel 11 Aramo and Trisquel 12 Ecne. In order to understand what this procedure does, as well as what the choice for encrypting the boot partition is, a few basics need to be explained beforehand in the simplest way.

What is the GNU/Linux start-up process?

This is an oversimplified description of the start-up process, following the software that gets executed when the computer is switched on:

  1. First, the firmware stored in the motherboard flash chip (BIOS or UEFI) gets executed. This firmware includes a bootloader. The bootloader identifies the storage units, reads their Master Boot Record (MBR), identifies their partitions, and loads the kernel image from the boot partition.
  2. Second, the kernel gets executed. The kernel performs the graphic initialization, mounts the rest of partitions into the filesystem, and loads the rest of the operating system.

Does Full Disk Encryption really mean to encrypt the full disk?

Almost, but no. The MBR is never encrypted. Also, the boot partition could be encrypted or not. So, we have two choices for Full Disk Encryption: with or without encrypting the boot partition. One is fuller than the other, but neither is fullest.

How come Full Disk Encryption means two different things, and how can the the choice with less encryption ever be called full?

This inaccurate naming happens because of historical reasons:

  • At first, there is no Full Disk Encryption.
  • Then, the kernel gains the ability to manage encrypted partitions, once the MBR is read and the kernel is loaded from the boot partition. This allows for a first form of Full Disk Encryption where everything in the disk is encrypted except for the MBR and the boot partition.
  • Then, the bootloaders present in some BIOS and UEFIs gain the ability to manage encrypted partitions, once the MBR is read. This allows for a second form of Full Disk Encryption where everything in the disk is encrypted except for the MBR.
  • In the future, bootloaders might get the ability to manage encrypted MBRs, so we could get a choice to encrypt MBR and have Real Full Disk Encryption for once and for all.

What is like to use a computer with Full Disk Encryption?

A computer with Full Disk Encryption work all the same as the rest. The only differences happen at start-up:

  • Executing the firmware: if the bootloader in the firmware can manage encrypted partitions, and you choose to have an encrypted boot partition, the bootloader will notice that the boot partition is encrypted and ask you for the passphrase. This happens typically before graphical initialization, when the screen is still in text mode.
  • Executing the kernel: the kernel will notice that the rest of the partitions are encrypted and ask you for the passphrase. This happens typically after graphical initialization, when the screen is already in graphical mode. Sadly, if you already introduced the passphrase to decrypt the boot partition, you still need to introduce it a second time for the rest of partitions. At present this happens because the kernel does not receive the passphrase from the bootloader, and in the future this will likely still happen, because the bootloader passing on the password to a kernel would mean a security risk.

New Instructions

  • Boot into the liveCD environment and from the installation menu select Install Trisquel in text mode
https://trisquel.info/files/Encrypted_Install_01_0.png

Initial common block

This is an initial common block for both Full Disk Encryption choices. There are small changes between Trisquel versions. The order might vary.

  • Select a language.
https://trisquel.info/files/Encrypted_Install_02.png
  • Select your location.
https://trisquel.info/files/Encrypted_Install_03.png
  • Decide if you want the installer to detect your keyboard.
https://trisquel.info/files/Encrypted_Install_04.png
  • Choose the country of origin for your keyboard.
https://trisquel.info/files/Encrypted_Install_05.png
  • Select your keyboard layout.
https://trisquel.info/files/Encrypted_Install_06.png
  • Choose a hostname for your system.
https://trisquel.info/files/Encrypted_Install_07.png
  • Choose a country for your preferred mirror.
https://trisquel.info/files/Encrypted_Install_08.png
  • Select a Trisquel mirror.
https://trisquel.info/files/Encrypted_Install_09.png
  • If you require a proxy to access the Internet enter the information here.
https://trisquel.info/files/Encrypted_Install_10.png
  • Make sure the timezone the installer detected is correct.
https://trisquel.info/files/Encrypted_Install_11.png

Partitioning the disks

This is where you choose what kind of Full Disk Encryption you do want: with the boot partition unencrypted or encrypted. Choose encrypted only if the bootloader in your firmware (BIOS or UEFI) can manage encrypted partitions so it can boot from one.

Choice A: Full Disk Encryption with boot partition unencrypted

  • Choose the Guided - use entire disk and set up encrypted LVM option.
https://trisquel.info/files/Encrypted_Install_12.png
  • Select the disk to install Trisquel on.
https://trisquel.info/files/Encrypted_Install_13.png
  • Confirm that you are willing to write the changes to disk and configure the LVM.
https://trisquel.info/files/Encrypted_Install_14.png
  • Enter an encryption passphrase.
https://trisquel.info/files/Encrypted_Install_15.png
  • Resubmit the passphrase to verify it.
https://trisquel.info/files/Encrypted_Install_16.png
  • Choose the amount of the volume group to use for guided partitioning.
https://trisquel.info/files/Encrypted_Install_17.png
  • Confirm that you want to write changes to the disk.
https://trisquel.info/files/Encrypted_Install_18.png

Choice B: Full Disk Encryption with boot partition encrypted

  1. Choose the Manual option.
  2. You will be shown the Disk Partitioning menu. This menu shows choices (Guided partitioning, Configure volumes, Undo modifications and Done setting up) and also a list of drives identified by their size and manufacturer name. Select the drive for Full Disk Encryption and press Enter.
  3. You will be asked to confirm your choice to create a new partition table for the selected drive. Select Yes and press Enter.
  4. You will be shown the Disk Partitioning menu again, with three new configuring choices, and also a new line saying 'FREE SPACE' below the drive. Select this line and press Enter.
  5. You will be shown a menu with choices for the drive. Select 'Create a new partition' and press Enter.
  6. You will be asked the size of the partition, with the default set as all the available space. Leave as it is. Select Continue and press Enter.
  7. You will be asked the type for the partition. Select Primary and press Enter.
  8. You will be shown the information for the partition. Select the 'Use as' line and press Enter.
  9. You will be asked how to use this partition. Select 'physical volume for encryption' and press Enter.
  10. The following information will be shown:
  11. Use as: physical volume for encryption
    Encryption method: Device-mapper (dm-crypt)
    Encryption: aes
    key size: 256
    IV algorithm: xts-plain64
    Encryption key: passphrase
    Erase data: Yes
  12. If the drive happened to store unencrypted data, leave 'Erase data' as Yes. Otherwise, select Yes and and change it to No.
  13. Use the arrow keys to select the last line, 'Done setting up the partition', and press Enter.
  14. You will be shown the Disk Partitioning menu again. Select the line 'Configure encrypted volumes' and press Enter.
  15. You will be asked to confirm whether to write the changes to disk and configure the encrypted volumes. Select Yes and press Enter.
  16. You will be shown a menu. Select 'Create encrypted volumes' and press Enter.
  17. You will be shown a list of the storage devices with their sizes and will be asked which device is to be encrypted. Should your computer have a single drive, there would be a single line, likely named '/dev/sda1'. Be sure to select the right line then press Spacebar so an asterisk appears between the brackets. Then select Continue and press Enter.
  18. You will be shown a menu. Select 'Finish' and press Enter.
  19. If you chose to erase data, you will be asked for confirmation now. Select Yes and press Enter. The erasing will take a while.
  20. You will be asked for the passphrase for encrypting the entire disk twice. The passphrase needs to be different from the user password. Introduce the passphrase then select Continue and press Enter.
  21. You will be shown the Disk Partitioning menu again, with a new line for the Encrypted Volume, and another line below for the partition #1. Select this below line and press Enter.
  22. You will be shown a menu. Select the line 'Use as' and press Enter to change its value to 'physical volume for LVM'. Then select 'Done setting up the partition'.
  23. You will be shown the Disk Partitioning menu again. Select 'Configure the Logical Volume Manager' and press Enter.
  24. You will be asked whether to 'Keep current partition layout and configure LVM'. Select Yes and press Enter.
  25. You will be shown the LVM menu, showing the number of free physical volumnes, used physical volumes, volume groups and logical volumes. Select 'Create volume group' and press Enter.
  26. You will be asked for the name for the volume group. Introduce 'matrix', then select Continue and press Enter.
  27. You will be asked to choose the devices for the new volume group. You should have a single one. Select the line then press Spacebar so an asterisk appears between the brackets. Then select Continue and press Enter.
  28. You will be back at the LVM menu. Select the line 'Create logical volume' and press Enter.
  29. You will be asked which volume group will be used. You should have a single one, the one you just created. Select it and press Enter.
  30. You will be asked the name for the logical volume. Introduce 'rootvol' and press Enter.
  31. You will be asked the size for the logical volume, by default all of the available space. Should you want to use a swap partition, subtract 2048 Megabytes to the size of the quantity you see fit. Select Continue and press Enter. You will be back at the LVM menu.
  32. Should you want to use a swap partition, select 'Create logical volume' and press Enter, then select the volume group and press Enter, introduce the name 'swap' and press Enter, introduce the size (2048 Megabytes to the size of the quantity you see fit) and press Enter.
  33. At the LVM menu, select 'Finish' and press Enter.
  34. You will be shown the Disk Partitioning menu again. Select the partition from Logical Volume rootvol and press Enter.
  35. You will be shown the partition menu. Select Ext4 filesystem and press Enter.
  36. You will be shown the partition information. Select the mountpoint and press Enter.
  37. You will be shown the mountpoint choices. Select / and press Enter.
  38. You will be shown the partition information again. Select 'Done setting up partition' and press Enter.
  39. You will be shown the Disk Partitioning menu again. Should you have a Logical Volume swap, select it and press Enter. You will be shown the partition menu. Select 'swap area' and press Enter, then select 'Done setting up partition' and press Enter.
  40. You will be shown the Disk Partitioning menu again. Select 'Finish partitioning and write changes to disk'
  41. Should you have not a swap partition, you will be asked to confirm that you do not wish to return to the Disk Partitioning menu. Select No and press Enter.
  42. You will be asked to confirm to write the modifications to the disks. Select Yes and press Enter.

Final Common block

This is a final common block for both Full Disk Encryption choices. There are small changes between Trisquel versions. The order might vary.

  • Select a kernel to install.
https://trisquel.info/files/Encrypted_Install_19.png
  • Enter the full name for the use account that will be created.
https://trisquel.info/files/Encrypted_Install_20.png
  • Choose a username for the user account.
https://trisquel.info/files/Encrypted_Install_21.png
  • Choose a password for the user.
https://trisquel.info/files/Encrypted_Install_22.png
  • Re-enter the password to verify it.
https://trisquel.info/files/Encrypted_Install_23.png
  • Choose if you want to also encrypt your home directory. This can be useful for a computer with multiple users even if the LVM itself is encrypted.
https://trisquel.info/files/Encrypted_Install_24.png
  • Decide how you want to manage upgrades on your system.
https://trisquel.info/files/Encrypted_Install_25.png
  • Choose the software sets you want to install. For this tutorial we will be installing the default Trisquel desktop environment.
https://trisquel.info/files/Encrypted_Install_26.png
  • Select continue to continue software configuration.
https://trisquel.info/files/Encrypted_Install_27.png
  • Configure postfix (if you wish to have an email server).
https://trisquel.info/files/Encrypted_Install_28.png
  • Decide if you want to install the GRUB boot loader to the master boot record.
https://trisquel.info/files/Encrypted_Install_29.png
  • Select if your system clock is set to UTC.
https://trisquel.info/files/Encrypted_Install_30.png
  • Remove the boot media (e.g. Trisquel CD) and press continue to reboot.
https://trisquel.info/files/Encrypted_Install_31.png
  • Enter your encryption passphrase to decrypt the LVM.
https://trisquel.info/files/Encrypted_Install_32.png
  • Login with your user credentials to enter your Trisquel GNU/Linux system.
https://trisquel.info/files/Encrypted_Install_33_0.png

Additional Information

  • The steps outlines for this example system may differ based on your needs. For example if you live in Spain you should not select that you live in the United States.
  • For instructions on how to accomplish this via terminal see the corresponding manual.

Revisions

11/10/2009 - 19:09
Trisquel
02/16/2010 - 06:38
AndrewT
10/18/2011 - 17:49
anonymous
02/03/2012 - 12:51
SirGrant
08/13/2013 - 18:57
lloydsmart
09/03/2014 - 04:37
muhammed
01/05/2016 - 14:14
lembas
01/14/2017 - 11:30
umdhlebe
10/07/2022 - 11:10
Staircase
09/20/2024 - 21:26
knife
02/17/2025 - 05:20
icarolongo
06/15/2026 - 04:26
Ignacio.Agullo