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

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

Redhat6.0 分区加密(2)

来源: 未知 分享至:
change display/entry units

   v   verify the partition table

   w   write table to disk and exit

   x   extra functionality (experts only)

 

Command (m for help): n

First cylinder (2044-2611, default 2044):

Using default value 2044

Last cylinder, +cylinders or +size{K,M,G} (2044-2611, default 2611): +50M

 

Command (m for help): p

 

Disk /dev/sda: 21.5 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x0003458d

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1        1275    10240000   83  Linux

/dev/sda2            1275        1658     3072000   83  Linux

/dev/sda3            1658        1913     2048000   83  Linux

/dev/sda4            1913        2611     5610496    5  Extended

/dev/sda5            1913        2044     1048576   82  Linux swap / Solaris

/dev/sda6            2044        2050       54945+  83  Linux

 

Command (m for help): w

The partition table has been altered!

 

Calling ioctl() to re-read partition table.

 

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.

The kernel still uses the old table. The new table will be used at

the next reboot or after you run partprobe(8) or kpartx(8)

Syncing disks.

[root@honghaitao ~]# partprobe

 

 

 

二、分区加密

 

1对新分区进行加密,并设置密码:

 [root@honghaitao ~]# cryptsetup.html' target='_blank'>setup luksFormat /dev/sda6


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