特殊:Badtitle/NS100:EncryptedPrivateDirectoryUsbKey
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/EncryptedPrivateDirectoryUsbKey }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/af | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|Afrikaans| [[::EncryptedPrivateDirectoryUsbKey/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/ar | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|العربية| [[::EncryptedPrivateDirectoryUsbKey/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/az | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|azərbaycanca| [[::EncryptedPrivateDirectoryUsbKey/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/bcc | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|جهلسری بلوچی| [[::EncryptedPrivateDirectoryUsbKey/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/bg | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|български| [[::EncryptedPrivateDirectoryUsbKey/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/br | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|brezhoneg| [[::EncryptedPrivateDirectoryUsbKey/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/ca | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|català| [[::EncryptedPrivateDirectoryUsbKey/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/cs | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|čeština| [[::EncryptedPrivateDirectoryUsbKey/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/de | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|Deutsch| [[::EncryptedPrivateDirectoryUsbKey/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/el | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|Ελληνικά| [[::EncryptedPrivateDirectoryUsbKey/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/es | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|español| [[::EncryptedPrivateDirectoryUsbKey/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/fa | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|فارسی| [[::EncryptedPrivateDirectoryUsbKey/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/fi | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|suomi| [[::EncryptedPrivateDirectoryUsbKey/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/fr | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|français| [[::EncryptedPrivateDirectoryUsbKey/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/gu | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|ગુજરાતી| [[::EncryptedPrivateDirectoryUsbKey/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/he | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|עברית| [[::EncryptedPrivateDirectoryUsbKey/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/hu | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|magyar| [[::EncryptedPrivateDirectoryUsbKey/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/id | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|Bahasa Indonesia| [[::EncryptedPrivateDirectoryUsbKey/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/it | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|italiano| [[::EncryptedPrivateDirectoryUsbKey/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/ja | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|日本語| [[::EncryptedPrivateDirectoryUsbKey/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/ko | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|한국어| [[::EncryptedPrivateDirectoryUsbKey/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/ksh | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|Ripoarisch| [[::EncryptedPrivateDirectoryUsbKey/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/mr | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|मराठी| [[::EncryptedPrivateDirectoryUsbKey/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/ms | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|Bahasa Melayu| [[::EncryptedPrivateDirectoryUsbKey/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/nl | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|Nederlands| [[::EncryptedPrivateDirectoryUsbKey/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/no | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|norsk| [[::EncryptedPrivateDirectoryUsbKey/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/oc | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|occitan| [[::EncryptedPrivateDirectoryUsbKey/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/pl | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|polski| [[::EncryptedPrivateDirectoryUsbKey/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/pt | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|português| [[::EncryptedPrivateDirectoryUsbKey/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/ro | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|română| [[::EncryptedPrivateDirectoryUsbKey/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/ru | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|русский| [[::EncryptedPrivateDirectoryUsbKey/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/si | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|සිංහල| [[::EncryptedPrivateDirectoryUsbKey/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/sq | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|shqip| [[::EncryptedPrivateDirectoryUsbKey/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/sr | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|српски / srpski| [[::EncryptedPrivateDirectoryUsbKey/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/sv | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|svenska| [[::EncryptedPrivateDirectoryUsbKey/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/th | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|ไทย| [[::EncryptedPrivateDirectoryUsbKey/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/tr | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|Türkçe| [[::EncryptedPrivateDirectoryUsbKey/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/vi | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|Tiếng Việt| [[::EncryptedPrivateDirectoryUsbKey/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/yue | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|粵語| [[::EncryptedPrivateDirectoryUsbKey/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/zh | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|中文| [[::EncryptedPrivateDirectoryUsbKey/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/zh-hans | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|中文(简体)| [[::EncryptedPrivateDirectoryUsbKey/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey | UbuntuHelp:EncryptedPrivateDirectoryUsbKey | {{#if: | :}}EncryptedPrivateDirectoryUsbKey}}/zh-hant | • {{#if: UbuntuHelp:EncryptedPrivateDirectoryUsbKey|中文(繁體)| [[::EncryptedPrivateDirectoryUsbKey/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:EncryptedPrivateDirectoryUsbKey|:EncryptedPrivateDirectoryUsbKey|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#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...