Warning: the kernel failed to re-read the partition table on /dev/vda (Device or resource busy)

我在初始化Linux数据盘时,执行将partprobe,新的分区表变更同步至操作系统,遇到了以下问题:
Warning: WARNING: the kernel failed to re-read the partition table on /dev/vda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.

我首先尝试了一个方法
假设新增的分区是/dev/sda9,那么执行partx -a /dev/sda9 /dev/sda就可以了
在这里插入图片描述
宣布失败。

后来,在大神的指点下,特意感谢:http://blog.sina.com.cn/s/blog_64220bc3010185hj.html

partprobe必须具体到新建的那个分区,否则无法成功重新读取分区表
如:
partprobe
Warning: WARNING: the kernel failed to
re-read the partition table on /dev/sda (Device or resource busy).
As a result, it may not reflect all of your changes until after reboot.
(错误信息,提示重启,但是重启之后也无法成功,因为partprobe需要针对单个新增分区才适当)
如:
partprobe /dev/sda9
/dev/sda9为刚用fdisk新建的分区,显示成功

在这里插入图片描述
partprobe这个命令执行完毕之后不会输出任何返回信息

成功debug√

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值