在suse / systemd中挂载加密环回:未知文件系统类型' crypt'

时间:2018-03-11 00:23:05

标签: encryption filesystems mount systemd suse

这可能是openSUSE / systemd特有的。

我使用SDB:Encrypted filesystems知识库中描述的过程无法安装加密的环回文件。我有这种行为:

[mjl@tesla:~]
[11:12] $ sudo systemctl start /home/mjl/key
Job for home-mjl-key.mount failed. See "systemctl status home-mjl-key.mount" and "journalctl -xe" for details.
[mjl@tesla:~]
[11:12] 1 $ sudo systemctl status home-mjl-key.mount
● home-mjl-key.mount - /home/mjl/key
   Loaded: loaded (/etc/fstab; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2018-03-11 11:12:41 AEDT; 3s ago
    Where: /home/mjl/key
     What: /home/mjl/.tomb
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
  Process: 12949 ExecMount=/usr/bin/mount /home/mjl/.tomb /home/mjl/key -t crypt -o loop,user,acl,user_xattr (code=exited, status=32)

Mar 11 11:12:41 tesla systemd[1]: Mounting /home/mjl/key...
Mar 11 11:12:41 tesla mount[12949]: mount: unknown filesystem type 'crypt'
Mar 11 11:12:41 tesla systemd[1]: home-mjl-key.mount: Mount process exited, code=exited status=32
Mar 11 11:12:41 tesla systemd[1]: Failed to mount /home/mjl/key.
Mar 11 11:12:41 tesla systemd[1]: home-mjl-key.mount: Unit entered failed state.
[mjl@tesla:~]
[11:12] 3 $ 

/home/mjl/.tomb环回文件是created using YaST Partitioner;我指定我不希望它在系统启动时挂载,但是应该允许用户挂载它。

所以它创建了文件,在/ etc / cryptab中添加了一个条目,并在/ etc / fstab中添加了这个条目:

[mjl@tesla:~]
[11:12] 3 $ tail -n1 /etc/fstab
/home/mjl/.tomb      /home/mjl/key        crypt      loop,user,noauto,acl,user_xattr,nofail 0 0
[mjl@tesla:~]
[11:15]$ 

有'地穴'文件系统类型。

我的问题是:我应该如何将其作为用户安装?系统因为文件系统类型而失败,还是因为我没有告诉它加密密钥?

我也试过直接安装:

[mjl@tesla:~]
[11:16]$ sudo mount /home/mjl/key
mount: unknown filesystem type 'crypt'
[mjl@tesla:~]

同样的错误。所以我想我没有正确安装它。我是否需要使用cryptsetup做一些事情

0 个答案:

没有答案