CasaOS Merge Storage Not Working: Disk and fstab Fixes

CasaOS storage disks and mount points on a self-hosted server

If CasaOS shows a merged pool with the wrong capacity, apps cannot write to it, or files disappear after reboot, the merge is not reaching the disks you expect. A common cause is a source drive that did not mount before the pool or Docker apps started; a conflicting manual /etc/fstab entry can cause the same symptom.

Why this happens

CasaOS uses MergerFS to present selected mounted directories as one view; it does not combine disks like RAID, and a pool by itself is not a backup. When a source path is absent or mounted somewhere different, the pool may show incomplete space or writes may land on the underlying filesystem. The exact storage controls vary by CasaOS release, so check your model’s menu and installed version.

  • A disk is not mounted, is mounted under a different path, or has a changed device identifier.
  • A manual fstab mount overlaps a CasaOS-managed mount or starts in the wrong order.
  • The container’s host volume, user permissions, or filesystem support prevents writes.

1. Confirm that Linux sees every disk

SSH into the host and run lsblk -f. Identify each expected disk by filesystem, label, UUID, and mount point; do not assume a disk is still /dev/sdb after reconnecting it. Then run findmnt and df -hT. Each source directory selected for the merge should resolve to the intended mounted filesystem, with plausible size and free space. If the drive is missing from lsblk, check its cable, enclosure, power, and host hardware before changing CasaOS.

2. Check the CasaOS storage selection

In the CasaOS dashboard, open Storage or the storage management area, then inspect the drive list and merge configuration. Menu labels differ between releases. Confirm the expected volumes are selected and shown as available, and that the displayed pool path matches the location you use in Files or app settings. If a drive is listed but not mounted, mount it through the available storage controls first; don’t format it as a troubleshooting step because formatting erases data.

3. Look for an fstab conflict

Inspect persistent mounts with grep -v '^[[:space:]]*#' /etc/fstab. Check for duplicate entries, stale UUIDs, a source disk mounted at a path CasaOS also uses, or a MergerFS pool mounted over the CasaOS merge target. CasaOS releases can manage merge state differently, so don’t add a generic MergerFS line to fstab without confirming how your installation handles the pool.

For ordinary disk mounts you intentionally manage in fstab, back up the file, verify each UUID with blkid, and test edits using sudo mount -a. A successful command with no output is a useful sign, but also verify with findmnt. If it reports an error, correct the entry before rebooting; an invalid fstab can interrupt startup.

4. Check the pool and mount order

Run findmnt -t fuse.mergerfs to see whether a MergerFS pool is mounted, then inspect its source and target. If a source disk is mounted after the pool, the merge may see an empty directory instead of the disk contents. Correct the underlying disk mount and the CasaOS merge configuration using the controls for your release. Don’t manually unmount a live pool while Docker apps are writing to it.

5. Test write access on the host

Use namei -l /path/to/merge to inspect permissions on each directory in the path. Then test with the account that needs access, replacing the example path and username: sudo -u USER touch /path/to/merge/.write-test. If it fails with “Permission denied,” correct ownership or permissions on the source filesystem and parent directories for the actual service account. Remove the test file after confirming it works. Avoid broad chmod 777 changes, which grant unnecessary access.

6. Verify the Docker volume points to the pool

In CasaOS, open the affected app’s settings and inspect its Volumes or storage mappings. Check that the host path is the real merged directory, not an old mount path or an empty directory beneath it; confirm the container path is where the application expects its data. Restart the app after correcting a mapping. A file created through the container should appear in the corresponding host directory, and available space should match the backing filesystem behavior.

7. Check startup behavior and logs

After confirming mounts and configuration, reboot during a maintenance window and run findmnt and df -hT again. Verify the source disks and pool return before relying on auto-started apps. For service clues, use systemctl --failed and journalctl -b; on systems with a CasaOS local storage service, inspect its journal with systemctl list-units '*local-storage*' followed by journalctl -u SERVICE_NAME -b, substituting the unit name shown on your host.

CauseSymptomQuick test
Source disk did not mountPool capacity is missing or files vanish after rebootfindmnt and df -hT
fstab overlap or stale UUIDMount failure or unexpected empty pathReview fstab and run sudo mount -a
Container path or access issueHost sees files, app cannot read or writeCheck app volume mapping and test write access

FAQ

Why does CasaOS merge storage show the wrong size?

One or more source filesystems may not be mounted, or the merge may include a path on the system disk instead of the intended drive. Compare each source path with findmnt and df -hT, then check the selected volumes in CasaOS.

Does CasaOS merge storage need an fstab entry?

Not necessarily. Some CasaOS versions manage the merge through their storage service, while fstab is commonly used for separately managed disk mounts. Check your installed release and avoid defining a second pool mount that conflicts with CasaOS.

Why can Jellyfin or Immich not write to the merged disk?

The app may map the wrong host directory, or its container user may lack permission on the mounted filesystem. Verify the app’s volume mapping and test access as the relevant host account before changing permissions.

Once the disks, pool, and app mappings agree, confirm the result after a reboot and check that a test file persists on the expected drive. If the merge still fails, save the output of lsblk -f, findmnt, and the relevant service journal, then compare it with guidance for your CasaOS release before altering the pool or formatting any disk.

Photo: Trique303 / CC BY-SA 4.0 (Wikimedia Commons)

Leave a Comment

Immich Thumbnails Broken After Update: Rebuild Guide

Immich Thumbnails Broken After Update: Rebuild Guide

Fix the immich thumbnail error loading image after an update by checking storage, permissions, and jobs, then safely rebuild missing thumbnails in Immich.

Plex Database Corruption on Unraid: Root Cause Guide

Plex Database Corruption on Unraid: Root Cause Guide

Fix plex database keeps getting corrupt unraid by checking storage health, filesystem errors, write access, and Plex’s database before restoring a clean backup.

Pi-hole Not Answering DNS: Upstream and Port Checks

Pi-hole Not Answering DNS: Upstream and Port Checks

Fix pihole not responding to dns requests by checking client settings, port 53 conflicts, Pi-hole’s DNS service, upstream reachability, and firewall rules.

CasaOS Merge Storage Not Working: Disk and fstab Fixes

CasaOS Merge Storage Not Working: Disk and fstab Fixes

Fix casaos merge storage not working by checking disk mounts, mergerfs, permissions, app paths, and fstab conflicts on your self-hosted server.

Nextcloud Snap Stuck in Maintenance Mode: Safe Fix

Nextcloud Snap Stuck in Maintenance Mode: Safe Fix

Nextcloud Snap stuck in maintenance mode? Check background jobs, disk space, and snap logs, then safely identify and clear the maintenance flag.

Immich Error Loading Image: Thumbnail and EXIF Fixes

Immich Error Loading Image: Thumbnail and EXIF Fixes

Fix immich error loading image after upload by checking thumbnail jobs, storage permissions, image files, and EXIF processing in your self-hosted Immich server.

Jellyfin Container Stuck Restarting: Compose Debug Guide

Jellyfin Container Stuck Restarting: Compose Debug Guide

Fix jellyfin container stuck on restarting in Docker Compose: inspect logs, verify config volume permissions, correct mounts, and isolate common startup failures.

Jellyfin Error Opening File for Writing: Permissions

Jellyfin Error Opening File for Writing: Permissions

Fix jellyfin error opening file for writing by checking the Jellyfin service account, media mount permissions, container UID/GID, and storage health.

TrueNAS SCALE Stuck on Welcome to GRUB: Boot Fixes

TrueNAS SCALE Stuck on Welcome to GRUB: Boot Fixes

Fix truenas scale stuck on welcome to grub by checking boot media, firmware mode, pool health, and boot environments before attempting a careful reinstall.

Unraid Docker execution error 403: Appdata Permissions

Unraid Docker execution error 403: Appdata Permissions

Fix unraid docker execution error 403 by checking appdata ownership, container paths, Docker settings, and Unraid’s web session before changing permissions.