Welcome to fdisk (util-linux 2.31.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
The old ext4 signature will be removed by a write command.
Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0xa3589bc9.
Command (m forhelp): m
Help:
DOS (MBR) a toggle a bootable flag b edit nested BSD disklabel c toggle the dos compatibility flag
Generic d delete a partition F list free unpartitioned space l list known partition types n add a new partition p print the partition table t change a partition type v verify the partition table i print information about a partition
Misc m print this menu u change display/entry units x extra functionality (experts only)
Script I load disk layout from sfdisk script file O dump disk layout to sfdisk script file
Save & Exit w write table to disk and exit q quit without saving changes
Create a new label g create a new empty GPT partition table G create a new empty SGI (IRIX) partition table o create a new empty DOS partition table s create a new empty Sun partition table ######## 操作 n # 增加分区 p # 选择创建主分区 1-4 # 选择分区号 # 回车 默认 # 回车 默认 w # 保存并退出
修改分区号
1 2 3 4 5 6
fdisk /dev/sdb t # 修改分区系统id 1-4 # 选择要修改的分区 8e # 指定要修改的id号 8e表示LVM w # 保存并退出 # 重启一下