Redhat6.0 分区加密
[root@honghaitao ~]# uname -r
2.6.32-71.el6.i686
一、新建一个分区/dev/sda6
[root@honghaitao ~]# fdisk -l /dev/sda
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
[root@honghaitao ~]# fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It\'s strongly recommended to
switch off the mode (command \'c\') and change display units to
sectors (command \'u\').
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition\'s system id
u