linux扩展磁盘,格式化分区时候,如果报错:WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
命令(输入 m 获取帮助):w
The partition table has been altered!
Calling ioctl() to re-read partition table.
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.重启设备:reboot
2.如果不允许重启设备的话 刷新磁盘分区表
:
[root@localhost ~]# partprobe
或者:
[root@localhost ~]# kpartx -l /dev/sda /* /dev/sda为格式化出错的分区 */