重启后 partprobe 出现错误

重启后 partprobe 出现错误

从开机到出现此错误消息期间未执行任何分区操作。知道 partprobe 为何会显示此信息吗?

请注意,虽然这些磁盘没有任何共同之处(一个安装在 / 和 SATA,另一个安装在 /build 和 USB,没有通用文件系统等),但 /dev/sda 和 /dev/sdb 的错误消息是相同的。

根据 fdisk 和 parted,两者都只有两个分区。

这是 aarch64(Arch Linux)。

> sudo partprobe
Error: Partition(s) 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use.  As a result, the old partition(s) will remain in use.  You should reboot now before making further changes.
Error: Partition(s) 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use.  As a result, the old partition(s) will remain in use.  You should reboot now before making further changes.```

Add-on: I removed all traces of /dev/sdb from /etc/fstab, rebooted, and get the above error message just for /dev/sda. Then I plug in the external USB drive, and without mounting or doing anything else, the partprobe output goes back to having the line for /dev/sdb as well.

Also, running strace on partprobe shows it is attempting to access all devices from /dev/sda1 to /dev/sda255, same for sdb. This sounds weird.

答案1

我在 Fedora 上使用 gparted 时也遇到了同样的问题。根据一些谷歌搜索(用作动词时“G”要大写吗?)它似乎是内核 5.8.8 中或周围引入的回归错误。

我刚刚安装了内核 5.8.11,问题已经修复。

我没有尝试过临时版本。

相关内容