Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I get Spotlight to index a FAT32 Drive?

I just attached a Western Digital My Book external Firewire drive to my computer, and I can’t get Spotlight to index its files. It is FAT32 (i.e. Windows/DOS) formatted, and I did not reformat it since it seems to work fine (read/write) with my Mac as is. I read in an Apple support document that:

"Spotlight works with most locally mounted volumes that can be read and written to, including FireWire and USB/ flash drives. Some volumes, such as Windows-formatted drives, are not indexed automatically. You can change this easily by opening the Info window for the volume in the Finder."

But I can see no way to “change this easily” from that window. The only things changeable there are the comments and the volume name. Does anyone know how to get Spotlight to index such a dreve?

Thanks.


Mac OS X (10.4.8)

Posted on Mar 20, 2007 9:43 AM

Reply
9 replies

Mar 20, 2007 11:17 AM in response to zootooz

You might take a look at this thread:

http://discussions.apple.com/thread.jspa?messageID=3625005&#3625005

I did get Spotlight to search a FAT32 drive using the Terminal command, although as far as I could tell it never did index it (at any rate, there were no index files on the drive). But it would search. Unless you need to share the drive with a Windows machine, I would reformat the drive for the Mac.
Francine

User uploaded file
Francine
Schwieder

Mar 20, 2007 1:29 PM in response to Francine Schwieder

Daniel – No, it is not indexed, and it so far has refused to be so. I tried the Spotlight Privacy technique to try to force it to index, but neither the disk nor any of the files that were individually moved to the FAT32 disk from an Apple formatted HD, were able to be moved to the privacy list. It just doesn’t recognize them.

Francine – Thanks for the discussion reference and the Terminal workaround. I’ll try that. It is useful for this drive to be readable by Windows machines, so I want to try to get it to index before I give up and reformat it.

I’m still curious what Apple means by,

“Some volumes, such as Windows-formatted drives, are not indexed automatically. You can change this easily by opening the Info window for the volume in the Finder."

That reference is from here (p.12 under “Spotlight Store”):

http://images.apple.com/macosx/pdf/MacOSXSpotlightTB.pdf

Do either of you (or anyone else) know what that means?

Thanks.


Mac OS X (10.4.8)

Mac OS X (10.4.8)

Mar 20, 2007 2:28 PM in response to zootooz

Well, I just reformatted my trusty key drive to MSDOS and put some stuff on it. Spotlight would not find anything, neither by file name nor content. Of course, you can't put it in Privacy, and I have no idea what in the world the Apple is on about with the "opening the Info window for the volume in the Finder." There is absolutely nothing there about Spotlight.

So I issued the Terminal command and got the expected result:

-bash:~francine$ sudo mdutil -i on /Volumes/KEYDRIVE/
Password:
/Volumes/KEYDRIVE/:
Indexing enabled for volume.

I kept an eye on Activity Monitor and saw mdimport belonging to User "unknown" startup and Do Things. After which a Spotlight search on both file names and file contents brought up files on the drive in the results. There is still no sign of index files on the drive itself though. However, looking at the contents of /.Spotlight-V100 I did discover that the file .store.db file does change when I saved a unique file to the keydrive, so perhaps that is where the info is being stored. Of course, I now wonder how in the world you could ever clean that thing out.....
Francine

User uploaded file
Francine
Schwieder

Mar 20, 2007 4:03 PM in response to Francine Schwieder

Francine,

I just realized that I’m not sure what you mean by the “Terminal command.” I had thought you meant to use the Terminal Utility, but after opening it, I realized that there seems to be nothing like what you are talking about there. I hate to ask this because you have been so helpful and generous with your time already, but could you pretend that I’m completely ignorant about this stuff (not really much pretense involved, actually) and walk me through it step-by-step. If that’s too tedious, I understand.

Thanks


Mac OS X (10.4.8)

Mar 20, 2007 4:40 PM in response to zootooz

OK, the Terminal is a the way that you access UNIX shell commands (the Mac command line interface). Instead of clicking on things you have to type the actual command into the "prompt" hit return, and then the shell executes the command. So you go to the Utilities folder and double click Terminal to launch it. Exactly what you see when it finishes launching will depend on how you have configured it, so it won't be exactly what I see, but there will be some words of encouragement and then the prompt, where you will type things:

Last login: Tue Mar 20 14:06:01 on ttyp1
Welcome to Darwin!
-bash:~francine$

The "$" is where you start typing, or you can copy and paste things in also. You would then type:

sudo mdutil -i on /Volumes/YOURDRIVENAME/

You must make sure everything you type is exactly as given, thus you may want to simply copy and paste this:

sudo mdutil -i on /Volumes/

and, making sure there is no space after that final "/" character, type the name of your drive exactly as it appears in Finder. If the name has any spaces in it be sure to surround it with quotes:

sudo mdutil -i on /Volumes/"MY FAT DRIVE"/

Then hit the Return key. You will be asked for your admin password, and given a little lecture (this is only delivered the first time you use a sudo command). The password you type is not echoed to the screen in anyway whatsoever, so type very carefully and when you finish hit the Return key again. You'll then get the notice that indexing is enabled. Type the word exit, hit Return, and then quit Terminal.
Francine

User uploaded file
Francine
Schwieder

Mar 20, 2007 11:09 PM in response to zootooz

Next time you access the Terminal you'll see what you see now: a command line prompt waiting for your wish to be its command. To undo you would command it to be off rather than on:

sudo mdutil -i off /Volumes/"MY FAT DRIVE"/

Hit Return to execute the command. Provided you remember to type "exit" as a command before you quit Terminal, the command will be saved in the history file, how many previous commands are stored is also a setting you can make, I think the default is a couple of hundred. To see those previous commands you just type:

history

and hit Return. You can copy and paste a previous command to use it again. I've written an introduction to the Terminal if you are interested (knowing the basics can be very handy sometimes):

http://www.pinkmutant.com/smug/macws07/terminal.html

That page has a link at the top to Terminal 101, and a list at the bottom of my own frequently used commands.
Francine

User uploaded file
Francine
Schwieder

How do I get Spotlight to index a FAT32 Drive?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.