Skip to content
Menu
FDSWEBDESIGN
  • Home
  • Javascript
  • Inspiration
  • WordPress
  • Ux
  • Accessibility
FDSWEBDESIGN
February 5, 2025February 11, 2025

How to Run LLM from External Hard Drive with Ollama

Want to run generative AI right on your Mac? There’s where Ollama comes in. But there’s a problem – modern LLMs can eat up anywhere from 4GB to 40GB each, quickly filling up your internal drive.

Setup Ollama LLM

That’s where this guide comes in – I’ll show you how to install and run Ollama on your external drive, with all the LLMs you download stored right on your external drive so they don’t take up space on your Mac’s internal hard drive.

In this step-by-step guide, I’ll walk you through everything from installing Ollama to moving it to your external drive. Let’s get started!

Installing Homebrew

First, let’s get Homebrew installed (skip this if you already have it).

Homebrew makes installing Ollama super easy, plus it’s handy if you ever want to uninstall Ollama later.

  1. Open Terminal (hit Cmd + Space, type “Terminal,” press Enter)
  2. Copy and paste this command:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  3. Check if it worked:
    brew --version

Installing Ollama

Now that we have Homebrew ready, installing Ollama is just two commands away:

  1. Install it:
    brew install ollama
  2. Verify it’s installed:
    ollama --version

Note: If you see a message saying “Warning: could not connect to a running Ollama instance” – don’t worry! That’s normal since we haven’t started Ollama yet. As long as you see something like “client version 0.5.7“, you’re good to go.

Check Ollama version

Setting Up Ollama on Your External Drive

By default, Ollama stores everything in a ~/.ollama folder on your Mac’s internal drive. Let’s move it to your external drive instead:

  1. Connect your external drive to your Mac
  2. Create an Ollama folder on your external drive:
    mkdir /Volumes/YourDriveName/.ollama

    For example, if your drive is named “MyDrive”:

    mkdir /Volumes/MyDrive/.ollama
  3. Move existing Ollama files to external drive:
    mv ~/.ollama /Volumes/YourDriveName/.ollama
  4. Create a link so Ollama knows where to look:
    ln -s /Volumes/YourDriveName/.ollama ~/.ollama

Download and Run Your First LLM

Time to get your first LLM running! Open Terminal and:

  1. Start Ollama:
    ollama serve
  2. Open a new Terminal window and download an LLM (let’s try Llama 2):
    ollama pull llama2

    The download will take a while since LLMs are pretty big files – could be several minutes or longer depending on your internet speed.

    Downloading LLM
  3. Once downloaded, run it:
    ollama run llama2
    Running llama2 LLM

That’s it! You can now start chatting with Llama 2 via Ollama, all running from your external drive.

FAQ

How do I check where my Ollama files are on the external drive?

Everything’s stored in your /Volumes/YourDriveName/.ollama folder. Models are in the models/blobs subfolder.

Type ls /Volumes/YourDriveName/.ollama/models/blobs/ in Terminal to see all your downloaded models.

How do I uninstall Ollama?

Since we installed via Homebrew, just run:

brew uninstall ollama

Then delete the .ollama folder from your external drive.

How do I install more LLMs?

Find more LLM you can download on Ollama’s library page, then use the pull command:

ollama pull modelname

For example: ollama pull deepseek-r1 or ollama pull llama3.3

How do I see all LLMs I’ve downloaded?

Run this command:

ollama list

This shows all your installed models with their sizes.

How do I delete an LLM I don’t use anymore?

Use the remove command:

ollama rm modelname

For example: ollama rm llama2

Can I use my external drive with Ollama on another Mac?

Yes. Follow the steps above to install Ollama on the other Mac, then create the symbolic link pointing to your external drive’s .ollama folder and connect your external drive. Your models will be ready to use without downloading them again.

The post How to Run LLM from External Hard Drive with Ollama appeared first on Hongkiat.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Build Confidence In Your UX Work
  • Fresh Resources for Web Designers and Developers (February 2024)
  • The Human Element: Using Research And Psychology To Elevate Data Storytelling
  • How To Test And Measure Content In UX
  • 5 Best AI-Powered Git Commit Message Tools Compared
  • How To Build Confidence In Your UX Work
  • Fresh Resources for Web Designers and Developers (February 2024)
  • The Human Element: Using Research And Psychology To Elevate Data Storytelling
  • How To Test And Measure Content In UX
  • 5 Best AI-Powered Git Commit Message Tools Compared

Archives

  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • November 2023
  • September 2023

Categories

  • Home
  • Javascript
  • Inspiration
  • WordPress
  • Ux
  • Accessibility

About

  • Privacy Policy
  • Contact US

About

  • Privacy Policy
  • Contact US

Recent Posts

  • How To Build Confidence In Your UX Work
  • Fresh Resources for Web Designers and Developers (February 2024)
  • The Human Element: Using Research And Psychology To Elevate Data Storytelling
  • How To Test And Measure Content In UX
  • 5 Best AI-Powered Git Commit Message Tools Compared
©2025 FDSWEBDESIGN | Powered by WordPress and Superb Themes!