replace graphics card drivers from USB bootstick?

Issues related to hardware problems
Post Reply
GoneFishin
Posts: 3
Joined: 2015/06/18 20:42:58

replace graphics card drivers from USB bootstick?

Post by GoneFishin » 2015/06/18 20:56:58

How can I replace nouveau drivers with NVidia drivers from a usb bootstick that has CentOS 7 on it?

When I attempt to boot CentOS 7 to a machine with an NVIDIA graphics card using a boot stick, the boot attempt fails with the message "Unknown Maxwell Chipset". I have read other reports on this site including viewtopic.php?f=49&t=48563 which describes replacing the nouveau drivers with NVIDIA drivers. The other posting that they hope support for Maxwell/NVIDIA drivers will be a part of CentOS 7.1, but I downloaded CentOS 7 a few days ago from http://www.centos.org/download. Is there a newer ISO download that supports the Maxwell chipset? Otherwise, I need a workaround using the shell as follows:

In my case, the boot failure generates the http://man7.org/linux/man-pages/man8/dracut.8.html. It also gives the path of a log file, and the ability to run journalctl, but I do not know how to save those logs to a disk for printing from windows.

How can I use the Dracut Emergency Shell to install the NVIDIA drivers required to resolve this error? A series of specific code lines to type into the Dracut Emergency Shell would be an answer.

I found http://www.advancedclustering.com/act-k ... l-centos-7 which lists the following steps for replacing the nouveau drivers with the NVidia drivers:

•yum -y update
•yum -y groupinstall “GNOME Desktop” “Development Tools”
•yum -y install kernel-devel
•Edit /etc/default/grub. Add “rd.driver.blacklist=nouveau nouveau.modeset=0″ to “GRUB_CMDLINE_LINUX”
•grub2-mkconfig -o /boot/grub2/grub.cfg
•List available kernels: awk -F\’ ‘$1==”menuentry ” {print $2}’ /etc/grub2.cfg
•Use grub2-set-default to set the updated kernel to the default. The kernels are enumerated starting at 0
•Reboot
•Download the appropriate Nvidia driver for your card
•Switch from graphical to text mode: systemctl isolate multi-user.target
•Run the Nvidia driver installer
•Remove the nouveau driver: yum remove xorg-x11-drv-nouveau
•Backup old the old initramfs: mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
•Create new initramfs: dracut /boot/initramfs-$(uname -r).img $(uname -r)
•Reboot

The problem is that most of the above commands are not available in the Dracot Emergency Shell. So the need is to translate the above commands into Dracut-friendly syntax.How do I make the translation?

A complete list of commands accepted by the Dracut Emergency Shell is as follows:

Code: Select all

  
    !
    ./
    :
    [
    [[
    ]]
    alias
    arping
    basename
    bash
    bg
    bind
    biosdevname
    blkid
    blockdev
    brctl
    break
    btrfs
    btrfs-zero-log
    btrfsck
    builtin
    caller
    case
    cat
    cd
    checkisomd5
    chroot
    command
    compgen
    complete
    compopt
    continue
    coproc
    cp
    crypt-run-generator
    crypt-root-ask
    cryptsetup
    dcbtool
    dd
    declare
    dhclient
    dhclient-script
    dirs
    disown
    dmesg
    dmeventd
    dmraid
    dmraid_scan
    dmsetup
    dmsquash-live-root
    do
    done
    dracut-cmdline
    dracut-cmdline-ask
    dracut-emergency
    dracut-initqueue
    dracut-mount
    dracut-pre-mount
    dracut-pre-pivot
    dracut-pre-pivot
    dracut-pre-pivot
    dracut-pre-trigger
    dracut-pre-udev
    e2fsck
    echo
    elif
    else
    enable
    esac
    eval
    exec
    exit
    export
    false
    fc
    fcoe-edd
    fcoe-genrules.sh
    fcoe-up
    fg
    fi
    findmnt
    fipvlan
    flock
    for
    fsck
    fsck.btrfs
    fsck.cramfs
    fsck.ext2
    fsck.ext3
    fsck.ext4
    fsck.fat
    fsck.minix
    fsck.msdos
    fsck.vfat
    fsck.xfs
    function
    getopts
    grep
    gzip
    halt
    hash
    help
    history
    hostname
    if
    ifup
    in
    init
    initqueue
    insmodpost.sh
    ip
    iscsi-iname
    iscsiroot
    iscsistart
    iscsiuio
    iso-scan
    jobs
    journalctl
    kbd_mode
    kexec
    kill
    kmod
    kpartx
    less
    let
    llpad
    lldptool
    ln
    loadkeys
    local
    loginctl
    loginit
    logout
    losetup
    ls
    lvm
    lvm_scan
    mapfile
    mdadm
    mdman
    mdraid-cleanup
    mdraid_start
    mkdir
    mkfifo
    mknod
    modprob
    mount
    mpathpersist
    multipath
    multipathd
    mv
    netroot
    nologin
    partx
    pdata_tools
    ping
    ping6
    Plymouth
    plymouthd
    popd
    poweroff
    printf
    probe-keydev
    ps
    pushdev
    pwd
    rdsosreport
    read
    readarray
    readlink
    readonly
    reboot
    return
    rm
    rmdir
    rmmod
    sed
    select
    set
    setfont
    setsid
    sh
    shift
    shopt
    sleep
    source
    stty
    suspend
    swapoff
    systemctl
    systemd-ask-password
    system-cgls
    system-run
    system-tmpfiles
    system-tty-ask-password-agent
    teamd
    teamdctl
    teamnl
    test
    then
    thin-check
    thin-dump
    thin-repair
    thin-restore
    time
    times
    tr
    trap
    true
    type
    typeset
    udevadm
    ulimit
    umask
    umount
    unalias
    uname
    unset
    until
    vi
    wait
    while
    xfs_db
    xfs_metadump
    xfs_repair
    {
    }

Finally, if there is an easier way to install CentOS 7 from a bootstick onto a machine with an NVIDIA graphics card, please let me know. The above is just my work so far from the research I have been able to do.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: replace graphics card drivers from USB bootstick?

Post by TrevorH » 2015/06/18 21:39:44

Sounds like you need to boot in command line only mode, not in dracut rescue mode. Once there, install the ELRepo third party yum repository and then use yum to install nvidia-detect which will tell you the correct nvidia package to install - most likely kmod-nvidia but not necessarily so.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

GoneFishin
Posts: 3
Joined: 2015/06/18 20:42:58

Re: replace graphics card drivers from USB bootstick?

Post by GoneFishin » 2015/06/18 22:09:11

Thank you, TrevorH.

How do I boot in command line only mode? Also, can you please list the exact syntax of the series of commands that you recommend?

Example:
1.) Boot in command line only mode by taking a, b, c explicit steps.
2.) yum install ELRepo third party (but in correct syntax)
3.) yum install NVidia-detect
4.) yum install whatever NVidia-detect indicated
etc...

Like many users of this site, I am still learning CentOS, so explicit steps really help. Thank you.

GoneFishin
Posts: 3
Joined: 2015/06/18 20:42:58

Re: replace graphics card drivers from USB bootstick?

Post by GoneFishin » 2015/06/18 23:01:44

@TrevorH :

I tried to start CentOS 7 in command line only mode but failed. Here are the steps that I took:

1.) Insert USB boot stick
2.) Turn on power for pc
3.) Press esc every second until a list of options appears
4.) Press F9: Boot Device Options
5.) Three options appear:
a.) OS Boot Manager (UEFI) Windows Boot Manager
b.) USB Hard Drive (UEFI) PNY USB 2.0 FD
c.) Boot From EFI File
6.) I selected USB Hard Drive (UEFI) PNY USB 2.0 FD
7.) The computer tried to boot CentOS but crashed in the manner described in my OP. Pressing esc repeatedly did not stop this on a second try either.

What do I need to do differently?

Post Reply