特殊:Badtitle/NS100:TruecryptHiddenVolume:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第10行: | 第10行: | ||
This page is mostly based on the ''man page'' of ''truecrypt 4.3a'' and intents to give a short recipe to implement [http://www.truecrypt.org Truecrypt] hidden volumes on Ubuntu. | This page is mostly based on the ''man page'' of ''truecrypt 4.3a'' and intents to give a short recipe to implement [http://www.truecrypt.org Truecrypt] hidden volumes on Ubuntu. | ||
== Truecrypt hidden volumes == | == Truecrypt hidden volumes == | ||
0. Install [http://www.truecrypt.org Truecrypt]: | 0. Install [http://www.truecrypt.org Truecrypt]:<pre><nowiki> | ||
<pre><nowiki> | |||
sudo apt-get install truecrypt | sudo apt-get install truecrypt | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Create an outer volume (ex: on ''/dev/sdb1''): | 0. Create an outer volume (ex: on ''/dev/sdb1''):<pre><nowiki> | ||
<pre><nowiki> | |||
truecrypt --filesystem none --type normal --encryption AES --hash SHA-1 --random-source /dev/urandom -c /dev/sdb1 | truecrypt --filesystem none --type normal --encryption AES --hash SHA-1 --random-source /dev/urandom -c /dev/sdb1 | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Map the corresponding volume (ex: on ''/dev/sdb1''), but do not mount it: | 0. Map the corresponding volume (ex: on ''/dev/sdb1''), but do not mount it:<pre><nowiki> | ||
<pre><nowiki> | |||
truecrypt /dev/sdb1 | truecrypt /dev/sdb1 | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Format outer volume '''with FAT''': | 0. Format outer volume '''with FAT''':<pre><nowiki> | ||
<pre><nowiki> | |||
sudo mkfs.vfat /dev/mapper/truecrypt0 | sudo mkfs.vfat /dev/mapper/truecrypt0 | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Dismount the volume: | 0. Dismount the volume:<pre><nowiki> | ||
<pre><nowiki> | |||
truecrypt -d | truecrypt -d | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Create a (ex: 50M) hidden volume within the outer volume (ex: on ''/dev/sdb1''): | 0. Create a (ex: 50M) hidden volume within the outer volume (ex: on ''/dev/sdb1''):<pre><nowiki> | ||
<pre><nowiki> | |||
truecrypt --filesystem none --type hidden --size 50M --encryption AES --hash SHA-1 --random-source /dev/urandom -c /dev/sdb1 | truecrypt --filesystem none --type hidden --size 50M --encryption AES --hash SHA-1 --random-source /dev/urandom -c /dev/sdb1 | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Map the corresponding hidden volume (ex: on ''/dev/sdb1''), but do not mount it: | 0. Map the corresponding hidden volume (ex: on ''/dev/sdb1''), but do not mount it:<pre><nowiki> | ||
<pre><nowiki> | |||
truecrypt /dev/sdb1 # (use the hidden password) | truecrypt /dev/sdb1 # (use the hidden password) | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Format the hidden volume with a filesystem recognised by ''mount(8)'': | 0. Format the hidden volume with a filesystem recognised by ''mount(8)'':<pre><nowiki> | ||
<pre><nowiki> | |||
sudo mkfs.xfs /dev/mapper/truecrypt0 | sudo mkfs.xfs /dev/mapper/truecrypt0 | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Dismount the hidden volume: | 0. Dismount the hidden volume:<pre><nowiki> | ||
<pre><nowiki> | |||
truecrypt -d | truecrypt -d | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Mount the outer volume (ex: ''/dev/sdb1'' on ''/mnt/tc'') with the hidden volume protected: | 0. Mount the outer volume (ex: ''/dev/sdb1'' on ''/mnt/tc'') with the hidden volume protected:<pre><nowiki> | ||
<pre><nowiki> | |||
truecrypt -P /dev/sdb1 /mnt/tc | truecrypt -P /dev/sdb1 /mnt/tc | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Copy files to the outer volume: | 0. Copy files to the outer volume:<pre><nowiki> | ||
<pre><nowiki> | |||
cp outer_volume_file.txt /mnt/tc | cp outer_volume_file.txt /mnt/tc | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Dismount the outer volume: | 0. Dismount the outer volume:<pre><nowiki> | ||
<pre><nowiki> | |||
truecrypt -d | truecrypt -d | ||
</nowiki></pre> | </nowiki></pre> | ||
0. Mount either volume (ex: ''/dev/sdb1'' on ''/mnt/tc'') and enjoy: | 0. Mount either volume (ex: ''/dev/sdb1'' on ''/mnt/tc'') and enjoy:<pre><nowiki> | ||
<pre><nowiki> | |||
truecrypt /dev/sdb1 /mnt/tc # (use the password relevant to the volume you want to mount) | truecrypt /dev/sdb1 /mnt/tc # (use the password relevant to the volume you want to mount) | ||
</nowiki></pre> | </nowiki></pre> | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年12月6日 (四) 10:57的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/TruecryptHiddenVolume }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/af | • {{#if: UbuntuHelp:TruecryptHiddenVolume|Afrikaans| [[::TruecryptHiddenVolume/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/ar | • {{#if: UbuntuHelp:TruecryptHiddenVolume|العربية| [[::TruecryptHiddenVolume/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/az | • {{#if: UbuntuHelp:TruecryptHiddenVolume|azərbaycanca| [[::TruecryptHiddenVolume/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/bcc | • {{#if: UbuntuHelp:TruecryptHiddenVolume|جهلسری بلوچی| [[::TruecryptHiddenVolume/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/bg | • {{#if: UbuntuHelp:TruecryptHiddenVolume|български| [[::TruecryptHiddenVolume/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/br | • {{#if: UbuntuHelp:TruecryptHiddenVolume|brezhoneg| [[::TruecryptHiddenVolume/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/ca | • {{#if: UbuntuHelp:TruecryptHiddenVolume|català| [[::TruecryptHiddenVolume/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/cs | • {{#if: UbuntuHelp:TruecryptHiddenVolume|čeština| [[::TruecryptHiddenVolume/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/de | • {{#if: UbuntuHelp:TruecryptHiddenVolume|Deutsch| [[::TruecryptHiddenVolume/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/el | • {{#if: UbuntuHelp:TruecryptHiddenVolume|Ελληνικά| [[::TruecryptHiddenVolume/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/es | • {{#if: UbuntuHelp:TruecryptHiddenVolume|español| [[::TruecryptHiddenVolume/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/fa | • {{#if: UbuntuHelp:TruecryptHiddenVolume|فارسی| [[::TruecryptHiddenVolume/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/fi | • {{#if: UbuntuHelp:TruecryptHiddenVolume|suomi| [[::TruecryptHiddenVolume/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/fr | • {{#if: UbuntuHelp:TruecryptHiddenVolume|français| [[::TruecryptHiddenVolume/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/gu | • {{#if: UbuntuHelp:TruecryptHiddenVolume|ગુજરાતી| [[::TruecryptHiddenVolume/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/he | • {{#if: UbuntuHelp:TruecryptHiddenVolume|עברית| [[::TruecryptHiddenVolume/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/hu | • {{#if: UbuntuHelp:TruecryptHiddenVolume|magyar| [[::TruecryptHiddenVolume/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/id | • {{#if: UbuntuHelp:TruecryptHiddenVolume|Bahasa Indonesia| [[::TruecryptHiddenVolume/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/it | • {{#if: UbuntuHelp:TruecryptHiddenVolume|italiano| [[::TruecryptHiddenVolume/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/ja | • {{#if: UbuntuHelp:TruecryptHiddenVolume|日本語| [[::TruecryptHiddenVolume/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/ko | • {{#if: UbuntuHelp:TruecryptHiddenVolume|한국어| [[::TruecryptHiddenVolume/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/ksh | • {{#if: UbuntuHelp:TruecryptHiddenVolume|Ripoarisch| [[::TruecryptHiddenVolume/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/mr | • {{#if: UbuntuHelp:TruecryptHiddenVolume|मराठी| [[::TruecryptHiddenVolume/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/ms | • {{#if: UbuntuHelp:TruecryptHiddenVolume|Bahasa Melayu| [[::TruecryptHiddenVolume/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/nl | • {{#if: UbuntuHelp:TruecryptHiddenVolume|Nederlands| [[::TruecryptHiddenVolume/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/no | • {{#if: UbuntuHelp:TruecryptHiddenVolume|norsk| [[::TruecryptHiddenVolume/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/oc | • {{#if: UbuntuHelp:TruecryptHiddenVolume|occitan| [[::TruecryptHiddenVolume/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/pl | • {{#if: UbuntuHelp:TruecryptHiddenVolume|polski| [[::TruecryptHiddenVolume/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/pt | • {{#if: UbuntuHelp:TruecryptHiddenVolume|português| [[::TruecryptHiddenVolume/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/ro | • {{#if: UbuntuHelp:TruecryptHiddenVolume|română| [[::TruecryptHiddenVolume/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/ru | • {{#if: UbuntuHelp:TruecryptHiddenVolume|русский| [[::TruecryptHiddenVolume/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/si | • {{#if: UbuntuHelp:TruecryptHiddenVolume|සිංහල| [[::TruecryptHiddenVolume/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/sq | • {{#if: UbuntuHelp:TruecryptHiddenVolume|shqip| [[::TruecryptHiddenVolume/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/sr | • {{#if: UbuntuHelp:TruecryptHiddenVolume|српски / srpski| [[::TruecryptHiddenVolume/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/sv | • {{#if: UbuntuHelp:TruecryptHiddenVolume|svenska| [[::TruecryptHiddenVolume/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/th | • {{#if: UbuntuHelp:TruecryptHiddenVolume|ไทย| [[::TruecryptHiddenVolume/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/tr | • {{#if: UbuntuHelp:TruecryptHiddenVolume|Türkçe| [[::TruecryptHiddenVolume/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/vi | • {{#if: UbuntuHelp:TruecryptHiddenVolume|Tiếng Việt| [[::TruecryptHiddenVolume/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/yue | • {{#if: UbuntuHelp:TruecryptHiddenVolume|粵語| [[::TruecryptHiddenVolume/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/zh | • {{#if: UbuntuHelp:TruecryptHiddenVolume|中文| [[::TruecryptHiddenVolume/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/zh-hans | • {{#if: UbuntuHelp:TruecryptHiddenVolume|中文(简体)| [[::TruecryptHiddenVolume/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TruecryptHiddenVolume | UbuntuHelp:TruecryptHiddenVolume | {{#if: | :}}TruecryptHiddenVolume}}/zh-hant | • {{#if: UbuntuHelp:TruecryptHiddenVolume|中文(繁體)| [[::TruecryptHiddenVolume/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:TruecryptHiddenVolume|:TruecryptHiddenVolume|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :TruecryptHiddenVolume/zh | | {{#ifexist: TruecryptHiddenVolume/zh | | {{#ifeq: {{#titleparts:TruecryptHiddenVolume|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:TruecryptHiddenVolume|1|-1|}} | zh | | }}
There is a lot of documentation on how to create an encrypted volume. However, a significant problem caused by most of the existing implementations is that the owner of the data may be forced to reveal the password used to encrypt the data. To address this, different projects exist to implement some steganography mechanisms, but at the time of writing, only Truecrypt is full-featured and production quality. Truecrypt is a free open-source disk encryption software available on Ubuntu. It offers a convenient hidden volumes management that includes protection against damages. More information is available at [1]. This page is mostly based on the man page of truecrypt 4.3a and intents to give a short recipe to implement Truecrypt hidden volumes on Ubuntu.
0. Install Truecrypt:
sudo apt-get install truecrypt
0. Create an outer volume (ex: on /dev/sdb1):
truecrypt --filesystem none --type normal --encryption AES --hash SHA-1 --random-source /dev/urandom -c /dev/sdb1
0. Map the corresponding volume (ex: on /dev/sdb1), but do not mount it:
truecrypt /dev/sdb1
0. Format outer volume with FAT:
sudo mkfs.vfat /dev/mapper/truecrypt0
0. Dismount the volume:
truecrypt -d
0. Create a (ex: 50M) hidden volume within the outer volume (ex: on /dev/sdb1):
truecrypt --filesystem none --type hidden --size 50M --encryption AES --hash SHA-1 --random-source /dev/urandom -c /dev/sdb1
0. Map the corresponding hidden volume (ex: on /dev/sdb1), but do not mount it:
truecrypt /dev/sdb1 # (use the hidden password)
0. Format the hidden volume with a filesystem recognised by mount(8):
sudo mkfs.xfs /dev/mapper/truecrypt0
0. Dismount the hidden volume:
truecrypt -d
0. Mount the outer volume (ex: /dev/sdb1 on /mnt/tc) with the hidden volume protected:
truecrypt -P /dev/sdb1 /mnt/tc
0. Copy files to the outer volume:
cp outer_volume_file.txt /mnt/tc
0. Dismount the outer volume:
truecrypt -d
0. Mount either volume (ex: /dev/sdb1 on /mnt/tc) and enjoy:
truecrypt /dev/sdb1 /mnt/tc # (use the password relevant to the volume you want to mount)