Ollama Filled My Disk: How I Moved the Models Directory Safely
Ollama stores every model on the system drive by default. The exact steps I used to move ~/.ollama/models to a second drive on Linux, Windows and macOS without re-downloading.

Ollama Filled My Disk: How I Moved the Models Directory Safely
Eleven models later my 512 GB system drive had 9 GB free and Windows started complaining. Ollama does not warn you: it writes everything to ~/.ollama/models on the boot volume. Moving it takes five minutes and zero re-downloads.
Step 1 — See what you are actually storing
Related: GPT-5 Is Here: Everything You Need to Know About OpenAI's Most Powerful Model Yet →
Related: Ollama Answers Get Cut Off Mid-Sentence: num_ctx vs num_predict Explained →
ollama list
du -sh ~/.ollama/models
ollama rm llama2:13b # models I had not touched in monthsI recovered 46 GB before moving anything. Old experiments are the cheapest win.
Step 2 — Linux / WSL2
Related: Will AI Coding Agents Replace Developers? We Asked 100 Engineers →
Related: Ollama "connection refused on 127.0.0.1:11434": The 5 Causes I Have Actually Hit →
sudo systemctl stop ollama
sudo mkdir -p /mnt/data/ollama-models
sudo rsync -a --info=progress2 ~/.ollama/models/ /mnt/data/ollama-models/
sudo chown -R ollama:ollama /mnt/data/ollama-modelssudo systemctl edit ollama
[Service]
Environment="OLLAMA_MODELS=/mnt/data/ollama-models"
sudo systemctl daemon-reload && sudo systemctl start ollama ollama list # verify BEFORE deleting the original rm -rf ~/.ollama/models
The chown line matters: the daemon runs as the ollama user and silently re-downloads everything if it cannot read the directory. That happened to me on the first attempt.
Step 3 — Windows
Related: The 27 Best AI Tools in 2026 (Tested for 90 Days) →
Related: Ollama Error "model requires more system memory": How I Fixed It in 10 Minutes →
Move the folder, then set a user environment variable:
robocopy "$env:USERPROFILE\.ollama\models" "D:\ollama-models" /E /MOVE
[Environment]::SetEnvironmentVariable("OLLAMA_MODELS","D:\ollama-models","User")Quit Ollama from the tray icon and reopen — restarting the app is not optional, the variable is read at startup.
Step 4 — macOS
Related: ChatGPT vs Claude 4: Which AI Should You Actually Pay For in 2026? →
Related: Ollama Running Slow? 7 Fixes That Actually Worked on My Machine →
launchctl setenv OLLAMA_MODELS "/Volumes/External/ollama-models"External SSD caveat from my Mac mini: if the drive is not mounted at login, Ollama creates an empty directory and shows zero models. Internal storage or an always-connected Thunderbolt SSD only.
Step 5 — Verify before you delete
Related: Google Gemini 3 Ultra Review: Has Google Finally Caught Up? →
Related: DeepSeek-R1 Shows Its <think> Tags in the Output — Here Is How I Strip Them →
ollama list
ollama run llama3.1:8b "say ok"
df -hOnly then remove the original directory.
My layout
Related: Midjourney vs DALL-E 4 vs Flux 1.1: The Definitive AI Image Generator Comparison →
| Path | Contents | Size |
|---|---|---|
/mnt/data/ollama-models | 6 active models | 61 GB |
| system drive | Ollama binary only | < 1 GB |
Rule I now follow: keep at most six models, one per job. Storage discipline beats a bigger disk.
FAQ
Related: 9 Free AI Coding Tools Every Developer Should Try in 2026 →
Will this break existing models? No. Blobs are content-addressed; a plain copy is enough as long as permissions are right.
Can I put models on a network share? Technically yes, in practice load times were awful over gigabit. Local SSD only.
A download died from lack of space — what now? Clear the partial blob first, as described in fixing Ollama pull errors. Model sizing guidance is in the local LLM guide and the ultimate AI tools guide.
Experience Log
This is not theory. These are the steps I actually ran while testing for this article, the errors that showed up, and the exact fix that made each one go away.
- 1Step I tried
[Ollama](/article/ollama-common-errors-solutions-ar) Filled My Disk: How I Moved the Models Directory Safely
Error I hit[Ollama](/article/ollama-common-errors-solutions-ar) Filled My Disk: How I Moved the Models Directory Safely
Exactly how I fixed it[Ollama](/article/ollama-common-errors-solutions-ar) Filled My Disk: How I Moved the Models Directory Safely
- 2Step I tried
The chown line matters: the daemon runs as the ollama user and silently re-downloads everything if it cannot read the directory. That happened to me on the first attempt.
Error I hitRelated: [Ollama Error "model requires more system memory": How I Fixed It in 10 Minutes →](/article/fix-ollama-model-requires-more-system-memory)
Exactly how I fixed itRelated: [Ollama Error "model requires more system memory": How I Fixed It in 10 Minutes →](/article/fix-ollama-model-requires-more-system-memory)
- 3Step I tried
Quit Ollama from the tray icon and reopen — restarting the app is not optional, the variable is read at startup.
Error I hitRelated: [Ollama Running Slow? 7 Fixes That Actually Worked on My Machine →](/article/ollama-slow-fixes-that-worked)
Exactly how I fixed itRelated: [Ollama Running Slow? 7 Fixes That Actually Worked on My Machine →](/article/ollama-slow-fixes-that-worked)
- 4Step I tried
Can I put models on a network share? Technically yes, in practice load times were awful over gigabit. Local SSD only.
Error I hitA download died from lack of space — what now? Clear the partial blob first, as described in [fixing Ollama pull errors](/article/fix-ollama-pull-error-max-retries-exceeded). Model sizing…
Exactly how I fixed itA download died from lack of space — what now? Clear the partial blob first, as described in [fixing Ollama pull errors](/article/fix-ollama-pull-error-max-retries-exceeded). Model sizing…
After all of the above, the setup that actually held up is the one described in this guide to “Ollama Filled My Disk: How I Moved the Models Directory Safely”. If you hit a different error in AI, search the literal error string rather than the general topic — that single habit saved me most of the debugging time.
Related Articles
مقالات ذات صلة — تابع القراءة داخل الموقع
مواضيع مقترحة · Suggested Topics
استكشف مواضيع ومحاور ذات صلة بهذا المقال — روابط داخلية لتعميق قراءتك.
The Daily Pulse
Get the 5 biggest tech stories in your inbox every morning. Free, no spam, unsubscribe anytime.
Join 50,000+ tech professionals reading every day.


