linux扩展磁盘,格式化分区时候,如果报错:WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
[root@rac2 grid]# fdisk /dev/sda
...
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@rac2 grid]#
可以通过三个方法尝试解决:
1.重启设备:reboot
2.如果不允许重启设备的话:
[root@rac2 grid]#partprobe
或者:
[root@rac2 grid]# kpartx -l /dev/sda /* /dev/sda为格式化出错的分区 */
问题解决
本文介绍了解决Linux系统中磁盘分区格式化时遇到的设备或资源忙错误的方法,包括重启设备、使用partprobe和kpartx命令更新内核分区表。


被折叠的 条评论
为什么被折叠?



