Setting up Immich on a flashdrive in Windows 10

Hi, I'm new to Immich and fairly new to Linux systems in general, and I'm having trouble with setup. I've installed Docker Destop with defaults, then I created immich-app on my flashdrive (G:) and placed .env and docker-compose.yml inside immich-app. My .env is:
UPLOAD_LOCATION="G:/immich-app/library"
DB_DATA_LOCATION="G:/immich-app/postgres"
IMMICH_VERSION=release
DB_PASSWORD=<alphanumeric password i chose>
#########################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
UPLOAD_LOCATION="G:/immich-app/library"
DB_DATA_LOCATION="G:/immich-app/postgres"
IMMICH_VERSION=release
DB_PASSWORD=<alphanumeric password i chose>
#########################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
The compose file is default, I haven't changed it at all. Immich starts normal, and I can set it up from a browser, upload, and interface with the photos without issue. But the files aren't being stored on the G: drive when I upload them. Instead, they are put in \wsl.localhost/docker-desktop/mnt/host/g/immich-app. I'm not sure how to change this so they are stored just on my flashdrive, not taking up space on my main C: drive.
19 Replies
Immich
Immich4mo ago
:wave: Hey @Minispark, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
bo0tzz
bo0tzz4mo ago
You shouldn't put things on a flash drive if you can help it It'll be horribly slow
Minispark
MinisparkOP4mo ago
I don't really have the space on my C: drive
Immich
Immich4mo ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Mraedis
Mraedis4mo ago
wsl.localhost/docker-desktop/mnt/host/g/ is the WSL equivalent of G:
Minispark
MinisparkOP4mo ago
Ok, I kind of parsed that, but I guess my question still is, does that mean when I upload photos, are they actually being stored on G:? Or are they taking up space on my C: drive?
Mraedis
Mraedis4mo ago
Have you considered just navigating to G: and checking it out?
Minispark
MinisparkOP4mo ago
Right, checking there was what had me concerned in the first place. The compose creates both the library and postgres folders in G:, but nothing is inside
No description
Mraedis
Mraedis4mo ago
and if you move up a folder and into upload
Minispark
MinisparkOP4mo ago
moving a folder up just goes into immich-app, which I have in the root of my G: drive
No description
Mraedis
Mraedis4mo ago
That means it wasn't mounted properly to the docker container (which is like with usb drives) So yes, right now they are stored on your C: drive
Minispark
MinisparkOP4mo ago
Got it. Is there a tutorial somewhere I can follow to mount it?
Mraedis
Mraedis4mo ago
You're doing everything correctly, it's just that USB sticks + Windows = unreliable There are good reasons we strongly recommend a linux host and this is one of them
Minispark
MinisparkOP4mo ago
Alright, I have a shitty windows laptop with a half terabyte drive I left around somewhere. I’ll find it and put Linux and immich on that. Does immich work with Ubuntu server well?
Mraedis
Mraedis4mo ago
Sure! Any modern unix OS works fine
Minispark
MinisparkOP4mo ago
Thanks for all the help, I’ll close the ticket
Mraedis
Mraedis4mo ago
Just be sure to follow the docker guidelines to install it, and not just blindly apt install docker https://docs.docker.com/engine/install/ubuntu/
Immich
Immich4mo ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?