# 1. Storage Layout

Now, the installation of the Arr stack is not all that hard but it is important to choose a good storage layout. There are different methods each with its pros and cons. The one method that we will discuss in the setup is the Hardlink method, which basically means that the **downloads** and **tv** and **movie** folders are linked together instead of seen separately. That means instead of storing 2 times a movie you only store it once. For this guide we will follow the famous [Trash Guides](https://trash-guides.info/File-and-Folder-Structure/) setup here that has only one **/mnt/data:/data** volume with the following structure

data  
├── torrents  
│ ├── books  
│ ├── movies  
│ ├── music  
│ └── tv  
├── usenet  
│ ├── incompleted  
│ └── completed  
│ ├── books  
│ ├── movies  
│ ├── music  
│ └── tv  
└── media  
 ├── books  
 ├── movies  
 ├── music  
 └── tv

1\. Create an NFS share on TrueNas scale

2\. Go inside your arr stack vm via SSH

3\. Then we want to make to give ownership of the /mnt folder to our user that is not root.

4\. If you have not added any users then your base user and did not change your user ID it most likely will be 1000. However, you can be sure by using the command

```bash
id myuser
```

5\. Then we make myuser owner of the mnt folder with

```bash
sudo chown -R myuser:myuser /mnt
sudo chmod -R 770 /mnt
```

6\. Then create the data folder inside the mnt folder with

```bash
mkdir /mnt/data
```

7\. Sweet, then now we need to install nfs tools such that we can mount the nfs share to /mnt/data

```bash
sudo apt install nfs-common
```

8\. Then we will mount the NFS share by entering the /etc/fstab with nano

```bash
sudo nano /etc/fstab
```

9\. There we copy paste in the nfs share credentials as follows

```bash
NAS-IP:/mnt/storagepool/media /mnt/data  nfs  defaults 0 0
```

10\. Then to make the changes permanent we use

```bash
sudo systemctl daemon-reload
```

11\. Then to mount the drives we use

```bash
sudo mount -a
```

12\. You can then check if the mount occured properly by using the command

```bash
mount
```

13\. You should then see that your /mnt/data folder is mounted to your NFS share

14\. Now that that is done we will add all the folders inside the /mnt/data directory. Go inside the /mnt/directory and use the following command to create the whole structure with one command

```bash
mkdir -p torrents/{tv,movies,music,books} && mkdir -p usenet/{incompleted,completed,intermediate} && mkdir -p usenet/completed/{tv,movies,music,books} && mkdir -p media/{tv,movies,music,books}
```

15\. To check if the folder structure is correct you can use the command

```bash
tree
```

16\. If tree is not yet installed you can install it with

```bash
sudo apt install tree
```

Perfect! Then now in the next chapter we will start creating the docker compose file for our Arr stack ;)