Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • you can increase / decrease it's size much easier than resizing partitions;
  • if you use LUKS for encrypting your root partition, then you either have to encrypt your swap partition to maintain security (swap can contain sensitive information and are that is exploitable) or you can simply use a swapfile on your root partition (which is then encrypted along with everything else on the root partition);
  • If you encrypt your root partition AND your swap partition, then you will need to enter two decrypt passphrases (one for root and one for your swap partition) unless you also mount your LUKS swap partition with a keyfile (in which case you'll need to edit /etc/fstab and /etc/cyrpttab) - for a swapfile you don't have to worry about any of that;

...

To find the UUID for our partition we can run:

Code Block
languagebash
sudo blkid

which will print out the UUID for each of our paritions.  Make note of the UUID for the your root partition. 

...

If you have a LUKS root parition, the easiest way to find the line we're going to be using in our grub config is to run:

Code Block
languagebash
sudo blkid

This will print out our partitions and their UUID.  An example would be:

...