WARNING: Re-reading the partition table failed with error 16: 设备或资源忙

现象:划分磁盘有警告,
在这里插入图片描述
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@Hengji ~]#reboot                  #这个是最好的方法(重启后新的分区表不一定生效)
或
[root@Hengji ~]# partx -a /dev/sda      #获得新分区表(通过命令partx -a /dev/sda,重新获得分区表,这个还挺好使的)
Logo

一站式 AI 云服务平台

更多推荐