TROMjaro Forum

Fix: Device does not exist or access denied

Not only that but also this ugly thing too: ERROR: resume: hibernation device '/dev/mapper/luks-XXXXXXXX-XXXX-XXXX-XXXX-XXXX

This seems to happen when BTRFS is used in combo with encryption and a swap with hibernate.

Make sure that the file /etc/openswap.conf contains this (open as root to edit - right click it):

## cryptsetup open $swap_device $crypt_swap_name
# cryptsetup open $swap_device $crypt_swap_name
## get uuid using e.g. lsblk -f
swap_device=/dev/disk/by-uuid/49c1c4bd-924a-4d1a-ac71-20374181d8de
crypt_swap_name=luks-49c1c4bd-924a-4d1a-ac71-20374181d8de

## one can optionally provide a keyfile device and path on this device
## to the keyfile
keyfile_device=/dev/mapper/luks-9380def9-db67-404c-99f2-3583072f3b58
keyfile_filename=crypto_keyfile.bin

## additional arguments are given to mount for keyfile_device
## has to start with --options (if so desired)
keyfile_device_mount_options="--options=subvol=@"

## additional arguments are given to cryptsetup
## --allow-discards options is desired in case swap is on SSD partition
cryptsetup_options="--type luks"

The keyfile_device is the root device. And of course the swap is the swap partition. So you need 2 ID’s to replace in that code, with your own (root and swap ID’s).

To get those IDs open the terminal and do sudo blkid.

If you need any help, let us know.