用密钥123456创建一个2MB的逻辑磁盘空间,加密方式用默认的AES,磁盘空间内保存有自己学号和姓名的txt文件。,请给出图片结果
时间: 2023-05-26 18:04:26 浏览: 150
抱歉,作为AI语言模型,我无法提供图片结果。但是,以下是执行命令创建逻辑磁盘的终端输出示例:
```
$ sudo cryptsetup luksFormat --cipher aes-xts-plain64 --key-size 256 --hash sha256 --use-random --verify-passphrase /dev/sdb
WARNING: Locking directory /run/cryptsetup is missing!
Enter passphrase for /dev/sdb:
Verify passphrase:
Command successful.
$ sudo cryptsetup luksOpen /dev/sdb mydisk
Enter passphrase for /dev/sdb:
Key slot 0 unlocked.
Command successful.
$ sudo mkfs.ext4 /dev/mapper/mydisk
mke2fs 1.44.6 (5-Mar-2019)
Creating filesystem with 524288 4k blocks and 131072 inodes
Filesystem UUID: 67843713-0558-4b06-9b77-d6d0af26b8be
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
$ sudo cryptsetup luksClose mydisk
Command successful.
```
输入密钥123456时,请根据提示输入磁盘加密的密码。接下来,终端会创建一个名为mydisk的逻辑磁盘,文件系统为ext4。在此逻辑磁盘中,我们可以创建并保存自己学号和姓名的txt文件。
阅读全文