If your disk fills up about twice as fast as your library grows, Sonarr and Radarr are probably copying every import instead of making a hardlink. This guide shows how to test that and how to set up the folders so imports are instant and cost no extra space. It works with any Docker setup (Compose or plain run), and you need shell access to the host.
- Time
- 8 min
- Steps
- 9
- Updated
- 26 Nov 2026
You will learn
- What a hardlink buys you
- Build one tree on the host
- Mount the whole tree once
- Check that it actually links
- How it looks on my own Unraid box
Step 1 of 9: What a hardlink buys you
A hardlink is a second name for the same file on disk. When Sonarr imports a finished download into your library with a hardlink, the file seeds from the torrent folder and shows up in the library at the same time, and the disk only stores it once. The import is instant too. If the two folders are on different filesystems, a hardlink is impossible and the apps quietly fall back to copy and delete. Same result for you on screen, but double the space and a slow, I/O-heavy import.
The catch with Docker is that the filesystem question is about what the container sees, not what the host has. The TRaSH Guides explain that separate mounts such as /tv, /movies and /downloads look like different filesystems inside the container, even when they are folders on one disk. With a single shared mount, in their words, “Hardlinks will work and moves will be atomic.”
Step 2 of 9: Build one tree on the host
Pick one parent folder and keep everything under it. This layout follows the TRaSH Guides and the walkthrough by Matt Connor at SSD Nodes, who uses /srv/data on the host:
/srv/data
├── torrents
│ ├── movies
│ └── tv
├── usenet
│ ├── incomplete
│ └── complete
└── media
├── movies
└── tv
If your downloads and library already live in different shares or on different disks, moving one into the other is the real fix. Do that with the containers stopped, and copy before you delete anything. A hardlink cannot cross disks, no setting changes that.
Step 3 of 9: Mount the whole tree once
Sonarr and Radarr both get the parent folder as one volume, at the same path inside the container. The download client only needs its own part, at the same path Sonarr uses. A Compose sketch, based on the example in the TRaSH Guides:
services:
sonarr:
image: lscr.io/linuxserver/sonarr
environment:
- PUID=1000
- PGID=1000
volumes:
- ./sonarr:/config
- /srv/data:/data
qbittorrent:
image: lscr.io/linuxserver/qbittorrent
environment:
- PUID=1000
- PGID=1000
volumes:
- ./qbit:/config
- /srv/data/torrents:/data/torrents
Then point qBittorrent’s save path at /data/torrents and add /data/media/tv as a root folder in Sonarr (/data/media/movies in Radarr). Give every container the same PUID and PGID, and make that user the owner of the tree. KingPin on SumGuy’s Ramblings points out that mismatched IDs are a classic cause of write errors. Jellyfin only needs /srv/data/media, and read-only is fine.
In my setup Sonarr has /data/media/tv and /data/media/anime as root folders, and Radarr has /data/media/movies and /data/media/anime. All of them sit under /data, the same tree the torrents land in.


Do not add an extra /downloads mount to Sonarr just to silence a health warning. SSD Nodes calls that out as a way to turn every import back into a copy.
Step 4 of 9: Check that it actually links
Import something, then compare the inode numbers of the download and the library file. Same inode means one file with two names:
stat -c '%i %h %n' /srv/data/torrents/tv/Show.S01E01.mkv /srv/data/media/tv/Show/Season\ 01/Show-S01E01.mkv
The middle number is the link count and should be 2 or more. You can also run find /srv/data -samefile <path> to list every name of one file, or look at df -h /srv/data before and after an import: if used space jumps, it was a copy. To see what the container thinks, run docker compose exec sonarr df /data/torrents /data/media. Both lines should say they are mounted on /data.
Step 5 of 9: How it looks on my own Unraid box
I run all of this on Unraid. One share, share_media, is mounted in Sonarr, Radarr, qBittorrent and SABnzbd, and every one of them sees it as /data. There is no separate downloads mount. Inside the share, torrents holds what qBittorrent downloads and media holds the library that Sonarr and Radarr manage.
qBittorrent categories connect the two. The sonarr category saves to /data/torrents/tv and the radarr category to /data/torrents/movies. Both apps tag every grab with their own category, so a finished episode lands in a folder on the same share as /data/media/tv, and Sonarr can always link from it.
I ran the check from Step 3 on the Unraid host, using a recent episode from my library:
cd /mnt/user/share_media
stat -c "%i %h %s" "media/tv/<show>/Season 03/<episode>.mkv"
find torrents -samefile "media/tv/<show>/Season 03/<episode>.mkv"
docker exec sonarr df -h /data/torrents /data/media
The episode is about 8 GB and has a link count of 2. find returns one other name, in torrents/tv, in the folder of the release that is still seeding. Both names share one inode, so the file exists once on disk. Inside the Sonarr container, df shows the same filesystem for /data/torrents and /data/media.
Step 6 of 9: A link count of 1 is not a failure
I misread my own results at first. About 2,870 large episode files in my TV library have a link count of 1, and only two have a second name. That looked like hardlinks were not working, but it is what a healthy library looks like. When a finished torrent is removed from qBittorrent, either by hand or at its seeding limit, its name disappears and the library file is left as the only one. The hardlink saves space while the torrent seeds, and afterwards the library copy is the only copy anyway.
SABnzbd does not seed, so Sonarr imports the file and the download folder can be cleaned up right away. A link count of 1 on a library file is fine as long as your disk usage matches your library size. A file that is still seeding with a link count of 1 is a problem: it was copied, and you are paying for it twice.
Step 7 of 9: Unraid specifics
On Unraid, hardlinks work inside one user share. If your downloads live in a share called downloads and your library in one called media, the link fails and you get a copy, even when both are mounted under /data in the container. The fix is the same as anywhere else: one share that holds both folders.
Keep the container paths identical too. The remote path mapping in my Sonarr screenshot exists only because one download client runs on another machine. The clients on the Unraid box need none, because qBittorrent and Sonarr agree on what /data/torrents/tv means.
Step 8 of 9: A five minute audit
To check your own setup without reading every setting, do this once:
- Run
docker inspecton Sonarr, Radarr and your download client and compare the mount lines. They should show one host folder mounted at one container path. - Check the category save paths in your download client. They should sit inside that same mount.
- Import one new episode, then run
staton it while the torrent still seeds. A link count of 2 means you are done. - Look at the Remote Path Mappings list. Anything on a local client is a leftover to remove.
Step 9 of 9: When it still copies
Check that the Use Hardlinks instead of Copy option is on in Media Management in Sonarr and Radarr. SSD Nodes also suggests setting the log level to Trace, where a failed link shows up as a cross-device message. Old files imported before you fixed the layout stay as copies, and that is expected. The link only happens at import time.
You find it under Settings, Media Management, in the Importing section. Radarr hides it until you click Show Advanced. It is on in both of my apps, so when a copy happens I look at the paths first.


Remote path mappings on a single machine are a warning sign too. SSD Nodes says that if you need one there, your volumes are inconsistent. Also remember that your torrent folder is still seeding: delete from the library and the data stays until the torrent goes too.
Your mappings are under Settings, Download Clients. Radarr has none on my box. Sonarr has one, for a download client on another machine, which is the one case where a mapping makes sense. I blurred the host in the screenshot.



One more thing from the SumGuy post, which is a blog report and not in the official docs: after adding indexers in Prowlarr, Sonarr and Radarr may not see them right away. Run Sync Indexers under their indexer settings, or restart the containers.
Further reading
- TRaSH Guides: Docker file and folder structure
- SSD Nodes (Matt Connor): arr stack folder structure and hardlinks
- SumGuy's Ramblings (KingPin): arr stack durable setup
- On this site: Let Jellyfin in Docker use your Intel iGPU for transcoding
- On this site: When Prowlarr refuses to sync an indexer to Sonarr or Radarr, check these four things
- On this site: The Bazarr settings that matter, from languages to the minimum score
