Just got this on 24.10:

$ sudo ecryptfs-setup-swap

WARNING:
An encrypted swap is required to help ensure that encrypted files are not 
leaked to disk in an unencrypted format.

HOWEVER, THE SWAP ENCRYPTION CONFIGURATION PRODUCED BY THIS PROGRAM WILL
BREAK HIBERNATE/RESUME ON THIS SYSTEM!

NOTE: Your suspend/resume capabilities will not be affected.

Do you want to proceed with encrypting your swap? [y/N]: y

INFO: Setting up swap: [/dev/nvme0n1p3]
WARNING: Commented out your unencrypted swap from /etc/fstab
This disk is currently in use - repartitioning is probably a bad idea.
It's recommended to umount all file systems, and swapoff all swap
partitions on this disk.

/dev/nvme0n1p3 is already marked as no-auto
Failed to restart cryptsetup.target: Unit cryptsetup.target not found.

After this, I needed to comment the new line and uncomment the old one
to make swap work again.

If I use swapoff, it asks for swapon:

$ sudo ecryptfs-setup-swap
INFO: You do not currently have any swap space defined.

You can create a swap file by doing:
 $ sudo dd if=/dev/zero of=/swapfile count=128076640
 $ sudo mkswap /swapfile
 $ sudo swapon /swapfile

And then re-run /usr/bin/ecryptfs-setup-swap

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886723

Title:
  ecryptfs-setup-swap fails when activating swap

To manage notifications about this bug go to:
https://bugs.launchpad.net/ecryptfs/+bug/1886723/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to