From 1c4bcc2b7deb6671a37fd43a3ea70276c7391f8e Mon Sep 17 00:00:00 2001 From: Michel Le Cocq Date: Wed, 24 Jun 2020 09:41:53 +0200 Subject: [PATCH] --- disable-encrypt-swap-partition.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/disable-encrypt-swap-partition.md b/disable-encrypt-swap-partition.md index ade14cf..8afc068 100644 --- a/disable-encrypt-swap-partition.md +++ b/disable-encrypt-swap-partition.md @@ -10,13 +10,13 @@ * Turn off swap ~~~ -swapoff /dev/mapper/cryptswap +root@laptop:/root# swapoff /dev/mapper/cryptswap ~~~ * Undo the existing mapping. ~~~ -cryptsetup luksClose /dev/mapper/cryptswap +root@laptop:/root# cryptsetup luksClose /dev/mapper/cryptswap ~~~ * remove your encrypt swap device define in your **/etc/crypttab** @@ -30,19 +30,19 @@ cryptsetup luksClose /dev/mapper/cryptswap * make your partition a swap ~~~ -mkswap /dev/nvme0n1p2 +root@laptop:/root# mkswap /dev/nvme0n1p2 ~~~ * activate swap ~~~ -swapon -a +root@laptop:/root# swapon -a ~~~ * remove file */etc/initramfs-tools/conf.d/resume* ~~~ -rm /etc/initramfs-tools/conf.d/resume +root@laptop:/root# rm /etc/initramfs-tools/conf.d/resume ~~~ Register these changes. @@ -65,7 +65,7 @@ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=09c1daa8-a572-41b9-8655-c38 ~~~ ~~~ -update-grub +root@laptop:/root# update-grub ~~~ Next you need to reboot to enable everything and test it.