[DragonFlyBSD - Bug #2789] re: Tcplay ---> Could not open /dev/crypto

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Mon Feb 16 10:53:46 PST 2015

Issue #2789 has been updated by garytivey512.

Loaded the cryptodev.ko module as suggested by Sepherosa, and Tcplay works just fine.

Perhaps a note somewhere in the documentation would be useful,... or possibly find a way to load the module (cryptodev.ko) on demand if that is possible/practical. 

Bug #2789: re: Tcplay ---> Could not open /dev/crypto

* Author: garytivey512
* Status: New
* Priority: Normal
* Assignee: 
* Category: Crypto
* Target version: 4.0.x
While trying to create an encrypted container using tcplay I got this error message.
If anyone can help out on this one, it would be appreciated!

container(file) is zeroed-out and mounted using vnconfig vn0 imagefile

kldstat shows dm.ko and dm_target_crypt.ko loaded, but crypto.ko is not loaded --- if I try to manually load crypto.ko the returned message is "interface crypto.1 already present in the KLD 'kernel'!"

black2# tcplay --create --device=/dev/vn0
Repeat passphrase: 
Summary of actions:
 - Completely erase *EVERYTHING* on /dev/vn0
 - Create volume on /dev/vn0

 Are you sure you want to proceed? (y/n) y
Securely erasing the volume...
This process may take some time depending on the size of the volume
Creating volume headers...
Depending on your system, this process may take a few minutes as it uses true random data which might take a while to refill
Could not open /dev/crypto: No such file or directory
Header encryption failed
Could not create header
could not create new volume on /dev/vn0

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

More information about the Bugs mailing list