升级Ubuntu后Cryptsetup无法提供可挂载设备的问题求助
大家好,最近我把Ubuntu从22.04 LTS(jammy)升级到了24.04 LTS(noble),顺带把cryptsetup工具从2.4.3版本更新到了2.7.0版本。
之前我一直靠下面两条命令顺利挂载我的分区:
cryptsetup open --type plain /dev/sda1 data mount /dev/mapper/data /data
但自从这次系统更新后,运行第一条cryptsetup命令时会弹出这些警告:
WARNING: Using default options for cipher (aes-xts-plain64, key size 256 bits) that could be incompatible with older versions.
WARNING: Using default options for hash (sha256) that could be incompatible with older versions.
For plain mode, always use options --cipher, --key-size and if no keyfile is used, then also --hash.
更麻烦的是,后续挂载生成的映射设备时直接报错了:
mount: /data: wrong fs type, bad option, bad superblock on /dev/mapper/data, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount ...
有没有朋友遇到过类似的情况?或者知道该怎么解决这个问题?麻烦大家帮忙指点下,谢谢啦!
备注:内容来源于stack exchange,提问作者crazypeter

