© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•14mo ago•
15 replies
FsFsmk

store files in a different disk

can i have immich on a disk but store the library in another disk? simply telling it to do that in the .env file results in the following:
→ df -h
Filesystem      Size  Used Avail Use% Mounted on
dev              10M     0   10M   0% /dev
run              30G  3.0M   30G   1% /run
efivarfs        128K   48K   76K  39% /sys/firmware/efi/efivars
/dev/nvme1n1p2  1.8T  100G  1.7T   6% /
shm              30G   84K   30G   1% /dev/shm
/dev/nvme1n1p1  300M  288K  300M   1% /boot/efi
tmpfs            30G     0   30G   0% /tmp
tmpfs           5.9G     0  5.9G   0% /run/user/1000
/dev/nvme0n1p1  1.9T   61M  1.9T   1% /mnt
→ df -h
Filesystem      Size  Used Avail Use% Mounted on
dev              10M     0   10M   0% /dev
run              30G  3.0M   30G   1% /run
efivarfs        128K   48K   76K  39% /sys/firmware/efi/efivars
/dev/nvme1n1p2  1.8T  100G  1.7T   6% /
shm              30G   84K   30G   1% /dev/shm
/dev/nvme1n1p1  300M  288K  300M   1% /boot/efi
tmpfs            30G     0   30G   0% /tmp
tmpfs           5.9G     0  5.9G   0% /run/user/1000
/dev/nvme0n1p1  1.9T   61M  1.9T   1% /mnt

.env
.env
:
UPLOAD_LOCATION=/mnt/immich/library
DB_DATA_LOCATION=/mnt/immich/postgres
UPLOAD_LOCATION=/mnt/immich/library
DB_DATA_LOCATION=/mnt/immich/postgres

but i get the following errors and i am unable to connect(logs from immich_server)
[Nest] 2  - 01/02/2025, 6:17:40 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
[Nest] 12  - 01/02/2025, 6:17:40 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: connect ECONNREFUSED 10.89.1.129:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)
(it retries 9 times)
Error: connect ECONNREFUSED 10.89.1.231:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)
[Nest] 12  - 01/02/2025, 6:17:40 AM   ERROR [ExceptionHandler] connect ECONNREFUSED 10.89.1.231:5432
Error: connect ECONNREFUSED 10.89.1.231:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)
microservices worker exited with code 1
Killing api process
[Nest] 2  - 01/02/2025, 6:17:40 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
[Nest] 12  - 01/02/2025, 6:17:40 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: connect ECONNREFUSED 10.89.1.129:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)
(it retries 9 times)
Error: connect ECONNREFUSED 10.89.1.231:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)
[Nest] 12  - 01/02/2025, 6:17:40 AM   ERROR [ExceptionHandler] connect ECONNREFUSED 10.89.1.231:5432
Error: connect ECONNREFUSED 10.89.1.231:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)
microservices worker exited with code 1
Killing api process
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Connection refused after a disk in array failed
ImmichIImmich / help-desk-support
3w ago
Have thumbs in a different folder
ImmichIImmich / help-desk-support
7mo ago
Store images in a nice organized manner?
ImmichIImmich / help-desk-support
9mo ago
Disk space
ImmichIImmich / help-desk-support
15mo ago