Skip to content

Instantly share code, notes, and snippets.

@gdkrmr
Created April 30, 2021 16:01
Show Gist options
  • Save gdkrmr/e9acb2de85813373bd14ec3df8a60241 to your computer and use it in GitHub Desktop.
Save gdkrmr/e9acb2de85813373bd14ec3df8a60241 to your computer and use it in GitHub Desktop.
Installing AMD RAID on a p620 after the fact

Some preliminary advice

How to make it work

  • Download the drivers from the Lenovo Support website
  • go to the driver directory and the ubuntu driver subdirectory
chmod u+x load_amdraid
cp load_amdraid /usr/share/initramfs-tools/scripts/init-premount/                               

Edit /etc/default/grub and blacklist ahci and nvme:

GRUB_CMDLINE_LINUX_DEFAULT="modprobe.blacklist=ahci,nvme" 

Generate the GRUB config

grub-mkconfig -o /boot/grub/grub.cfg
RELEASE=$(uname -r)                                                                               
depmod -a $RELEASE                                                                               
mkinitramfs -o /boot/initrd.img-$RELEASE $RELEASE                                                

This blacklists SATA and NVME devices!!!! The os will NOT boot if the raid driver fails to load!

The raid arrays will show up as /dev/sdX! For mounting see the non-raid

@gdkrmr
Copy link
Author

gdkrmr commented Sep 4, 2023

There must be an official driver from AMD somewhere, maybe you could try that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment