问题描述:
使用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.
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
Error: Invalid partition table - recursive partition on /dev/sr0.
解决办法:
1、如果是用虚拟机登录的linux,请将系统中的光驱卸载
重新输入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.
解决办法是重新启动虚拟机。
虚拟机启动后,问题解决。
这个是自己出现的问题所解决的办法,给大家分享下。