关于fdisk分区后保存的时候有这个提示,然后不能对分区进行格式化操作
有下现的提示信息
Command (m for help): w
The partition table has been altered!
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
The kernel still uses the old table.
The new table will be used at the next reboot.
遇到这个问题的解决方法:1、是重新启动机器 2、使用命令可以解决
显然第一种方法比较浪费时间,服务器重启是一个慢长的过程,那我们就用又快又简单的方法就是使用partprobe 命令
Re-read The Partition Table Without Rebooting 在不重启的情况下读取分区表
执行这个命令不会有任何的提示信息方法如下
[root@rbsb ~]# partprobe 或[root@rbsb ~]# partprobe /dev/sdX
如果执行这个命令提示找不到可能你没有安装,按下面的方法安装即可
安装包
在使用 partprobe 命令之前你需要安装parted包
如果你的系统是Debian / Ubuntu Linux, 请输入
如果你的系统是Debian / Ubuntu Linux, 请输入
# apt-get install parted
如果你使用的系统是Fedora Linux / CentOS / RHEL 5, 请输入
# yum install parted
一般情况下这个包都是安装好的。
中文技术网站没有找到这个更好的说明,所以就记录了一下不足之处请指正
转载于:https://blog.51cto.com/haoyou168/325865