mdadm-4.4

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-475

### Chapter 5. File Systems and Disk Management

- Prev

  About RAID

- Next

  ntfs-3g-2026.2.25

- Up
- Home

# mdadm-4.4

## Introduction to mdadm

The mdadm package contains administration tools for software RAID.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-4.4.tar.xz

- Download MD5 sum: c4bb72fdded17c9d74fcdd4a0896c97a

- Download size: 456 KB

- Estimated disk space required: 5.5 MB

- Estimated build time: 0.1 SBU

### mdadm Dependencies

#### Optional

An MTA

## Kernel Configuration

Enable the following options in the kernel configuration and recompile the kernel, if necessary. Only the RAID types desired are required.

    Device Drivers --->
      [*] Multiple devices driver support (RAID and LVM) --->                   [MD]
        <*/M>   RAID support                                            [BLK_DEV_MD]
        [*]       Autodetect RAID arrays during kernel boot          [MD_AUTODETECT]
        # Only the RAID types desired are required:
        < /*/M> RAID-0 (striping) mode                                    [MD_RAID0]
        < /*/M> RAID-1 (mirroring) mode                                   [MD_RAID1]
        < /*/M> RAID-10 (mirrored striping) mode                         [MD_RAID10]
        < /*/M> RAID-4/RAID-5/RAID-6 mode                               [MD_RAID456]

## Installation of mdadm

Fix a build error introduced by gcc-15:

    sed -e "s/__u8 signature\[4\]/& __attribute__ ((nonstring))/" \
        -i platform-intel.h

Build mdadm by running the following command:

    make

This package does not come with a working test suite.

Now, as the `root` user:

    make BINDIR=/usr/sbin install

## Command Explanations

make everything: This optional target creates extra programs, particularly a statically-linked version of mdadm. This needs to be manually installed.

## Contents

Installed Programs: mdadm and mdmon
Installed Libraries: None
Installed Directory: None

### Short Descriptions

mdadm | manages MD devices aka Linux Software RAID
mdmon | monitors MD external metadata arrays

- Prev

  About RAID

- Next

  ntfs-3g-2026.2.25

- Up
- Home