Command action
e extended
p primary partition (1-4)
给我们创建的分区一个分区号。
Partition number (1-4): 1
到这里,我们就要设置LVM驱动器了。因此,我们需要使用默认的设置来使用整个驱动器。
First sector (2048-37748735, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-37748735, default 37748735):
Using default value 37748735
选择分区的类型,这里我们要设置LVM,因此使用8e。使用l列出所有的类型。
Command (m for help): t
选择想要改变类型的分区。
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
在改变完类型之后,通过打印(p)选项来列出分区表。
Command (m for help): p
Disk /dev/sda: 19.3 GB, 19327352832 bytes
255 heads, 63 sectors/track, 2349 cylinders, total 37748736 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9fae99c8
Device Boot Start End Blocks Id System
/dev/sda1 2048 37748735 18873344 8e Linux LVM
0 Comments