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): n (新建分区) Command action e extended p primary partition (1-4) p (主分区) Partition number (1-4): 3 (选择默认或指定分区号,默认起始位置和结束位置(全盘)) First cylinder (5222-6527, default 5222): Using default value 5222 Last cylinder, +cylinders or +size{K,M,G} (5222-6527, default 6527): Using default value 6527
再次输入: 1、t,更改分区类型 2、输入分区编号 3、输入分区类型8e 4、保存并退出
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Command (m for help): t (分区类型 -> 8e (LVM)) Partition number (1-4): 3 Hex code (type L to list codes): 8e Changed system type of partition 3 to 8e (Linux LVM)
Command (m for help): wq (写入分区表,退出) 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.