How to move Ollama models to another drive without downloading them again
Copy the whole model store to the new drive before changing OLLAMA_MODELS. Leave the original in place until you’ve checked the destination and compared the model list from the same Ollama server.
Find the directory used by the server, not just the app
Before changing anything, note the active server, the folder it currently uses, and the list from ollama list. On macOS the usual folder is ~/.ollama/models. On Windows it is usually C:\Users\<you>\.ollama\models. Ollama’s standard Linux installation lists /usr/share/ollama/.ollama/models. If the app connects to a container or another computer, identify the serving instance and its storage there. These default examples don’t override a path already configured for that instance.
Copy the complete store while the service is stopped
Let any downloads finish and schedule time to fully quit the desktop app or stop the service so the files aren’t changing. Measure the size of the existing directory on disk, not the sum of the per-model sizes in the list. Choose an empty destination with room for the copy and some extra space for future downloads. Copy the entire models directory structure, including the weights in blobs and all manifest files that map names and tags to those weights. Don’t pick only the largest files or leave out a metadata folder. Keep the old copy. If the source is D:\AI\models and you copy the folder itself into E:\AI, the new root is E:\AI\models, not E:\AI.
Set OLLAMA_MODELS in the environment that starts Ollama
Windows desktop: in the Windows environment variables for the user running Ollama, set OLLAMA_MODELS to the destination, for example D:\AI\ollama-models. If your app offers a Model location preference, check that it agrees. Then fully quit the tray app if it’s still open and relaunch it. Changing a shell variable alone may not affect an already running app.
macOS desktop: Ollama’s FAQ documents launchctl for app environment variables. In your login session, an example for a mounted drive is launchctl setenv OLLAMA_MODELS "/Volumes/Models/Ollama". Substitute the actual copied root and reopen the app. Check the setting again after you sign back in or restart, and make sure the drive is present before Ollama starts.
Linux with systemd: put OLLAMA_MODELS in the configuration for the Ollama service, then reload the service manager and restart Ollama as documented. A setting in your shell does not update a system service. If you start Ollama manually instead, set the variable in that launch environment. Use a directory the serving process can already access; don’t change access broadly just to make the move work.
Confirm both the new location and the same inventory
Restart the intended server. Check its actual model-location setting or startup log if it reports the path, then run ollama list against that same instance and compare the exact tags with your earlier list. A matching list does not prove the new path is active or that every file is intact. If the path or inventory is wrong, keep both copies and check for an extra folder level, a drive that is not mounted, or a setting applied to the wrong service. If needed, restore the prior path and restart the same service. You can investigate before trying another download; nothing in the verification step requires pulling a model.
Sources
- Ollama · Frequently asked questionsPublisher · docs.ollama.com↗
- Ollama · WindowsPublisher · docs.ollama.com↗
- Ollama · LinuxPublisher · docs.ollama.com↗
- Ollama · DocumentationPublisher · docs.ollama.com↗
- github.com · DocumentationPublisher · github.com↗
- github.com · WindowsPublisher · github.com↗
- github.com · DocumentationPublisher · github.com↗