From 52a8c10954f626957dd17ec42c29a771b2097b99 Mon Sep 17 00:00:00 2001 From: Michel Le Cocq Date: Tue, 23 Jun 2020 06:59:24 +0200 Subject: [PATCH] --- encrypt-swap-Ubuntu-20.04.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/encrypt-swap-Ubuntu-20.04.md b/encrypt-swap-Ubuntu-20.04.md index 4eb844a..d88c787 100644 --- a/encrypt-swap-Ubuntu-20.04.md +++ b/encrypt-swap-Ubuntu-20.04.md @@ -9,13 +9,13 @@ apt-get install ecryptfs-utils swapoff -a cryptsetup luksFormat --cipher aes-xts-plain64 --verify-passphrase --key-size 256 /dev/nvme0n1p2 cryptsetup open /dev/ swapDevice -mkswap /dev/mapper/mkswap /dev/mapper/swapDevice +mkswap /dev/mapper/mkswap /dev/mapper/cryptswap ~~~ edit : /etc/default/grub ~~~ -GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/swapDevice" +GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUUUUUU" ~~~ ~~~ @@ -25,13 +25,13 @@ update-grub Now ajust /etc/fstab to use your mapper, replace your encrypt swap device like bellow : ~~~ -/dev/nvme0n1p2 none swap discard 0 0 +/dev/mapper/cryptswap none swap discard 0 0 ~~~ -remove your encrypt swap device define in /etc/crypttab +add your encrypt swap device define in /etc/crypttab ~~~ -swapDevice /dev/nvme0n1p2 none luks +cryptswap /dev/nvme0n1p2 none luks ~~~ ~~~