add part disable it
parent
31af11aafe
commit
1fdc14b6f7
@ -1,4 +1,4 @@
|
|||||||
# encrypt swap Ubuntu 20.04 with hibernation
|
# encrypt swap Ubuntu with hibernation
|
||||||
|
|
||||||
## prerequisite
|
## prerequisite
|
||||||
|
|
||||||
@ -69,6 +69,32 @@ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
|
|||||||
root@laptop:/root# update-grub
|
root@laptop:/root# update-grub
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
### disable encrypted swap
|
||||||
|
|
||||||
|
~~~
|
||||||
|
root@laptop:/root# swapoff -a
|
||||||
|
root@laptop:/root# cryptsetup close cryptswap
|
||||||
|
root@laptop:/root# mkswap /dev/nvme0n1p2
|
||||||
|
root@laptop:/root# printf "RESUME=/dev/nvme0n1p2" | tee /etc/initramfs-tools/conf.d/resume
|
||||||
|
~~~
|
||||||
|
|
||||||
|
* ajust /etc/fstab to
|
||||||
|
|
||||||
|
~~~
|
||||||
|
/dev/nvme0n1p2 none swap discard 0 0
|
||||||
|
#/dev/mapper/cryptswap none swap discard 0 0
|
||||||
|
~~~
|
||||||
|
|
||||||
|
* check
|
||||||
|
|
||||||
|
~~~
|
||||||
|
root@laptop:/root# swapon -a
|
||||||
|
root@laptop:/root# swapon --summary
|
||||||
|
Nom de fichier Type Taille Utilisé Priorité
|
||||||
|
/dev/nvme0n1p2 partition 32653308 0 -2
|
||||||
|
root@laptop:/root#
|
||||||
|
~~~
|
||||||
|
|
||||||
### to be solve
|
### to be solve
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
@ -76,6 +102,7 @@ cryptsetup: ERROR: Couln't resolve device rpool/ROOT/ubuntu_...
|
|||||||
cryptsetup: WARNING: Couln't determine root device
|
cryptsetup: WARNING: Couln't determine root device
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
||||||
## sources
|
## sources
|
||||||
* [wiki.archlinux.org - dm-crypt/Swap encryption](https://wiki.archlinux.org/index.php/Dm-crypt/Swap_encryption#LVM_on_LUKS)
|
* [wiki.archlinux.org - dm-crypt/Swap encryption](https://wiki.archlinux.org/index.php/Dm-crypt/Swap_encryption#LVM_on_LUKS)
|
||||||
* [help.ubuntu.com - Enable Hibernate With Encrypted Swap](https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap)
|
* [help.ubuntu.com - Enable Hibernate With Encrypted Swap](https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap)
|
||||||
|
Loading…
Reference in New Issue
Block a user