centos7.0 | 6.9装Nvidia显卡驱动:禁用The Nouveau kernel driver的方法

centos7.0 | 6.9装Nvidia显卡驱动:禁用The Nouveau kernel driver的方法

将驱动从Nvidia官网下载回来后 进入文本模式直接运行安装,发现提示如下错误:

ERROR: The Nouveau kernel driver is currently in use by your system. This

    driver is incompatible with the NVIDIA driver, and must be disabled

    before proceeding. Please consult the NVIDIA driver README and your

    Linux distribution's documentation for details on how to correctly

    disable the Nouveau kernel driver.

解决办法如下:

    也即关闭Nouveau:

    1)把驱动加入黑名单中: /etc/modprobe.d/blacklist.conf 在后面加入:

    blacklist nouveau

    2) 使用 dracut重新建立 initramfs image file :

    * 备份 the initramfs file

    $ sudo mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak

    * 重新建立 the initramfs file

    $ sudo dracut -v /boot/initramfs-$(uname -r).img $(uname -r)

    3) 重启系统至文本模式,init 3 这个可以修改/etc/inittab 文件 init 3是文本模式,

    init 5是图形界面模式.重启之后,进入文本模式,其实可以发现字体变大了,也就是说驱动没有被加载,成功禁用了Nouveau

    4)检查nouveau driver确保没有被加载!(如果启动黑屏,可以记下IP,用crt登录进去)

    $ lsmod | grep nouveau

    5) 运行安装文件

    $ sudo ./NVIDIA-Linux-x86_64-195.36.15-pkg2.run

    sh NVIDIA-Linux-x86-275.09.07.run

猜你喜欢

转载自blog.csdn.net/weixin_38200154/article/details/88418663