Creating a RAID5 with mdadm

I like Linux and I like never running out of hard drive space. Naturally, mdadm and I are best friends.

First, make sure you have what I’ll be using in this post installed.

We only use big boy drives anymore, so stop wasting time with fdisk. ┬áIt’s time to start using parted for all your drive partitioning needs.
Replace sdb with your drive in the following snippets. Run these commands for all the drives you’ll want in your RAID.

Your drives are now ready for use by mdadm, so create the RAID! Obviously alter the following for your drives.

Monitor mdadm’s progress!

Once that’s done, we can create a file system on top of the RAID.

And once the file system creation is complete, you can mount your RAID!

RAID space
You should see your new RAID’s space. Now enjoy not running out of disk space!