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.