Centos fdisk分区时提示设备或资源忙的处理办法

对linux系统磁盘进行分区时,提示如下错误提示的处理办法:

错误提示:

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)

处理办法:

[root@xuegod63 ~]#reboot #这个是最好的方法(重启后新的分区表不一定生效)

[root@xuegod63 ~]# partx -a /dev/sda #获得新分区表(通过命令partx -a /dev/sda,重新获得分区表,这个还挺好使的)