我們使用單純的命令行來(lái)實(shí)現(xiàn)在第一部分使用向?qū)瓿傻娜蝿?wù)。 1、命令如下:
veracrypt -c /--non-interactive /--volume-type normal /-v /dev/sdb /--encryption aes /--hash sha512 /--filesystem Ext4 /-p 123456 /--random-source /root/anaconda-ks.cfg2、參數(shù)詳解:
參數(shù) | 說(shuō)明 |
---|---|
--non-interactive | 執(zhí)行命令行時(shí)不需要用戶(hù)交互 |
-c | 生成加密磁盤(pán) |
--volume-type | 這里指定加密磁盤(pán)的類(lèi)型,是常規(guī)加密(normal ) |
還是隱藏加密(hidden ),這里指定是的normal | |
-v | 指定待加密的設(shè)備,這里使用/dev/sdb |
--encryptihion | 指定加密算法,這里使用aes |
--hash | 哈希算法,這里使用sha512 |
--filesystem | 加密后使用的文件系統(tǒng)格式,這里使用Ext4 |
-p | 這里指定加密磁盤(pán)的密碼 |
--random-source | 指定一個(gè)文件做為隨機(jī)字符來(lái)源, |
可隨意指定一個(gè)字符數(shù)大于320的文件 |
3、執(zhí)行效果
[root@CenOS6A ~]# veracrypt -c /--non-interactive /--volume-type normal /-v /dev/sdb /--encryption aes /--hash sha512 /--filesystem Ext4 /-p 123456 /--random-source /root/anaconda-ks.cfgDone: 100.000% Speed: 81 MB/s Left: 0 sThe VeraCrypt volume has been successfully created.我們使用單純的命令行來(lái)實(shí)現(xiàn)在第二部分使用向?qū)瓿傻娜蝿?wù)。 1、命令如下:
veracrypt -c /--non-interactive /--volume-type hidden /-v /dev/sdb /--encryption aes /--hash sha512 /--filesystem Ext4 /-p 147258 /--random-source //root/anaconda-ks.cfg /--size 500M2、參數(shù)詳解: 這條命令大部分參數(shù)與創(chuàng)建常規(guī)加密磁盤(pán)一樣,下面介紹二個(gè)不同的地方:
參數(shù) | 說(shuō)明 |
---|---|
--volume-type | 加密磁盤(pán)類(lèi)型這里指定的是hidden |
-p | 這里指定的密碼是隱藏磁盤(pán)的密碼, |
需要和外層磁盤(pán)的密碼不同 | |
--size | 指定隱藏盤(pán)的大小(K|M|G),這里指定為500M |
3、執(zhí)行效果
[root@CenOS6A ~]# veracrypt -c /--non-interactive /--volume-type hidden /-v /dev/sdb /--encryption aes /--hash sha512 /--filesystem Ext4 /-p 147258 /--random-source //root/anaconda-ks.cfg /--size 500MIMPORTANT: Inexperienced users should use the graphical user interface to create a hidden volume. When using the text interface, the PRocedure described in the command line help must be followed to create a hidden volume.Enter PIM:Enter keyfile path [none]:Done: 100.000% Speed: 100 MB/s Left: 0 sThe hidden VeraCrypt volume has been successfully created and is ready for use. If all the instructions have been followed and if the precautions and requirements listed in the section "Security Requirements and Precautions Pertaining to Hidden Volumes" in the VeraCrypt User's Guide are followed, it should be impossible to prove that the hidden volume exists, even when the outer volume is mounted.WARNING: IF YOU DO NOT PROTECT THE HIDDEN VOLUME (FOR INFORMATION ON HOW TO DO SO, REFER TO THE SECTION "PROTECTION OF HIDDEN VOLUMES AGAINST DAMAGE" IN THE VERACRYPT USER'S GUIDE), DO NOT WRITE TO THE OUTER VOLUME. OTHERWISE, YOU MAY OVERWRITE AND DAMAGE THE HIDDEN VOLUME!新聞熱點(diǎn)
疑難解答
圖片精選