解密LUKS分区失败

解密LUKS分区失败

我试图在启动时挂载一个 ntfs 分区,为此我使用了 gnome-disks。我选择了 ntfs 分区并更改了启动时挂载的配置。之后我重新启动系统,当要求输入密码来解密 /home 分区时,出现了一些失败。我确定密码是正确的。我在 Journal -xb 命令结果中发现以下错误:

无法使用密钥文件激活:'/crypto_keyfile.bin' 参数无效

我的 lsblk 命令结果:

[manjaro-gnome /]# lsblk -o name,uuid,mountpoint
NAME                                          UUID                                 MOUNTPOINT
loop0                                                                              /run/miso/sfs/livefs
loop1                                                                              /run/miso/sfs/mhwdfs
loop2                                                                              /run/miso/sfs/desktopfs
loop3                                                                              /run/miso/sfs/rootfs
sda                                                                                
├─sda1                                        2E6B-B242                            
├─sda2                                        B48F-011C                            
├─sda3                                        a16ce210-e958-40bf-843a-60d659472f57 /repchroot
├─sda4                                        d5a167c6-93ce-4a2a-9ff6-1010f0674eaf 
├─sda5                                                                             
├─sda6                                        DC0E00690E003ED0                     
└─sda7                                        77286FD753707FDC                     
sdb                                           2018-04-28-08-00-50-00               
├─sdb1                                        2018-04-28-08-00-50-00               /run/miso/bootmnt
└─sdb2                                        8955-B080                            
nvme0n1                                                                            
├─nvme0n1p1                                   F382-3817                            
├─nvme0n1p2                                   123a2f7d-e658-41d1-b42c-cb3ec3b3d5c4 
├─nvme0n1p3                                   6158a5ba-e5d6-4955-95c7-2eb5ad109a7b /
└─nvme0n1p4                                   0330bdcc-3bf2-4c83-8b1d-748a0bef9fe4 
  └─luks-0330bdcc-3bf2-4c83-8b1d-748a0bef9fe4 466c08d3-d7f4-4ee7-b313-83e0c8dbd030

我的 fstab 命令结果:

[manjaro-gnome /]# cat etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=F382-3817                            /boot/efi      vfat    defaults,noatime 0 2
UUID=6158a5ba-e5d6-4955-95c7-2eb5ad109a7b /              ext4    defaults,noatime 0 1
/dev/mapper/luks-0330bdcc-3bf2-4c83-8b1d-748a0bef9fe4 /home          ext4    defaults,noatime 0 2
UUID=123a2f7d-e658-41d1-b42c-cb3ec3b3d5c4 swap           swap    defaults,noatime 0 2
UUID=283610a5-2faa-4382-ae4f-71575533e846 swap           swap    defaults,noatime 0 2
/dev/sda7 /mnt/sda7 auto nosuid,nodev,nofail,x-gvfs-show 0 0

我的 crypttab 命令结果如下:

[manjaro-gnome /]# cat etc/crypttab
# /etc/crypttab: mappings for encrypted partitions.
#
# Each mapped device will be created in /dev/mapper, so your /etc/fstab
# should use the /dev/mapper/<name> paths for encrypted devices.
#
# See crypttab(5) for the supported syntax.
#
# NOTE: Do not list your root (/) partition here, it must be set up
#       beforehand by the initramfs (/etc/mkinitcpio.conf). The same applies
#       to encrypted swap, which should be set up with mkinitcpio-openswap
#       for resume support.
#
# <name>               <device>                         <password> <options>
luks-0330bdcc-3bf2-4c83-8b1d-748a0bef9fe4 UUID=0330bdcc-3bf2-4c83-8b1d-748a0bef9fe4     /crypto_keyfile.bin luks

我的根目录下没有 /crypto_keyfile.bin 文件。我发现这个主题有一个可能的解决方案,但我不确定是否与我有同样的问题: https://forum.manjaro.org/t/decryption-problem/25284/18

相关内容