在 CentOS 里“修复 drivers(驱动)”要看具体是什么驱动、什么故障场景。下面按常见情况给你一套排查 + 修复思路,你可以对照使用。
先搞清楚是哪种驱动出问题:
uname -r
rpm -qa | grep kernel
lsmod
lspci -k
dmesg | tail -50
journalctl -xe
modprobe xxx 报错grub2-reboot 1
reboot
或在 GRUB 菜单选旧内核
yum reinstall kmod-xxx
或重新执行厂商安装脚本
lspci | grep -i eth
ip addr
modprobe e1000
# 或 igb / ixgbe / tg3 等
yum install kmod-xxx
nvidia-smi
systemctl isolate multi-user.target
sh NVIDIA-Linux-x86_64-xxx.run --uninstall
sh NVIDIA-Linux-x86_64-xxx.run
vim /etc/modprobe.d/blacklist.conf
blacklist nouveau
dracut --force
reboot
yum install epel-release
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
yum install kmod-xxx
rpm -V kernel
rpm -V kmod-xxx
yum reinstall kernel
systemctl rescue
你可以告诉我:
我可以直接给你精确命令。