Hey @zagor,
Well, you asked for it - your determination is commendable.
To enable software RAID 1 on your Volumio PC, youâll build a custom kernel with md_mod
and raid1
support. This is not officially supported, and itâs an advanced operation intended for users comfortable with Linux kernel internals.
First and most important: Read the Docs
Before you begin, study the README from the official Volumio x64 kernel build system here:
https://github.com/volumio/build-platform-x64
The README contains essential information about:
- How the build process works
- What each configuration file does
- How patching and kernel options are handled
- What changes are preserved vs temporary
- And where artifacts are placed
Do not skip this. The script does not behave like generic kernel build systems - it is structured specifically for Volumioâs modular platform and firmware layout.
Steps overview
- Clone the Volumio x86 platform builder
- Adjust the kernel version and enable RAID config options
- Run
./mkplatform.sh
to build .deb
packages
- Install those on your Volumio PC
Step-by-Step summary
1. Clone the repo:
git clone https://github.com/volumio/build-platform-x64 --depth 1
cd build-platform-x64
2. Configure the kernel version and platform branch:
Edit config/config.x64
:
KERNELBRANCH="6.6.y"
PLATFORMREPO_BRANCH="master"
Leave CONFIGURE_KERNEL
set to no
unless you intentionally want an ncurses
menu session.
3. Modify the kernel config:
Edit:
config/amd64-volumio-min-6.6.y_defconfig
Add the following for RAID 1 support:
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_AUTODETECT=y
CONFIG_MD_RAID1=m
This file must be edited manually - the build system will use it directly.
4. Build the kernel:
./mkplatform.sh
When prompted for patching, just press Enter unless youâre testing additional source modifications.
The resulting .deb
packages will appear under:
out/x86_amd64/debian/
5. Transfer and install the kernel:
Copy the .deb
files to your Volumio system and run:
sudo dpkg -i linux-headers-*.deb linux-image-*.deb
sudo reboot
After reboot, confirm the kernel version:
uname -r
Then load the module:
sudo modprobe md_mod
You should now be able to run your mdadm --create
command without error.
CAUTION
This is a custom kernel. If something breaks - audio, boot, storage, or even your neighborâs BBQ - youâre on your own. The Volumio team does not support this officially.
However, if youâre methodical and have backups (as you said), this is a great way to extend your systemâs capabilities.
Let us know how the build and install goes.
Kind Regards,