在 CentOS 中排查 驱动(drivers)错误,通常可以按下面系统化的思路来定位和处理。
先明确是哪种“驱动错误”:
dmesg 中有 driver error / unknown devicelspci 设备存在但无驱动dmesg | grep -i error
dmesg | grep -i driver
dmesg | tail -100
重点看:
module verification failedno driverfailed to loadlspci -nnk
示例输出中关注:
Kernel driver in use: xxx
Kernel modules: yyy
如果 Kernel driver in use 为空 → 驱动未加载
lsmod | grep 驱动名
手动加载测试:
modprobe 驱动名
journalctl -xe
或
cat /var/log/messages | grep -i driver
yum install kmod-xxx
# 或
elrepo.org 提供的驱动
uname -r
rpm -qa | grep kernel
解决:
报错示例:
module verification failed: signature and/or required key missing
解决:
nvidia-smi
失败常见原因:
禁用 nouveau:
echo -e "blacklist nouveau\noptions nouveau modeset=0" > /etc/modprobe.d/blacklist-nouveau.conf
ethtool -i eth0
无驱动 → 安装 kmod-xxx
lspci | grep -i raid
lsblk
lspci -nnk
↓
dmesg | grep error
↓
lsmod / modprobe
↓
journalctl -xe
↓
内核版本 & 驱动匹配
如果你能贴出:
CentOS 版本(7 / 8 / Stream)我可以帮你精准分析。