partprobe 无法运行 ,分区后必须要从新启动

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
miantuan
帖子: 17
注册时间: 2009-05-30 21:27

partprobe 无法运行 ,分区后必须要从新启动

#1

帖子 miantuan » 2011-06-16 10:53

[root@miantuanlinux tmp]# 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.
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
[root@miantuanlinux tmp]#
[root@miantuanlinux tmp]#
[root@miantuanlinux tmp]# uname -a
Linux miantuanlinux 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@miantuanlinux tmp]#

请问是什么原因?? redhat 6 server
头像
ChenFengyuan
帖子: 770
注册时间: 2008-03-23 0:39

Re: partprobe 无法运行 ,分区后必须要从新启动

#2

帖子 ChenFengyuan » 2011-07-11 9:52

我貌似也遇到过partprobe无法达到预期效果。记得是运行了没效果。
不过可以试试sfdisk -R /dev/sda :em06
头像
ChenFengyuan
帖子: 770
注册时间: 2008-03-23 0:39

Re: partprobe 无法运行 ,分区后必须要从新启动

#3

帖子 ChenFengyuan » 2011-07-11 9:52

不过你的错误可能是/dev/sda被使用了
lsof啥的看下,是不是挂载了啥的?
回复