parent
ee1fc98b69
commit
2cd80e37f5
@ -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
|
||||
|
||||
~~~
|
||||
|
Loading…
Reference in New Issue
Block a user