在VMware下,在/dev/sdb的空余空间用fdisk划分新的分区,完毕后,使用partprobe 重读分区表时报错。

[root@localhost ~]# partprobe 

Warning: WARNING: the kernel failed to re-read the partition table on /dev/sdb (Device or resource busy).  As a result, it may not reflect all of your changes until after reboot.


原因:

/dev/sdb设备处于挂载状态,可用df命令查看。

解决:

使用umount取消挂载。