Questions tagged [cryptswap]
29 questions
28
votes
5 answers
Swap not working on clean 14.04 install using encrypted home
Update 3:
I decided to reinstall the system from scratch to remove any old cruft lying around since I had been experiencing some other issues after the upgrade aswell. Howver, this issue persisted.
On a clean install, choosing to install using…
ajn
- 505
13
votes
2 answers
Increase size of encrypted swap
Ubuntu 18.04 is by default creating a random encrypted swap during each boot using dm-crypt/Swap encryption. For me, this is creating a 1gb swap but I cannot find where to increase the size of the swap it creates on each boot. How can we increase…
xendi
- 357
12
votes
1 answer
Warnings about cryptsetup on new Ubuntu 17.10 installation?
I have just downloaded and installed a fresh Ubuntu 17.10 server system.
Upon running sudo apt update and sudo apt upgrade I happened to notice these two warnings:
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and…
RocketNuts
- 357
12
votes
3 answers
swapon: stat of /dev/mapper/cryptswap1 failed: No such file or directory
I have an issue with creating encrypted swap.
I follow these steps
sudo swapoff -a
Comment existing swap configuration in /etc/crypttab
Comment existing swap configuration in /etc/fstab
Re-format swap partition with gparted as linux-swap
sudo…
X XXX X
- 123
4
votes
0 answers
Swap partition not active
My swap partition is neither mounted nor active.
My system does find/recognise the swap partition but that is it
My fstab entries:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
#…
user634299
- 41
3
votes
2 answers
Why enter passphrase for cryptswap?
After some moving of partitions, my Ubuntu Mate still boots, but strangely it asks for a passphrase for the cryptswap1 volume. I don’t enter anything and hit enter and it works. As I understand it, the swap partition only needs a random passphrase…
user69748
- 2,453
3
votes
2 answers
Swap not available after upgrade to 24.10
I had fresh install of Ubuntu 24.04 with ZFS and a 8GB swap partition automatically made by the Ubuntu installer, as /dev/nvme0n1p3.
I upgraded to 24.10 and the swap is not available after reboot.
It seems swapon cannot find the encrypted…
Victor
- 9,244
3
votes
0 answers
How to set up hibernation with Secure Boot enabled
Working on a new Ubuntu install. On my ASUS laptop, Secure Boot is enabled (and likely may need to stay that way due to the pestilence of Windows 11). Reading from journalctl -b has some mention of kernel lockdown mode, and further along,…
H2-san
- 113
3
votes
2 answers
Can't apt-get install ot remove any package. initramfs-tool failed
When I try install something, it seems my cryptswap got a problem.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package meofetch
t@pop-os:~$ sudo apt-get remove neofetch
Reading…
2
votes
1 answer
Increasing the size of swap partition/volume does not increase the size of swap
I am trying to increase the size of swap to get hibernation to working. I have followed the answer from another question but only achieved a partial success.
The volume is larger
# lsblk
...
nvme0n1 259:0 0 953.9G 0 disk …
Damn Terminal
- 2,776
1
vote
2 answers
Freezing ubuntu 17.04 empty crypttab
I am experiencing random freezes in Ubuntu.
I went through several fixes proposed (checking nvidia drivers, etc..) but no solution. I bumped into Ubuntu 17.04 Freezing Issue and tried to change the crypttab.
I followed the instruction but upon…
Neco
- 13
1
vote
1 answer
Ubuntu 16.04 System crash when out of RAM
After upgrading to Ubuntu 16.04 from 15.10. I experienced crashes (system not responding, requiring a power off) every time I was running out of physical memory (using up all the RAM).
Marc Belmont
- 266
1
vote
0 answers
16.04 Swap partition wants password on startup after Gparted resize
Ubuntu new user here. Booted off the 16.04 USB stick last night and used GParted to resize the primary Ubuntu partition - made it larger using some unallocated space.
Now I'm getting a prompt on startup asking for a passphrase. Same type of prompt…
Smathers
- 11
1
vote
1 answer
Problem with cryptsetup; Ubuntu doesn’t boot as usual
Until now, my computer was booting correctly. But after restarting it in the afternoon, something happened:
First, I get a message at booting, just before entering the cryptestup password: cryptsetup: warning cryptswap1: couldn't determine device…
guillaume8375
- 422
1
vote
0 answers
Cryptsetup waiting for encrytped source device /swapfile
I tried to comment on this post but I don't have enough reputation. I'm having the same issue as that user, except that I can't find my /etc/crypttab directory and I can't find my /etc/fstab directory either.
Some additional info:
I have several…
Alex Eastman
- 141