You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TRaSH-Guides/docs/Hardlinks/How-to-setup-for/Unraid.md

6.0 KiB

Unraid

!!! note

The first thing you need to do is forget the suggested paths from the Spaceinvader One YouTube Tutorials,

and don't use the predefined paths from the unraid templates.

(Spaceinvader One YouTube guides are great to learn how to start with unraid or how to setup certain applications, and yes I did and still do use them. Probably the main reason why he's using those path is because they are predefined in the template)

Preparation

Make sure hardlinks support is enabled in your Settings => Global Share Settings.

Enable Hardlink support

Create the main share

!!! warning "To get Hardlinks and Atomic-Moves working with Unraid,
You will need to make use of ONE share with subfolders."

For this example I'm using my own setup and preferred share data.

Go to your dashboard and on the top select shares select add share .

!unraid-main-share

  1. use data
  2. if you got a cache drive and want to make use of it put it on Yes or keep it disabled (Hardlinks will stay in tact if you're using the cache)
  3. click on ADD SHARE

!!! note

Keep in mind regarding the use of the Cache drive, The mover can't move files that are in use, like  when seeding with torrents. You will need to stop/pause the torrents so the mover can move them to your Array.

!!! tip "If you use qBittorrent you can automate the process by following the following Guide [HERE](/Downloaders/qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent/){:target="_blank" rel="noopener noreferrer"}"

With Usenet  you won't have any issues.

Folder Structure

On the host (Unraid) you will need to add /mnt/user before it. So /mnt/user/data

The data folder has sub-folders for torrents and usenet and each of these have sub-folders for tv, movie and music downloads to keep things neat. The media folder has nicely named TV, Movies and Music sub-folders, this is your library and what youd pass to Plex, Emby or JellyFin.

These subfolders you need to create your self, you can use krusader or winscp to create them or any other way you prefer.

{! include-markdown "../../../includes/hardlinks/docker-tree-full.md" !}

I'm using lower case on all folder on purpose, being Linux is case sensitive.


Breakdown of the Folder Structure

{! include-markdown "../../../includes/hardlinks/bad-path-suggestion.md" !}

Setting up the containers

After you created all the needed folders it's time to setup the paths in the docker containers.

Go to your dashboard and select your docker container you want to edit or if you're starting fresh add the docker containers you want to use or prefer.

Unraid makes it actually pretty clear what's the Host Path and what's the Container Path.

Container Path: => The path that will be used inside the container.

Host Path: => The path on your Unraid Server (The Host).


Torrent clients

qBittorrent, Deluge, ruTorrent

unraid-torrent-clients

Container Path: => /data/torrents/

Host Path: => /mnt/user/data/torrents/

!!! info

The reason why we use `/data/torrents/` for the torrent client is because it only needs access to the torrent files. In the torrent software settings, youll need to reconfigure paths and you can sort into sub-folders like `/data/torrents/{tv|movies|music}`.

{! include-markdown "../../../includes/hardlinks/docker-tree-torrents.md" !}


Usenet clients

NZBGet or SABnzbd

unraid-usenet-client

Container Path: => /data/usenet/

Host Path: => /mnt/user/data/usenet/

!!! info

The reason why we use `/data/usenet/` for the usenet client is because it only needs access to the usenet files. In the usenet software settings, youll need to reconfigure paths and you can sort into sub-folders like `/data/usenet/{tv|movies|music}`.

{! include-markdown "../../../includes/hardlinks/docker-tree-usenet.md" !}


The Starr Apps

Sonarr, Radarr and Lidarr

unraid-arr

Container Path: => /data

Host Path: => /mnt/user/data/

!!! info

Sonarr, Radarr and Lidarr gets access to everything because the download folder(s) and media folder will look like and be one file system. Hard links will work and moves will be atomic, instead of copy + delete.

{! include-markdown "../../../includes/hardlinks/docker-tree-full.md" !}


Media Server

Plex, Emby, JellyFin and Bazarr

unraid-media-server

Container Path: => /data/media

Host Path: => /mnt/user/data/media/

!!! info

Plex, Emby, JellyFin and Bazarr only needs access to your media library, which can have any number of sub folders like Movies, Kids Movies, TV, Documentary TV and/or Music as sub folders.

{! include-markdown "../../../includes/hardlinks/docker-tree-media.md" !}


Final Result

!unraid-final-result

Don't forget to look at the Examples how to setup the paths inside your applications.

Video Tutorial

!!! tip ""

Big Thanks to IBRACORP for noticing this Guide and creating a Video covering this unraid section.

The reason why I added the video to the end is because I want the user to actually learn and understand why it's recommended to use this folder structure, before going straight to the YouTube video.

<iframe width="560" height="315" src="https://www.youtube.com/embed/AMcHsQJ7My0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Also check out other videos from IBRACORP [HERE](https://www.youtube.com/c/IBRACORP/videos){:target="_blank" rel="noopener noreferrer"}

{! include-markdown "../../../includes/support.md" !}