VeraCrypt icon indicating copy to clipboard operation
VeraCrypt copied to clipboard

VeraCrypt fails to mount encrypted disk / fuse mount failed: device or resource busy

Open kneckergit opened this issue 8 months ago • 3 comments

Starting from Linux Kernel 6.5 on, trying to mount an veracrpted encrypted disk results in a FUSE mount error - this applies to both the GUI and the console commands.

Steps to reproduce

For better understanding, I am reproducing the bug via console commands here: sudo veracrypt /dev/disk-or-partition /mnt/veracrypt1 This results in the error error The drive does get decrypted and mounted however, though not at the desired mountpoint /mnt/veracrypt1 but in /run/media/user-name/serial-number

Further information:

The drive does get linked in the /dev/mapper sudo ls -l /dev/mapper reads

total 0
crw------- 1 root root 10, 236 Oct 27 13:57 control
lrwxrwxrwx 1 root root       7 Oct 27 14:05 veracrypt1 -> ../dm-0

Workaround 1:

Disabling the kernel cryptographic services (option in the GUI) circumvents the error. The bug seems to be related to this in conjunction with the Linux Kernel from v. 6.5 on. Opting to disable this, comes with two major downsides however:

  1. The performance is negatively affected.
  2. According to the manual, this also prevents trim operations from being executed (While it enhances security, this is also important for better performance on solid state drives).

Workaround 2:

The drive can be decrypted and mounted normally via the cryptsetup command, eg. sudo cryptsetup open --type=tcrypt --veracrypt /dev/disk/by-id/xyz decrypted-disk

Environment

VeraCrypt version: 1.26.7 Operating system and version: Arch Linux (Manjaro), Kernel 6.5.5-1, KDE 5.27.8

kneckergit avatar Nov 06 '23 13:11 kneckergit