cryptsetup luksFormat 错误:访问被拒绝或设备不存在

cryptsetup luksFormat 错误:访问被拒绝或设备不存在

我正在尝试初始化 USB 记忆棒分区上的 LUKS 加密。我在 ubuntu 上。分区大小为 43.7gb

我已经仔细检查过fdisk -l我尝试访问的分区是否存在:/dev/sdb3;我尝试使用标志-y;和sudo

运行时出现错误cryptsetup --verify-passphrase luksFormat /dev/sdb3

Device /dev/sdb3 doesn't exist or access denied.`

我不知道我在这里错过了什么

df -h输出:

Disk /dev/sdb: 58.3 GiB, 62579015680 bytes, 122224640 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x77e6cfe3

fdisk -l /dev/sdb输出:

Disk /dev/sdb: 58.3 GiB, 62579015680 bytes, 122224640 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x77e6cfe3

相关内容