From 2cd80e37f55817a8a722f6d2bbbc57dbf4fa328f Mon Sep 17 00:00:00 2001 From: Michel Le Cocq Date: Mon, 22 Jun 2020 20:44:36 +0200 Subject: [PATCH] --- ...bernation-Ubuntu-20.04-full-ZFS-install.md | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md b/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md index ee581ff..e937ea8 100644 --- a/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md +++ b/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md @@ -122,13 +122,13 @@ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/swapDevice" update-grub ~~~ -Now ajust /etc/fstab to use your mapper, replace your swap UUID device to : +Now ajust /etc/fstab to use your mapper, replace your encrypt swap device like bellow : ~~~ -/dev/mapper/swapDevice none swap discard 0 0 +/dev/nvme0n1p2 none swap discard 0 0 ~~~ -/etc/crypttab +remove your encrypt swap device define in /etc/crypttab ~~~ swapDevice /dev/nvme0n1p2 none luks @@ -144,6 +144,33 @@ Register these changes. update-initramfs -u -k all ~~~ +## disable encrypt swap partition + +* Turn off swap + +~~~ +swapoff /dev/mapper/cryptswap1 +~~~ + +* remove your encrypt swap device define in your /etc/crypttab + +~~~ +cryptsetup luksClose /dev/mapper/cryptswap1 +~~~ + +Now ajust /etc/fstab to use your mapper, remove your swap UUID device to : + +~~~ +/dev/nvme0n1p2 none swap discard 0 0 +~~~ + +Change your /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT to + +~~~ +GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/nvme0n1p2" +~~~ + + ### to be solve ~~~