关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

Linux 硬盘分区生效命令partprobe

发布时间:2024/9/2 11:35:59
香港云服务器

在linux磁盘管理中,使用fdisk将剩余的容量继续分区,但是在保存分区表时,会出现以下报错:

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)

Syncing disks.

该提示为:

重载分区出现的上述信息中,当时对于警告提示“设备或资源忙,需要重启系统才能使更改生效”直接忽略,以为是正常现象。但是对于错

误信息“Error: 无效的分区表 - /dev/sr0 出现递归分区。

此时使用fdisk命令看不到新建的分区信息,可以使用partprobe命令解决这个问题而不用重启系统,因为partprobe可以使kernel重新读

取分区信息,从而避免重启系统。

partprobe

fdisk -l

此时看分区成功加载