使用 cryptsetup 加密环回设备失败

J.O*_*sen 5 linux encryption

该文件挂载到 /dev/loop0。# losetup /dev/loop0 /path/to/container1. 尝试设置加密时出现错误:

root@ubuntu:/# cryptsetup --verbose --cipher "aes-cbc-essiv:sha256" --key-size 256 --verify-passphrase luksFormat /dev/loop0

WARNING!
========
This will overwrite data on /dev/loop0 irrevocably.

Are you sure? (Type uppercase yes): yes
Command failed with code 22: Invalid argument
Run Code Online (Sandbox Code Playgroud)

如何解决这个问题?


使用教程:http : //www.g-loaded.eu/2005/11/10/encrypt-devices-using-dm-crypt-and-luks/

wol*_*ajr 7

该程序要求您以大写字母输入yes,只是为了确保您真的阅读了消息并且知道自己在做什么,而不是只是“按下一步”或“按回车”...

因此,您需要键入 YES 才能工作。