mdadm 3.3

A tool for creating, maintaining, and monitoring Linux
mdadm is an open source utility for maintaining, creating, and monitoring Linux "md" device arrays, also known as Software RAID.

A minimal initramfs for assembling md arrays can be created using 3 files and one directory. These are:

/bin Directory
/bin/mdadm statically linked mdadm binary
/bin/busybox statically linked busybox binary
/bin/sh hard link to /bin/busybox
/init a shell script which call mdadm appropriately.

An example init script is:


echo 'Auto-assembling boot md array'
mkdir /proc
mount -t proc proc /proc
if [ -n "$rootuuid" ]
then arg=--uuid=$rootuuid
elif [ -n "$mdminor" ]
then arg=--super-minor=$mdminor
else arg=--super-minor=0
echo "Using $arg"
mdadm -Acpartitions $arg --auto=part /dev/mda
cd /
mount /dev/mda1 /root || mount /dev/mda /root
umount /proc
cd /root
exec chroot . /sbin/init < /dev/console > /dev/console 2>&1

last updated on:
September 4th, 2013, 6:21 GMT
developed by:
Neil Brown
license type:
GPL (GNU General Public License) 
ROOT \ System \ System Administration


In a hurry? Add it to your Download Basket!

user rating 25



Rate it!
1 Screenshot
mdadm - Usage example of mdadm from the command-line
What's New in This Release:
  • This significant release included improved reshape support, improved DDF support, hot replace, and bad-block-log functionality.
  • Array names can now have names (md_home) instead of just numbers (md0).
  • There were several minor new features and many bugfixes.
read full changelog

Add your review!