DiyMediaServer
Featured image of post Master the Basics - MergerFS the Best Way to Combine Drives for Your Home Media Server

Master the Basics - MergerFS the Best Way to Combine Drives for Your Home Media Server

Combine Multiple Drives into One Seamless Storage Pool Without RAID or Complexity

What if you could combine every mismatched drive in your server into one pool? If you’re like me, you buy hard drives whenever you find the best price per terabyte. Over time, that leaves you with a pile of different-sized disks and a storage layout that’s a mess. Media files end up scattered across drives, and tracking down where anything lives turns into a chore. That’s what MergerFS fixes.

MergerFS combines drives into a single mount point without RAID and without the risk of losing everything if one disk dies. It plays nicely with Sonarr, Radarr, and Jellyfin out of the box.

In this guide I’ll explain how MergerFS works, walk through the configuration I run, and show you how to install it on a Linux media server. By the end you’ll have one tidy storage pool that uses every gigabyte you bought.

Here’s the kind of mismatched mess MergerFS handles without complaint:

  • Seagate BarraCuda 8TB Internal Hard Drive
  • Western Digital 14TB Internal Hard Drive
  • Toshiba N300 12TB Internal Hard Drive

Any combination of capacities works. MergerFS doesn’t care if the sizes match. That’s the whole point.

Seagate Barracuda 24TB Internal Hard Drive

Seagate Barracuda 24TB Internal Hard Drive

Contains affiliate links. I may earn a commission at no cost to you.

When you’re ready to add a fresh disk to the pile, something like the 24TB Barracuda above slots in next to your existing mismatched drives. No reformatting, no array rebuild, no drama. Mount it, add it to the pool, done.

What is MergerFS and Why Do You Need It?

MergerFS is a union filesystem for Linux that combines multiple storage devices into a single mount point. Instead of juggling separate drives, you access everything from one unified path. Compared to RAID, MergerFS is:

  • Flexible - Add or remove drives anytime. No array rebuild.
  • Safe - If a drive dies, you only lose what was on that drive. The rest of the pool keeps working.
  • Simple - Works with standard filesystems like ext4, XFS, and Btrfs.
  • Transparent - Pull a drive out, plug it into any Linux box, and the files are still there as plain files on a regular filesystem.

How It Works

Think of MergerFS as a smart directory overlay. It doesn’t move files or create duplicates. It shows you a virtual filesystem where every drive looks like one.

For example, if you have:

  • /mnt/disk1/Movies/
  • /mnt/disk2/Movies/
  • /mnt/disk3/Movies/

MergerFS lets you access everything under:
/mnt/storage/Movies/

Apps like Jellyfin and Sonarr only need to look in one place. They don’t care which physical disk a file actually lives on.

How to Install MergerFS on Your Linux Server

MergerFS is in the package repos for most Linux distributions. Here’s how to install it on Debian-based systems (Ubuntu, Proxmox, etc.) and Arch Linux.

Install on Ubuntu/Debian

First, update your package list and install MergerFS:

sudo apt update && sudo apt install mergerfs -y

The version in your distro’s repo is sometimes a release or two behind. For most home media setups that’s fine. If you want the latest features, grab the .deb from the official MergerFS releases page.

Verify Installation

Once installed, check the version to confirm it’s working:

mergerfs -V

If you get a version string back, you’re good. If you get “command not found”, the package didn’t install. Check your repo configuration and try again.

Best MergerFS Configuration for a Home Media Server

Setting it up correctly is what makes the difference between a pool that quietly works and one that fights your media apps. Here’s the setup I run.

Step 1: Mount Your Drives

Before configuring MergerFS, your drives need to be mounted. List what’s connected with:

lsblk -o NAME,FSTYPE,MOUNTPOINT,SIZE

If your drives are /dev/sdb1 and /dev/sdc1, create mount points:

sudo mkdir -p /mnt/disk1 /mnt/disk2

Then mount them manually (replace ext4 with your actual filesystem type):

sudo mount -t ext4 /dev/sdb1 /mnt/disk1
sudo mount -t ext4 /dev/sdc1 /mnt/disk2

While you’re here, grab the UUIDs with sudo blkid and use those in /etc/fstab instead of /dev/sdX paths. Drive letters can shuffle around between reboots. UUIDs don’t.

Step 2: Create a MergerFS Pool

Make a directory for the pooled mount:

sudo mkdir -p /mnt/storage

Then mount the drives through MergerFS:

sudo mergerfs -o defaults,allow_other,use_ino,cache.files=off,dropcacheonclose=true,minfreespace=50G,category.create=mfs /mnt/disk* /mnt/storage

Understanding the Options

Here’s what each option does:

  • allow_other - Lets other users (Jellyfin, Sonarr, your Docker containers) access the files.
  • use_ino - Makes MergerFS report consistent inode numbers across the pool, which keeps hardlinks and rsync happy.
  • cache.files=off - Disables FUSE page caching. Better for large media files and avoids stale-cache surprises.
  • dropcacheonclose=true - Drops cached pages when a file handle closes. Pair this with cache.files=off.
  • category.create=mfs - New files land on the drive with the most free space.
  • minfreespace=50G - Stops writing to a disk once it has less than 50GB free. Leaves headroom for the filesystem.

Step 3: Make the MergerFS Mount Permanent

Edit /etc/fstab so the pool comes back on every boot:

sudo nano /etc/fstab

Add this line at the bottom (adjust paths as needed):

/mnt/disk* /media/Storage fuse.mergerfs direct_io,defaults,allow_other,noforget,dropcacheonclose=true,category.create=mfs,minfreespace=50G,fsname=storage 0 0

Save and exit (CTRL+X, then Y and ENTER).

Reload the fstab so the new entry takes effect:

sudo mount -a

Confirm it mounted with mount | grep mergerfs or df -h /media/Storage. If you see the pool listed and the size adds up to your combined drives, you’re done.

Optimizing MergerFS for Media Servers

Now that the pool is running, here’s how to tune it for media work.

Best category.create Policy

The category.create option controls where new files land.

  • mfs (Most Free Space) - Best for spreading files across drives evenly.
  • epmfs (Existing Path, Most Free Space) - Keeps related files together. Good if you want a whole TV show season on the same disk.
  • lus (Least Used Space) - Fills one drive before moving to the next. Useful if you want to spin down idle disks.

For most media servers, mfs is the right call. It balances usage and keeps any single drive from filling up first.

Handling Deleted Files

When you delete a file from the pool, MergerFS removes it from the drive that actually held it. If a deleted file looks like it’s still hanging around, drop the filesystem cache:

sync && echo 3 | sudo tee /proc/sys/vm/drop_caches

That clears the kernel’s page cache and forces the next directory listing to read fresh from disk.

Why MergerFS is Perfect for Home Media Servers

MergerFS is the right call for combining mismatched drives into one storage pool. It’s flexible, quick to set up, and plays nicely with Jellyfin, Sonarr, and Radarr.

Key Benefits:

  • Easy Setup - No RAID configuration. No array rebuild.
  • No Total Data Loss - Each drive is a regular filesystem. Lose one and you only lose what was on it.
  • Flexible Expansion - Add or pull drives whenever you need.
  • Built for Media Servers - Works with Jellyfin, Proxmox, and Docker without fighting them.

Tired of juggling individual disks? Install MergerFS, set it up the way I showed above, and get on with watching your media.

Was this useful?

Last updated on May 17, 2026 06:05 MDT