mdadm: /etc/mdadm/mdadm.conf defines no arrays

Good day my dear Linux Yogi’s,

I am going to show you in this illustration how to get rid of this error message. By default Ubuntu Server installs the mdadm in order to manage software raid arrays and it can get a little annoying to get the following error message:

W: mdadm: /etc/mdadm/mdadm.conf defines no arrays

If you don’t use and not planing on using software based raid arrays on your system I would recommend that you remove that package in order to get rid of the error message.

There are two ways to get rid of it. The first one I am showing you is the quick and dirty way and the second one is the better way.

Quick and Dirty

Run the following two commands below.

sudo apt-get remove mdadm
sudo apt-get purge mdadm

The first command will just remove the mdadm package and the second command  removes all the leftovers from that package.

Better Way

Run the following two commands below.

sudo apt-get remove --auto-remove mdadm
sudo apt-get purge --auto-remove mdadm

The first command will remove the mdadm package and all dependencies which is much cleaner that way and the second command purges all leftovers like configuration files of all those packages.

I suggest you reboot the system for a clean system state with the changes we just did.

Thank you for reading this illustration. If you like me to illustrate something you like to see please don’t hesitate to send me an email with my contact form or just leave a comment on my blog.

Until next time, Namaste my friends đŸ˜‰