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 ~~~