brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Guide: one data share on Unraid, so Sonarr and Radarr stop copying every import

Guide: one data share on Unraid, so Sonarr and Radarr stop copying every import

Guide unraid

9 steps 12 min read

Sonarr, Radarr, Prowlarr, Bazarr, SABnzbd and qBittorrent all run on my Unraid server, and the worst failure in that whole stack is the one that looks like success. Episodes get imported, Jellyfin plays them, and nothing turns red anywhere. Meanwhile every file sits on the array twice, once in the torrents folder your client is still seeding and once in your library, and the parity-protected space you paid for disappears at double speed.

Time
12 min
Steps
9
Updated
23 Nov 2026

You will learn

  • Why the copy happens at all
  • Check whether you are copying right…
  • Turn on hard link support in Global…
  • Build one share called data, with su…
  • Give every container the one mount

People go looking at permissions first. It is almost always the folder layout. If Sonarr sees your downloads and your library as two separate mounts, it cannot link a file from one to the other, so it falls back to copying 24 GB of television around your disks. The fix is one share, one mount inside every container, and a layout all the apps agree on. I would set a fresh server up this way, and I would go back and fix an old one, because you only get the disk space back once.

What you get, and what you need

When this is done, an import happens in under a second whatever the file size, your torrent keeps seeding from the same bytes, and the episode counts against your array once instead of twice. Renames stay instant too.

You need Unraid 7 (the same layout works on 6.12, only the share settings look a little different), the arr apps and your download client in Docker, and the Unraid terminal for a handful of commands. Budget an hour for a new setup. Moving an existing library takes longer and depends on how much you have.

One warning before anything else: the last step moves real files around. Nothing here deletes anything, every command that touches your library is shown with a dry run first, and I would not start it on an evening when you want to watch something.

Step 1 of 9: Why the copy happens at all

A hardlink is a second name for a file that already exists. Both names point at the same blocks on the disk, the file is counted once, and deleting one name leaves the other alone. That is what lets qBittorrent keep seeding Show.S01E01.1080p.mkv while Jellyfin plays the same bytes as Show - S01E01.mkv in your library.

That rule lives in the filesystem itself, which is why no setting in Sonarr gets around it. As TRaSH Guides puts it: “You CAN’T hardlink across separate file systems, partitions, volumes or mounts.” Inside a container, every volume mapping is a mount. Two mappings means two mounts, even when both host paths live on the same Unraid share and the same disks. The kernel refuses the link, and Sonarr does the sensible thing and copies the file instead.

Sonarr’s own help text for the hardlink setting says the same in one line: hardlinks only work when source and destination are on the same volume. So the old /downloads plus /tv template, the one most of us started with, cannot ever produce a hardlink. It is doing exactly what it was configured to do.

Two container mounts force a copy and use 48 GB; one /data mount links the file and uses 24 GB
Two mounts force a copy, one shared mount lets the link succeed

Step 2 of 9: Check whether you are copying right now

Before changing anything, find out where you stand. Matt Connor’s write-up at SSD Nodes has the quickest check I know: ask the container itself which mounts its paths are on. On Unraid, from the terminal:

docker exec -it sonarr df /downloads /tv

Use whatever container paths your Sonarr actually has. Two different values in the Mounted on column means two mounts, and no hardlink can cross them. One value for both paths means the layout is already right and your problem is elsewhere.

The second check is the log. The SSD Nodes post says you need to switch Sonarr’s logging to Trace to see the fallback, but in Sonarr’s own source the message is a warning, not a trace line. In DiskTransferService.cs the hardlink attempt falls back like this:

_logger.Warn("Hardlinking from '{0}' to '{1}' failed, fallback to copy.", sourcePath, targetPath);

So search Sonarr’s own System, Log Files page for fallback to copy before you touch the log level. If the copy mode was never allowed, Sonarr throws instead and you get a failed import rather than a quiet duplicate.

The third check is the files. Pick an episode that was imported while its torrent was still seeding and ask the filesystem:

stat "/mnt/user/media/tv/Example Show/Season 01/Example Show - S01E01.mkv"

Look at Links: in the output. A 1 means one name and one copy. A 2 or more means the file is already hardlinked and you can stop reading.

Go to Settings, Global Share Settings, and check that Tunable (support Hard Links) is enabled. It is on by default on a normal install, so this is a check rather than a change, and it is quick to rule out.

Unraid Global Share Settings with Tunable (support Hard Links) set to Yes
Global Share Settings on my server: Tunable (support Hard Links) is Yes.

This one comes from TRaSH Guides’ Unraid page rather than the Unraid manual, which does not document the tunable on its shares pages. If you ever disabled it for an SMB client that misbehaved, nothing below will work until you turn it back on.

Step 4 of 9: Build one share called data, with subfolders

The whole trick is that downloads and library live under one parent folder on one share. TRaSH Guides calls that share data and so do I. Create it in the Shares tab, then make the folders from the terminal:

mkdir -p /mnt/user/data/{torrents/{books,movies,music,tv},usenet/{incomplete,complete/{books,movies,music,tv}},media/{books,movies,music,tv}}

Which gives you this:

data
├── torrents
│   ├── books
│   ├── movies
│   ├── music
│   └── tv
├── usenet
│   ├── incomplete
│   └── complete
│       ├── books
│       ├── movies
│       ├── music
│       └── tv
└── media
    ├── books
    ├── movies
    ├── music
    └── tv

Lowercase everywhere, on purpose: Linux cares about case and one capital letter in one container’s path is a fun evening of debugging. Drop the categories you do not use.

Then the share settings. With a cache pool, set Primary storage to Cache, Secondary storage to Array and the Mover action to Cache to Array, which is the direction the Unraid manual describes for a normal cached share. Without a cache pool, Primary storage is the Array and there is no secondary. Hardlinks survive the trip to the array either way.

Unraid share settings for share_media with Cache as primary storage and Array as secondary storage
My own share is called share_media instead of data. Primary storage is Cache, secondary storage is Array.

Leave the split level alone unless you know you need it. The Unraid docs are blunt about its priority: the split level setting wins over the other allocation rules, so a strict split level on a deep media tree can push new files somewhere you did not plan for.

Step 5 of 9: Give every container the one mount

Now the part that actually fixes it. Every container gets one mapping that covers everything it touches, and the container path mirrors the host path so the apps can talk about files in the same words.

Torrent client   /data/torrents  ->  /mnt/user/data/torrents
Usenet client    /data/usenet    ->  /mnt/user/data/usenet
Sonarr, Radarr   /data           ->  /mnt/user/data
Jellyfin, Bazarr /data/media     ->  /mnt/user/data/media

Sonarr and Radarr get the whole /data because they are the ones doing the linking: they have to see the download folder and the library through a single mount. The download clients only need their own corner. Jellyfin only needs the library.

Unraid Edit Container page for Sonarr showing a single path mapping, /data to /mnt/user/share_media
The Sonarr template on my server: the only path it needs is /data, mapped to the share.

While you are in each template, delete the old mappings: /downloads, /tv, /movies, /music, /books. Keep /config. TRaSH Guides is emphatic that the Unraid template defaults and the paths from SpaceInvader One’s older videos should not be used here, and that is exactly right: they are the reason so many arr setups copy. Leaving an old mapping in place next to the new one is worse than useless, because an app can still find the old path and you will swear the new layout did nothing.

qBittorrent, Sonarr and Jellyfin all mapped into one /mnt/user/data share, where the torrent file and the library file share one inode
What each container sees, and the one file underneath both names

Step 6 of 9: Point the apps at the new paths

Containers restarted, the apps need to be told where things live now.

In qBittorrent, set the default save path to /data/torrents and give each arr its own category saving to /data/torrents/tv, /data/torrents/movies and so on. In SABnzbd, the temporary folder goes to /data/usenet/incomplete and the completed folder to /data/usenet/complete.

In Sonarr, the root folder becomes /data/media/tv, and in Radarr /data/media/movies. In Settings, Media Management, Importing, check that Use Hardlinks instead of Copy is on. It is the default, and its help text explains the point: hardlinks let Sonarr import a seeding torrent into the series folder without using extra disk space or copying the file.

Sonarr Media Management settings showing the root folders /data/media/anime and /data/media/tv
Sonarr: both root folders sit under /data/media.
Sonarr Importing settings with Use Hardlinks instead of Copy checked
Sonarr: Use Hardlinks instead of Copy is checked.

The same help text carries a warning worth reading twice. File locks can stop a rename while a file is being seeded, and the suggested workaround is to pause seeding and let the app rename afterwards. In practice this shows up as a stubborn rename that works fine the next morning.

One more thing you can now delete: remote path mappings. Those exist for the case where the download client reports a path the arr app cannot see, which is normal for a client on another machine. With one shared layout and matching container paths, the paths already agree, and a leftover mapping from the old setup will send your imports somewhere strange.

Step 7 of 9: Move an existing library across without re-downloading

A new server is done at this point. An existing one has terabytes in the wrong place, and this is the part to take slowly.

Pause your torrents first. Unraid’s mover will not touch files that are in use, and the manual’s advice for files that refuse to move is to stop Docker and the VM manager and run the mover by hand. Pausing is the polite version of that.

If your media already lives somewhere under /mnt/user, say an old media share, check the move first:

rsync -a --dry-run --info=progress2 /mnt/user/media/tv/ /mnt/user/data/media/tv/

Read what it says it will do, then run the same line without --dry-run. Moving between two different shares is a real copy, so you need the free space for it, and --info=progress2 keeps it to one progress line instead of a wall of filenames. Within one share, mv is instant because nothing crosses a filesystem.

Do not delete the old folders in the same session. Let the arr apps rescan, play something from Jellyfin, then remove the originals a day later when you are sure. Nothing in this guide needs the old copy gone to work.

Permissions come last. Unraid runs its containers as nobody:users, which is simpler than the usual advice about a shared group, and the files you just moved may still carry whatever ownership they had:

chown -R nobody:users /mnt/user/data/

Run that only if you have followed this layout exactly, with everything under one data share. Recursive ownership changes are not something to aim at a folder you have not looked in.

Finally, point the root folders in Sonarr and Radarr at the new paths and let each app rescan its series or movies. Existing torrents in your client need their save path updated and rechecked, which is the slowest part and costs nothing but time.

Grab an episode that was imported after the change and ask for its link count:

stat "/mnt/user/data/media/tv/Example Show/Season 01/Example Show - S01E01.mkv"

Links: 2 is what you want. One file, two names, counted once. If you prefer to see both names at once:

find /mnt/user/data -samefile "/mnt/user/data/media/tv/Example Show/Season 01/Example Show - S01E01.mkv"

That prints the library path and the torrent path together. TRaSH Guides describes the same check the long way round with ls -i to read the inode number and then find /mnt/user/data/ -inum with that number, which is useful when you want to hunt for every copy of something.

For a quick scan of a folder, ls -al shows the link count as the number right after the permissions, and anything above 1 is linked.

And the check from the start of this guide still applies, with the new paths:

docker exec -it sonarr df /data/torrents /data/media

Both lines should now say /data under Mounted on, which is the whole point of the layout.

Step 9 of 9: Where this still goes wrong

A few things bite people after the switch.

Editing an imported file edits the torrent’s copy as well, because there is only one file. Retagging an album in your library can break the seed. If you need to edit, copy the file properly first.

Network mounts never hardlink. An SMB or NFS share from another box, an unassigned disk mounted separately, a remote seedbox: all of them land outside your filesystem and all of them copy. The same goes for exFAT, which has no hardlinks at all.

Usenet is less fussy than torrents here, because SABnzbd unpacks into the complete folder and nothing seeds afterwards, so an import that moves the file is fine. The layout still helps, since the move stays within one filesystem and finishes immediately.

Updating a container template sometimes brings old paths back. If imports start copying again months later, run the df check before anything else.

And the one that still catches me when I read forum threads: people check an old import and conclude the new setup is broken. Files that were copied before the change stay copied. Only new imports link.

If you want the arr stack itself explained rather than its storage, I wrote a separate piece on how Seerr, Sonarr, Radarr, Prowlarr and your download client fit together. This guide is the floor underneath that one. Run the df check tonight, and if it comes back with two mounts, you now know what an evening of your time is worth in terabytes.

Further reading

Link