All articles

Spotlight Not Finding Files on an External Drive? Search It Anyway

· 6 min read

You know the file is on your external SSD: you copied it there last week. Yet Spotlight shows nothing, and a Finder search window comes back empty too. The drive is fine. Spotlight only finds what it has indexed, and an external drive is the place it most often skips.

The short answer: check in Terminal whether Spotlight indexes the drive (mdutil -s), take the drive out of Spotlight's privacy list in System Settings, then turn indexing on or rebuild the index with sudo mdutil. If you need the file now, search the drive without the index: find in Terminal for names, or Folia Files' search with the drive chosen as the location, which goes through its folders and reads its documents itself.

Why Spotlight misses files on an external drive

Spotlight keeps an index for each volume, and a search only looks in that index: a file it never indexed can't come up. On an external drive, another partition or a disk image, the usual reasons are:

  • The drive is in Spotlight's privacy list. Nothing listed there is ever searched. A backup drive or a scratch disk may have been added on purpose, then forgotten.
  • Indexing is turned off for that drive. Check this first on a drive formatted on a PC (exFAT, FAT32, NTFS).
  • The index is damaged or out of date. Files copied since are missing, or results stop at an old state of the drive.
  • Spotlight is still indexing. A big drive you just connected takes a while before everything on it can be found.
  • It's a network share. Spotlight doesn't index a server's files on your Mac; whether a share can be searched depends on the server.

The Finder's search field asks the same index, which is why it misses the same files.

Check the drive in Terminal

Open Terminal (Applications › Utilities). In the commands below, replace Travel SSD with your drive's name and keep the quotes, or type the command and drag the drive's icon into the Terminal window to insert its path.

See whether Spotlight indexes it

mdutil -s "/Volumes/Travel SSD"

The answer is a line under the drive's path. Indexing enabled. means Spotlight indexes it; Indexing disabled. means it doesn't. Index is read-only. means Spotlight can't add anything to that index: we've seen it on a Mac whose disk was nearly full, and freeing space is the first thing to try. To ask Spotlight directly for a name you know is on the drive:

mdfind -onlyin "/Volumes/Travel SSD" -name invoice

Nothing comes back while the file is there? Spotlight has no usable index for that drive.

Turn indexing on, or rebuild the index

sudo mdutil -i on "/Volumes/Travel SSD"

Terminal asks for your administrator password (nothing shows as you type it). To throw away a damaged index and build a new one:

sudo mdutil -E "/Volumes/Travel SSD"

Spotlight then reads the whole drive again, which can take a long time on a large one; until it's done, results from that drive are incomplete. While it works, the drive may also refuse to eject: see how to eject a disk that says it's in use.

Check Spotlight's privacy list

  1. Choose Apple menu › System Settings, then click Spotlight in the sidebar.
  2. Click Search Privacy…. The list is headed Prevent Spotlight from searching these locations.
  3. If your drive is in it, select it, click the − button, then Done.

That's how it reads on macOS 27; on macOS Sonoma and earlier, the list is in Siri & Spotlight, behind Spotlight Privacy…. Apple also uses this list to rebuild an index: add the drive with +, then remove it, and Spotlight indexes it again. If System Settings answers that the location is not indexed, turn indexing on with mdutil first.

Search the drive without Spotlight

In Terminal

find goes through the folders itself, index or not:

find "/Volumes/Travel SSD" -iname "*invoice*" 2>/dev/null

-iname ignores capitals, and 2>/dev/null hides the folders it can't open. It only looks at names. grep -ril "invoice" "/Volumes/Travel SSD" looks inside files, but only finds words stored as plain text, not inside PDFs or Word documents. The first time, macOS may ask whether Terminal can access files on the drive.

In Folia Files

Folia Files' search doesn't rely on Spotlight alone. You choose where and what to look in, it picks how for each place, and an ⓘ beside the search tells you what the last search couldn't cover.

  1. Click Find in the toolbar, or choose Edit › New Search (⇧⌘F). The Search module opens at the top of the tab.
  2. Click the location pill (it says Everywhere at first) and tick your drive under Volumes. You can tick several places.
  3. In the next pill, choose In the name, In the text or In pictures, then type your words. Every word must be there, in any order; capitals and accents don't count.

An external drive named Travel SSD open in a Folia Files pane, and listed under Volumes in the sidebar

In the name. Folia Files keeps its own index of names for your home folder and Applications, so searches there answer at once. A drive outside that index is gone through folder by folder, whatever Spotlight knows, and the ⓘ says so: “Travel SSD” isn’t in the index: it was gone through. With Everywhere, a name search also goes through the Mac's other disks and partitions, but not network shares. For a drive you search often, open Settings › Search › Search Index and click Add a Folder or Disk…: its names then come up instantly too.

In the text. Folia Files asks Spotlight wherever Spotlight indexes the place. On a drive it doesn't, chosen as the location, Folia Files reads the documents itself: PDF, Word, RTF, OpenDocument text, HTML, plain text and code (not Pages, Numbers, Keynote or Excel files: only Spotlight reads those). Each result shows the passage with your words, and the ⓘ says Spotlight doesn’t index “Travel SSD”: its documents were read one by one.

A search In the text for the word Invoice: the PDF invoices Folia Files read itself, each with its passage and its folder

Everywhere doesn't read a whole unindexed disk at every search: the ⓘ names the drive and suggests choosing it as the location. To read everything anyway, open the filter (the funnel) and tick Read every document, without Spotlight under More complete, slower. Folia Files then reads the documents of your home folder, Applications, the other disks and the clouds itself: slower, but independent of any index.

The search's filter menu open: kinds to show, files to include, and Read every document, without Spotlight

In pictures. This relies on what macOS has recognised in your pictures, through Spotlight. On a drive Spotlight skips, it only finds pictures Folia Files has read itself, and Folia Files' optional picture reading covers your home folder, iCloud Drive and clouds, not other disks. For photos on an external drive, turning Spotlight indexing on is the way.

Network shares, cloud files and the App Store edition

  • Network shares. Everywhere leaves them out, because a server that stops answering would hold up the search. Choose the share as the location: Folia Files goes through it over the network, more slowly, and reads its documents itself. If the Finder struggles with the share too, see why the Finder freezes on a network drive.
  • Files kept only in the cloud. Spotlight usually doesn't have their text, and Folia Files never downloads a file to search it: they're found by name.
  • App Store edition. macOS only lets Folia Files read the disks you've allowed. It asks once for all of them, including the ones you plug in later.