Skip to main content

Install AMD RYZEN FakeRaid Driver (rcraid) on Debian 11 (PVE 7)

Today I’m trying to use ASUS TUF GAMING B450M-PRO S’s buildin SATA RAID (Fake RAID) to create RAID 0 disk on my PVE homelab.

I follow the ASUS’s BIOS Fake RAID manual to setup the RAID 0, but I cant see the RAID disk by useing fdisk -l on PVE system.

After search the reason on the Internat, I know that I should insmod AMD RAID driver which named rcraid. You can refer to the following steps:

Method 1: compile it yourself

1. Install depends

1.1. Install headers

Follow the pve repostories wiki, edit /etc/apt/sources.list.d/pve-enterprise.list, change to pve-no-subscription

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
apt install pve-headers-$(uname -r)
1.2. Install Other Depends
apt install sudo build-essential unzip git

2. Download AMD Raid Driver

https://www.amd.com/en/support/chipsets/amd-socket-am4/x370

Although this driver is compatible with X370 chipset.

But is also working for my B450 chipset.

mkdir -pv rcraid && cd rcraid
cp -v ../raid_linux_driver_8_01_00_039_public.zip ./
unzip raid_linux_driver_8_01_00_039_public.zip

3. Download Patch

This driver code can’t be compiled under kernel 5.11.22-1-pve, we should use the aur rcraid-dkms package patch.

git clone https://aur.archlinux.org/rcraid-dkms.git
cd driver_sdk/src
ls ../../rcraid-dkms/*.patch | xargs -i sh -c 'patch -p1 <{}'

4. Compile driver and install

cd ..
sudo ln -sv /usr/src/linux-headers-$(uname -r)/ /lib/modules/$(uname -r)/build
sudo bash ./install
sudo reboot

Method 2: use prebuild ubuntu package

Change repostory

edit /etc/apt/sources.list.d/pve-enterprise.list:

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise

edit /etc/apt/sources.list.d/rcraid.list:

deb [trusted=yes] http://ppa.launchpad.net/thopiekar/rcraid/ubuntu hirsute main

Install rcraid-dkms package:

apt update
apt install rcraid-dkms pve-headers-$(uname -r) # or pve-headers

Update grub:

Append modprobe.blacklist=ahci to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub

then run:

update-grub
reboot

Ref

  1. https://www.kwikr.de/Howto_Windows_Ubuntu_AMD-RAID.html#sec-1-6
  2. https://www.kwikr.de/Howto_Windows_Ubuntu_AMD-RAID.html#sec-1-1-3
  3. https://aur.archlinux.org/packages/rcraid-dkms/
  4. https://github.com/thopiekar/rcraid-dkms