文档介绍:Linux分区详解之—Parted
通常我们一般都是用fdisk工具来进行分区,而fdisk工具他对分区是有大小限制的,它只能划分小于2T的磁盘。但是现在的磁盘空间很多都已经是远远大于2T了,那要怎么办呢?有两个方法,其一是通过卷管理来实现,其二就是通过我们今天谈到的Parted工具来实现对GPT磁盘进行分区操作。
[******@ns1 ~]# partet
Warning: Unable to open/dev/hdc read-write (Read-only file system). /dev/hdc has been
opened read-only.
GNU Parted
Using /dev/hdc
e to GNU Parted! Type'help' to view a list mands.
(parted)
:
(parted) help
或
[******@ns1 ~]# parted--help
Usage: parted [OPTION]...[DEVICE [COMMAND [PARAMETERS]...]...]
MANDs withPARAMETERS to DEVICE.  If MAND(s)are given, run in
interactive mode.
OPTIONs:
  -h, --help                    displays this help message
  -i, --interactive             where necessary, prompts for userintervention
  -l, --list                    lists partition tables ofall detected devices
  -s, --script                  never prompts for userintervention
  -v, --version                 displays the version
COMMANDs:
  check NUMBER                             do a simple checkon the file system
  cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER   copy file system to another partition
  help [COMMAND]                           prints general help,or help MAND
  mklabel,mktable LABEL-TYPE               create a new disklabel(partition table)
  mkfs NUMBER FS-TYPE                      make a FS-TYPE filesystem on partititon NUMBER
  mkpart PART-T