注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

古城风~~~

竹密无妨溪水过,天高不碍白云飞。这天下总有一份是属于我古城的天地!

 
 
 

日志

 
 

TrueCrypt命令 各参数的使用  

2012-04-28 17:05:20|  分类: 学习笔记 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
安装TrueCrypt后,在安装目录上有一份(TrueCrypt User Guide.pdf)帮助文件,里面有写到各命令的用法,在此只是简单的拷贝出来而已。看不懂E文的,就去用百度或谷歌翻译等工具吧;

Command Line Usage
Note that this section applies to the Windows version of TrueCrypt. For information on command
line usage applying to the Linux and Mac OS X versions, please run: truecrypt –h

/help or /? 
Display command line help.

/volume or /v
File and path name of a TrueCrypt volume to mount (do not use when dismounting). To mount a partition/device- hosted volume, use, for example, /v \Device\Harddisk1\Partition3 (to determine the path to apartition/device, run TrueCrypt and click Select Device). You can also mount a partition or dynamic volume using its volume name (for example, /v \\?\Volume{5cceb196-48bf-46ab-ad00-70965512253a}\). To determine the volume name use e.g. mountvol.exe. Also note that device paths are case-sensitive.

/letter or /l
Driver letter to mount the volume as. When /l is omitted and when /a is used, the first free drive letter is used.

/explore or /e
Open an Explorer window after a volume has been mounted.

/beep or /b
Beep after a volume has been successfully mounted or dismounted.

/auto or /a
If no parameter is specified, automatically mount the volume. If devices is specified as the parameter (e.g., /a devices), auto-mount all currently accessible device/partition-hosted TrueCrypt volumes. If favorites is specified as the parameter, auto-mount favorite volumes. Note that /auto is implicit if /quit and /volume are specified. If you need to prevent the application window from appearing, use /quit. 

/dismount or /d
Dismount volume specified by drive letter (e.g., /d x). When no drive letter is specified, dismounts all currently mounted TrueCrypt volumes.

/force or /f
Forces dismount (if the volume to be dismounted contains files being used by the system or an application) and forces mounting in shared mode (i.e.,without exclusive access).

/keyfile or /k
Specifies a keyfile or a keyfile search path. For multiple keyfiles, specify e.g.: /k c:\keyfile1.dat /k d:\KeyfileFolder /k c:\kf2 To specify a keyfile stored on a security token or smart card, use the following syntax: token://slot/SLOT_NUMBER/file/FILE_NAME

/tokenlib
Use the specified PKCS #11 library for security tokens and smart cards.

/cache or /c
y or no parameter: enable password cache; n: disable password cache(e.g., /c n). Note that turning the password cache off will not clear it (use/w to clear the password cache).

/history or /h
y or no parameter: enables saving history of mounted volumes; n: disables saving history of mounted volumes (e.g., /h n).

/wipecache or /w
Wipes any passwords cached in the driver memory.

/password or /p
The volume password. If the password contains spaces, it must be enclosed in quotation marks (e.g., /p ”My Password”). Use /p ”” to specify an empty password. Warning: This method of entering a volume password may be insecure, for example, when an unencrypted command prompt history log is being saved to unencrypted disk.

/quit or /q
Automatically perform requested actions and exit (main TrueCrypt window will not be displayed). If preferences is specified as the parameter (e.g., /q preferences), then program settings are loaded/saved and they override settings specified on the command line. /q background launches the TrueCrypt Background Task (tray icon) unless it is disabled in the Preferences.

/silent or /s
If /q is specified, suppresses interaction with the user (prompts, error messages, warnings, etc.). If /q is not specified, this option has no effect.

/mountoption or /m
ro or readonly: Mount volume as read-only.
rm or removable: Mount volume as removable medium (see section Volume Mounted as Removable Medium).
ts or timestamp: Do not preserve container modification timestamp
sm or system: Without pre-boot authentication, mount a partition that is within the key scope of system encryption (for example, a partition located on the encrypted system drive of another operating system that is not running). Useful e.g. for backup or repair operations. Note: If you supply a password as a parameter of /p, make sure that the password has been typed using the standard US keyboard layout (in contrast, the GUI ensures this automatically). This is required due to the fact that the password needs to be typed in the pre-boot environment(before Windows starts) where non-US Windows keyboard layouts are not available.
bk or headerbak: Mount volume using embedded backup header.
Note: All volumes created by TrueCrypt 6.0 or later contain an embedded backup header (located at the end of the volume).
recovery: Do not verify any checksums stored in the volume header. This option should be used only when the volume header is damaged and the volume cannot be mounted even with the mount option headerbak.
Example: /m ro. To specify multiple mount options, use e.g.: /m rm /m ts


TrueCrypt Format.exe (TrueCrypt Volume Creation Wizard):

/noisocheck or /n
Do not verify that TrueCrypt Rescue Disks are correctly burned. This can be useful e.g. in corporate environments where it may be more convenient to maintain a central repository of ISO images rather than a repository of CDs or DVDs. WARNING: Never attempt to use this option to facilitate the reuse of a previously created TrueCrypt Rescue Disk. Note that every time you encrypt a system partition/drive, you must create a new TrueCrypt Rescue Disk even if you use the same password. A previously created TrueCrypt Rescue Disk cannot be reused as it was created for a different master key.

Syntax
TrueCrypt.exe [/a [devices|favorites]] [/b] [/c [y|n]] [/d [drive letter]] [/e] [/f] [/h [y|n]] [/k keyfile or search path] [/l drive letter] [/m {bk|rm|recovery|ro|sm|ts}] [/p password] [/q [background|preferences]] [/s] [/tokenlib path] [/v volume] [/w]

"TrueCrypt Format.exe" [/n]

Note that the order in which options are specified does not matter.


Examples
Mount the volume d:\myvolume as the first free drive letter, using the password prompt (the main program window will not be displayed):
truecrypt /q /v d:\myvolume

Dismount a volume mounted as the drive letter X (the main program window will not be displayed):
truecrypt /q /dx

Mount a volume called myvolume.tc using the password MyPassword, as the drive letter X. TrueCrypt will open an explorer window and beep; mounting will be automatic:
truecrypt /v myvolume.tc /lx /a /p MyPassword /e /b




简单举例说明:

打开加密卷:

注:TrueCrypt.exe要写全路径,如果想省略不写可以把安装目录追加到Path系统变量中。为方便自己使用,可以选择保存为bat文件,或服务等。

如:

TrueCrypt.exe "C:\ccp330\mydata" /p "12345678" /k "c:\ccp330\mykey.jpg" /a /l y /e /q

 

数据文件为“C:\ccp330\mydata”,加密密码是“12345678”,密钥文件是“c:\ccp330\mykey.jpg”;

/a”为自动挂载卷;

/p”为加密密码;

/k”为指定密钥文件的位置;

/l”为加载出来的对应的盘符,这里为Y卷,如果省略则会选取以A到Z顺序的第一个空闲盘符;

/e”卷挂载后打开资源管理器窗口,即打开盘符,不打开界面可以省略;

/q”自动执行命令请求并离开,主要是不打开功能窗口,即不会弹出软件的界面;



关闭加密卷:

如:

TrueCrypt.exe /d y /q

/d”为卸载指定的卷驱动器,如参数后面不指定盘符,则卸载所有的卷驱动器;




  评论这张
 
阅读(2550)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017