NVIDIA: could not open the device file /dev/nvidia2 (Input/output error)

把机器上的 GTX470 换下,上古老的 GTX295,开机后发现死活只能认出两块卡,其他机器都没问题怎么唯独这个不行?xorg.conf 改了无数遍也没效果,正准备换回来的时候发现这货上面装的 Ubuntu 竟然还是32位的,Google 一单发现问题所在:”The error happens on 32 bit linux systems when you try to initiate more graphic cards than the kernel can allocate memory for. This does not happen on 64 bit systems.” 看来这是32位独占 bug 呀!

知道问题所在,解决起来就比较简单了,加载内核的时候指定 vmalloc 参数。

vim /etc/default/grub

找到 GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”,在后面添加 vmalloc=256M

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vmalloc=256M"



One thought on “NVIDIA: could not open the device file /dev/nvidia2 (Input/output error)”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.