Last 扇区, +扇区 or +size{K,M,G} (314572800-419430399,默认为 419430399):
回车后会出现
1
命令(输入 m 获取帮助):
6、输入:t,并回车
7、输入分区号:4,并回车
8、输入:8e,并回车
9、输入:w,并回车
如果提醒 设备或资源忙
1 2 3
WARNING: Re-reading the partition table failed with error 16: 设备或资源忙. 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)
则执行:
1
partprobe
查看分区结果
1
lsblk
结果:
1 2 3 4 5 6 7 8 9 10 11 12 13
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 200G 0 disk ├─sda1 8:1 0 1G 0 part /boot ├─sda2 8:2 0 99G 0 part │ ├─centos_localhost-root 253:0 0 221.1G 0 lvm / │ └─centos_localhost-swap 253:1 0 7.9G 0 lvm [SWAP] ├─sda3 8:3 0 50G 0 part │ └─centos_localhost-root 253:0 0 221.1G 0 lvm / └─sda4 8:4 0 50G 0 part sdb 8:16 0 80G 0 disk └─sdb1 8:17 0 80G 0 part └─centos_localhost-root 253:0 0 221.1G 0 lvm / sdc 8:32 0 50G 0 disk
WARNING: Re-reading the partition table failed with error 16: 设备或资源忙. 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)
则执行:
1
partprobe
查看分区结果
1
lsblk
结果:
1 2 3 4 5 6 7 8 9 10 11 12 13
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 200G 0 disk ├─sda1 8:1 0 1G 0 part /boot ├─sda2 8:2 0 99G 0 part │ ├─centos_localhost-root 253:0 0 221.1G 0 lvm / │ └─centos_localhost-swap 253:1 0 7.9G 0 lvm [SWAP] ├─sda3 8:3 0 50G 0 part │ └─centos_localhost-root 253:0 0 221.1G 0 lvm / └─sda4 8:4 0 50G 0 part sdb 8:16 0 80G 0 disk └─sdb1 8:17 0 80G 0 part └─centos_localhost-root 253:0 0 221.1G 0 lvm / sdc 8:32 0 50G 0 disk