Can't mount or use an external HDD as datadir in Windows docker AIO build

Afzer connecting the drive did you already try to reatart docker desktop once?

I have restarted docker desktop at least once with the drive attached.

Hm… Then maybe external drives are not working. Did you verify if it works wirh an internal drive?

Well it works perfectly fine if I don’t change the NEXTCLOUD_DATADIR and it uses the main SSD.

Yeah but does it also work with e.g. NEXTCLOUD_DATADIR="/run/desktop/mnt/host/c/ncdata ?

I just tried it with NEXTCLOUD_DATADIR="/run/desktop/mnt/host/c/Users/me/Nextcloud to a folder I just made and it worked fine.

Then it seems to be an issue caused by Docker Desktop and their WSL Integration. Sorry not sure how to debug this further. I guess it would make sense to document this behaviour…

@ryguy try formatting your secondary drive with NTFS. When I tested this a few days ago, it was on a NTFS formatted drive and it worked without issue. One other note, my drive was on a SATA connection not USB, so not sure how your external drive is connected.

Sebastian

1 Like