Giter Club home page Giter Club logo

rcraid-dkms's Introduction

rcraid-dkms

AMD RAIDXpert driver as DKMS package

Foreword:

Many AMD mainboards for the AM4 socket based on the following chipsets come with RAID support:

  • X370
  • X399
  • X470
  • X570

But this RAID mode, which needs to be set in the BIOS, requires a specific driver for each OS. There is a driver for Windows, but for Linux AMD provides either a binary blob or the sources. When following the instructions, you will need to recompile the driver and install the kernel module on each kernel update and/or upgrade. Since we are in the 21 century and we have software like DKMS, we don't need to do this manually, but let it happen automatically.

Goal

Therefore we try here to keep the code alive for many kernel versions as possible and deliver it within a PPA for Ubuntu as a DKMS package.

Installation

Debian/Ubuntu

  • Driver package for Ubuntu: https://launchpad.net/~thopiekar/+archive/ubuntu/rcraid
    sudo add-apt-repository ppa:thopiekar/rcraid
    sudo apt-get update
    sudo apt-get install rcraid-dkms
  • Switching to RAID mode:
    • Boot Linux in AHCI mode.
    • Append modprobe.blacklist=ahci to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub
    • Run sudo update-grub
    • Restart
    • Switch to RAID mode
    • Boot your Linux installation from a RAID disk

Arch/Manjaro

  • Download and unpack zip or:
  git clone https://github.com/thopiekar/rcraid-dkms.git
  • From inside "arch" directory:
  makepkg -si
  • This will compile sources and install package for current running kernel. If you need to make package for different kernel then you can use KVERS option. After installing edit /etc/mkinitcpio.conf and add
  MODULES=(rcraid?)
  • Then rebuild your initrd f.e.:
  mkinitcpio -p linux56

Note: If you just planning on switching to rcraid, my advice is: don't. Support from AMD for Promontory raid on Linux is pretty much non-existent. You will be way better off sticking with mdadm, zfs or lvm.

If you REALLY want this to dual-boot Linux/Win, also don't. Setting up virtualization with KVM with GPU Passtrough today is really simple, and you will not need to boot Windows directly on your hardware ever again.

Sidenote: If you decide to use rcraid regardless you might want to also install RAIDXpert. Web interface isn't working properly on Manjaro, but rcadm is more or less is.

Sidenote 2: If you ever decide to switch from rcraid to something else, you may find it useful to know that deleting arrays only removes metadata. Partitions are still there, and can be recovered with gdisk, gpart etc. I found out that offset for partitions is 1069056 sectors (512B). So if you have partition starting at usual 2048 it will be at 1071104 after array deletion.

Further info

Thanks go to..

rcraid-dkms's People

Contributors

thopiekar avatar herrie82 avatar irega avatar mbana avatar trojan577 avatar misiektw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.