Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐: 强烈推荐:Ylmf OS 3.0 正式版发布附迅雷高 XP系统下硬盘安装Fedora 14图文教程
搜索:
您的位置: Linux安全网 > Linux入门 > » 正文

Redhat6.0 分区加密(3)

来源: 未知 分享至:
 

WARNING!

========

This will overwrite data on /dev/sda6 irrevocably.

 

Are you sure? (Type uppercase yes): YES

Enter LUKS passphrase:

Verify passphrase:

 

 

2这个时候我们的分区已经被加密,我们要使用必须先解密

[root@honghaitao ~]# cryptsetup luksOpen /dev/sda6 tt

Enter passphrase for /dev/sda6:

[root@honghaitao ~]# ll /dev/mapper/tt

lrwxrwxrwx. 1 root root 7 Sep 21 05:16 /dev/mapper/tt -> ../dm-1

这里通过luksOpen来进行解密 后面‘tt’可以写随意的名字,然后会将加密卷/dev/vda6解锁为/dev/mapper/tt

 

 

3解密的卷进行格式化

 

[root@honghaitao ~]# mkfs.ext4 /dev/mapper/tt

mke2fs 1.41.12 (17-May-2010)

Filesystem label=

OS type: Linux

Block size=1024 (log=0)

Fragment size=1024 (log=0)

Stride=0 blocks, Stripe width=0 blocks

3184 inodes, 12732 blocks

636 blocks (5.00%) reserved for the super user

First data block=1

Maximum filesystem blocks=13107200

2 block groups

8192 blocks per group, 8192 fragments per group

1592 inodes per group

Superblock backups stored on blocks:

        8193

 

Writing inode tables: done                           

Creating journal (1024 blocks): done

Writing superblocks and filesystem accounting information: done

 

This filesystem will be automatically checked every 29 mounts or

180 days, whichever comes first.  Use tune2fs -c or -i to override.

 

4把分区挂载到我们的系统上

-----/mnt 下建立目录


Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史