[SOLVED] Cryptswap issues after fresh dual boot install

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Bassie

[SOLVED] Cryptswap issues after fresh dual boot install

Post by Bassie »

Hello,

I have a problem with (as it looks like) my (encrypted) swapfile when booting. This is my situation:

- I'm using a Dell XPS 15 9570
- Installed Linux Mint 19 next to Windows 10 (decreased the partition size of the Windows install and choose the option while installing mint: "Install Linux Mint alongside Windows Boot Manager")
- Selected 'encrypt home folder' during installation
- Using Nvidia drivers (nvidia-driver-396)
- In BIOS I disabled safe boot and changed the hdd mode from RAID to AHCI

I had similiar issues after installing Linux Mint (also with Windows after switching to AHCI) so I made a clean install of both Windows and Linux mint (same setup as described above).

So the issue I have is that booting takes a long time. In the syslog I found a lot of these entries like these:

Code: Select all

Aug 13 14:39:03 bassie-XPS-15-9570 systemd-cryptsetup[6165]: crypt_init() failed: Block device required
Aug 13 14:39:03 bassie-XPS-15-9570 systemd[1]: Failed to start Cryptography Setup for cryptswap1.
When trying to recover from a "Suspend" state it will only show a black screen with a (non-blinking) underscore. I have to force shutting down the laptop with the power button on my laptop, because it won't load Linux Mint anymore. In my Linux Mint installation before the new fresh install I had this issue when booting as well.

Do you know how to solve this? Thanks in advance for your help!

Some information about my setup:

Output from blkid:

Code: Select all

/dev/nvme0n1p1: LABEL="ESP" UUID="BA9E-5098" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="876babdc-9cc4-44ea-982e-a7d720178fe6"
/dev/nvme0n1p3: LABEL="OS" UUID="F6A69F4FA69F0F6D" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="c449808b-6b5a-49c5-b089-aaa2cd95a27c"
/dev/nvme0n1p4: LABEL="WINRETOOLS" UUID="32A89F9DA89F5E63" TYPE="ntfs" PARTUUID="b2006a6f-3f0b-463d-b16e-4867d091f1ff"
/dev/nvme0n1p5: LABEL="Image" UUID="80B2A004B2A000B0" TYPE="ntfs" PARTUUID="8af2861d-2fae-4799-9f75-14b445657d5e"
/dev/nvme0n1p6: LABEL="DELLSUPPORT" UUID="5CCCA0C1CCA09734" TYPE="ntfs" PARTUUID="c7fa2595-8485-4854-bebe-194f52dd1209"
/dev/nvme0n1p7: UUID="5678ae8f-d6c8-43f6-aff7-c2f63dec54ab" TYPE="ext4" PARTUUID="a94fa9ff-bc4f-494b-97b6-073ec158d60a"
/dev/nvme0n1: PTUUID="d05ad485-1001-4e74-90fa-4f81c6b4f5a3" PTTYPE="gpt"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="d1e134a9-b54c-4092-8125-691bf5b1a002"
My etc/fstab:

Code: Select all

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p7 during installation
UUID=5678ae8f-d6c8-43f6-aff7-c2f63dec54ab /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=BA9E-5098  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0
My /etc/crypttab

Code: Select all

cryptswap1 /target/swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Result of running the status of cryptsetup:

Code: Select all

sudo cryptsetup status cryptswap1
/dev/mapper/cryptswap1 is inactive.
Contents of /etc/initramfs-tools/conf.d/resume :

Code: Select all

RESUME=UUID=5d3f6c7d-831a-4da3-ac27-f5a2569f159a
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Bassie

Re: Cryptswap issues after fresh dual boot install

Post by Bassie »

Forgot to check the Newbie section. Fixed with this explanation:

viewtopic.php?f=90&t=274157
Locked

Return to “Installation & Boot”