[GH-ISSUE #5673] Ollama spins up USB HDD #3539

Closed
opened 2026-04-12 14:15:25 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @bkev on GitHub (Jul 13, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5673

What is the issue?

When ever I run an Ollama model, Ollama now spins up my external USB hard drive despite not needing to as all the models are on the internal drive.

I can't say I've always noticed it doing this, although it has always spun up the hard drive when upgrading as it seems to scan USB?

Is there anyway to stop Ollama doing this by disabling any kind of USB scan functionality etc?

This is on a raspberry pi with internal nvme (where the models are) and an external USB that Ollama didn't need.

OS

Linux

GPU

No response

CPU

No response

Ollama version

0.2.3

Originally created by @bkev on GitHub (Jul 13, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5673 ### What is the issue? When ever I run an Ollama model, Ollama now spins up my external USB hard drive despite not needing to as all the models are on the internal drive. I can't say I've always noticed it doing this, although it has always spun up the hard drive when upgrading as it seems to scan USB? Is there anyway to stop Ollama doing this by disabling any kind of USB scan functionality etc? This is on a raspberry pi with internal nvme (where the models are) and an external USB that Ollama didn't need. ### OS Linux ### GPU _No response_ ### CPU _No response_ ### Ollama version 0.2.3
GiteaMirror added the bugneeds more info labels 2026-04-12 14:15:25 -05:00
Author
Owner

@rick-github commented on GitHub (Jul 13, 2024):

ollama doesn't explicitly do a USB scan on startup, but it does check various places on the filesystem looking for libraries, config files, etc. If your external drive is mounted and one of the places that ollama check references a location on the USB filesystem, that will cause the drive to spin up.

You can check where ollama is looking by tracing its syscall activities:

strace -f -e openat,newfstatat,readlinkat -o /tmp/ollama.strace ollama serve

For example, on my pi ollama checks /opt/cuda, so if I had a USB drive mounted on /opt, that would cause the drive to activate.

<!-- gh-comment-id:2226939059 --> @rick-github commented on GitHub (Jul 13, 2024): ollama doesn't explicitly do a USB scan on startup, but it does check various places on the filesystem looking for libraries, config files, etc. If your external drive is mounted and one of the places that ollama check references a location on the USB filesystem, that will cause the drive to spin up. You can check where ollama is looking by tracing its syscall activities: ``` strace -f -e openat,newfstatat,readlinkat -o /tmp/ollama.strace ollama serve ``` For example, on my pi ollama checks `/opt/cuda`, so if I had a USB drive mounted on `/opt`, that would cause the drive to activate.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#3539