# Nextcloud AIO - Data Directory

**URL:** <https://help.nextcloud.com/t/nextcloud-aio-data-directory/157170>\
**Category:** ℹ️ Support\
**Tags:** aio\
**Created:** [March 5, 2023, 6:11pm UTC](https://help.nextcloud.com/t/nextcloud-aio-data-directory/157170 "2023-03-05T18:11:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aekash](https://help.nextcloud.com/letter_avatar/aekash/32/5_5575768a8748004e209b776fc1b2916d.png) [@Aekash](https://help.nextcloud.com/u/Aekash)\
**Post date:** [March 5, 2023, 6:11pm UTC](https://help.nextcloud.com/t/nextcloud-aio-data-directory/157170/1 "2023-03-05T18:11:53Z")

</div>

Hi

I would like to setup NextCloud using AIO and use a specific directory on my host as the data directory.

I have added a second disk to the host and have created a folder called BhujMandir-Nextcloud-data ( **/media/BhujMandir\_Nextcloud-data** )

What I am confused on is

1. Do I need to add both the below environment variables ?

2. And do I need to use “/mnt/” prior to “/media/BhujMandir\_Nextcloud-data” ?

Thanks  
Aekash

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [March 6, 2023, 8:23am UTC](https://help.nextcloud.com/t/nextcloud-aio-data-directory/157170/2 "2023-03-06T08:23:39Z")

</div>

> [@Aekash](#):
>
> NEXTCLOUD\_DATADIR=“/mnt/media/BhujMandir\_Nextcloud-data”

This should be enough.

---

<div class="post-metadata">

**Author:** ![Aekash](https://help.nextcloud.com/letter_avatar/aekash/32/5_5575768a8748004e209b776fc1b2916d.png) [@Aekash](https://help.nextcloud.com/u/Aekash)\
**Post date:** [March 6, 2023, 9:41am UTC](https://help.nextcloud.com/t/nextcloud-aio-data-directory/157170/3 "2023-03-06T09:41:49Z")

</div>

So is “/mnt/” definitely required ?

I have the variable set to NEXTCLOUD\_DATADIR=“/media/BhujMandir\_Nextcloud-data" and Nextcloud appears to be working.

Except for when I browse to the systems section of Nextcloud I see “Mount: /mnt/ncdata”, is this expected behaviour ?

![2023-03-06 (1)](https://help.nextcloud.com/uploads/default/original/3X/7/4/7498bf8103cffe68d66041ad56478921bc995728.png)

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [March 6, 2023, 10:08am UTC](https://help.nextcloud.com/t/nextcloud-aio-data-directory/157170/4 "2023-03-06T10:08:18Z")

</div>

> [@Aekash](#):
>
> So is “/mnt/” definitely required ?

No, it isnt.

> [@Aekash](#):
>
> Except for when I browse to the systems section of Nextcloud I see “Mount: /mnt/ncdata”, is this expected behaviour ?

Yes it is.

`/media/BhujMandir_Nextcloud-data` gets inside the container mounted to `/mnt/ncdata`. So Nextcloud sees it as /mnt/ncdata

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 23, 2024, 4:05pm UTC](https://help.nextcloud.com/t/nextcloud-aio-data-directory/157170/5 "2024-09-23T16:05:55Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
