Page:
disable encrypt swap partition
Pages
Firefox plugins
Gimp UHD display
PF and Fail2ban on FreeBSD
Ubuntu 20.04 encrypt ZFS install
Xubuntu UHD display
Zpool wrong device name
disable encrypt swap partition
encrypt swap Ubuntu 20.04
full zfs ecrypt uefi boot trouble
preseed ubuntu zfs
right fit swap for laptop hibernation Ubuntu 20.04 full ZFS install
sleep hibernate
xubuntu XPS 13 7390 2 in 1
zfs trouble live boot solution
13
disable encrypt swap partition
Michel Le Cocq edited this page 2020-06-24 09:41:53 +02:00
Table of Contents
disable encrypt swap partition
prerequisite
- This setup is based on encrypt swap partition
- all command bellow are run has root
disable encrypt swap partition
- Turn off swap
root@laptop:/root# swapoff /dev/mapper/cryptswap
- Undo the existing mapping.
root@laptop:/root# cryptsetup luksClose /dev/mapper/cryptswap
-
remove your encrypt swap device define in your /etc/crypttab
-
ajust /etc/fstab to use your real swap partition
/dev/nvme0n1p2 none swap discard 0 0
- make your partition a swap
root@laptop:/root# mkswap /dev/nvme0n1p2
- activate swap
root@laptop:/root# swapon -a
- remove file /etc/initramfs-tools/conf.d/resume
root@laptop:/root# rm /etc/initramfs-tools/conf.d/resume
Register these changes.
root@laptop:/root# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-5.4.0-37-generic
cryptsetup: ERROR: Couldn't resolve device rpool/ROOT/ubuntu_0ctpm6
cryptsetup: WARNING: Couldn't determine root device
I: The initramfs will attempt to resume from /dev/nvme0n1p2
I: (UUID=09c1daa8-a572-41b9-8655-c38ea7778723)
I: Set the RESUME variable to override this.
root@laptop:/root#
- Change your /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT to point to your real partition
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=09c1daa8-a572-41b9-8655-c38ea7778723"
root@laptop:/root# update-grub
Next you need to reboot to enable everything and test it.