Command action
e extended
p primary partition (1-4)
p #設(shè)置為主分區(qū)
Partition number (1-4): 1 #主分區(qū)號(hào)
First cylinder (1-2610, default 1):1 #開(kāi)始扇區(qū)(直接默認(rèn)回車)
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-2610, default 2610):2610
Using default value 2610 #結(jié)束扇區(qū)(直接默認(rèn)回車)
Command (m for help): t #指定分區(qū)類型
Selected partition 1 #選擇1號(hào)分區(qū)
Hex code (type L to list codes): 8e #8e為L(zhǎng)VM
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w #保存
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.