Recently, since I bought during my last computer’s upgrade an ASUS X470 board, I noticed first of all that drivers for the controller were not distributed nicely.
When thinking of the fun I had in the past with my ASUS T91’s graphics driver (Intel EMGD for GMA500), it looks like the chip manufacturers still don’t understand how to ship kernel drivers in a smart way.
As the drivers have been distributed in their source code and the I/O API in the kernel changes from time to time, it needs a system within the operating system, which recompiles the kernel driver automatically. This is why DKMS has been developed. Since the kernel headers, which are needed during compilation it is possible to use one source code of a driver with some if-clauses across different kernel versions. That is due to the fact that the kernel’s version is included in the headers and during compilation time the version can be checked.
So I began to prepare such a DKMS package and together with other people on the internet, I keep the package up-to-date with patches and improvements.
Today I’m using the driver daily together with a RAID1 on two hard drives to feel a bit more sure that my important development files are (more) safe.
How to install Ubuntu on an existing RAID array
- Create a USB installer as usual. Download an ISO and use the USB installer creator provided by Ubuntu.
- Go to launchpad.net and visit the PPA there. Download the rcraid-dkms package and drop the file on a second USB stick.
- Reboot and start from the USB install media.
- Choose to try Ubuntu/Kubuntu/whatever
- Open a terminal
- Do a “sudo apt update”
- Do a “sudo apt install dkms”
- From the second USB drive install the Debian package via “sudo dpkg -i <path to your deb>”
- Unload the “ahci” kernel driver (or do it even twice to be sure). Use “sudo rmmod ahci” for it.
- Unload the “rcraid” driver just as above.
- Reload the “rcraid” driver with “sudo modprobe rcraid”
- Double check via “dmesg” whether your drives have been found.
- Do the installation of Ubuntu as usual.
- Do not reboot! You need to chroot into your fresh installation, add the rcraid PPA and install the rcraid-dkms package. I’m not giving further instructions on this. Be creative! 😉