特殊:Badtitle/NS100:EncryptedPrivateDirectoryUsbKey

来自Ubuntu中文
Wikibot留言 | 贡献2009年11月17日 (二) 19:03的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索
可打印版本不再受到支持且可能有渲染错误。请更新您的浏览器书签并改用浏览器默认打印功能。

{{#ifexist: :EncryptedPrivateDirectoryUsbKey/zh | | {{#ifexist: EncryptedPrivateDirectoryUsbKey/zh | | {{#ifeq: {{#titleparts:EncryptedPrivateDirectoryUsbKey|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:EncryptedPrivateDirectoryUsbKey|1|-1|}} | zh | | }}

How to setup the use of a USB pen drive as a key for an ecryptfs private directory

Partition and format the USB stick

If it's not already done, you'll want to partition and format a filesystem to be used to hold the key data from ecryptfs:

 # fdisk /dev/sdb
 # mkfs.ext3 /dev/sdb1

Copy your .ecryptfs to the USB stick

Mount the pen drive on a temporary path, then copy .ecryptfs from your home directory to the temporary mountpoint.

 # mount /dev/sdb1 /mnt
 # cp -a /home/USERNAME/.ecryptfs/* /mnt
 # umount /mnt

Obtain the device's UUID

This step is required for automatizing the mounting of the pen drive to the proper path on boot.

 # blkid /dev/sdb1

Automatize

To mount on boot

Add the following line to /etc/fstab to mount the USB pen drive to the proper directory on boot:

 UUID=<UUID from blkid> /home/<username>/.ecryptfs          ext3     relatime        0       2

To mount on connection

There has to be a way to do this...