image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old August 1st, 2007, 03:29 PM
Hoplite's Avatar
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hoplite is on a distinguished road
Spotlight Problem?

I've noticed over the past couple of months that a process called mds or mdimport will run my cpu at 100% for days if I don't quit it. I think I;ve narrowed it down to being owned by Spolight. When it's running I can't eject my iPod, I assume since it's trying to catalog it, and moving files and folders under the private category doesn't seem to work. I've done all I can think of thus far minus a reinstall or a clean install.

Any help is appreciated.

I'm running 10.4.10 on a Quicksilver (2000) 867 with 1.5 gb of ram.

Last edited by Hoplite; August 3rd, 2007 at 11:06 AM. Reason: heh, said 1.5 [b]mb[/b] of ram.
Reply With Quote
  #2  
Old August 1st, 2007, 04:24 PM
Giaguara's Avatar
Chmod 760
 
Join Date: Nov 2002
Location: ~
Posts: 7,732
Thanks: 2
Thanked 22 Times in 22 Posts
Giaguara is a jewel in the roughGiaguara is a jewel in the roughGiaguara is a jewel in the rough
So did I get it right, you tried this? : In System Preferences > Spotlight > Privacy > drag your hard drive to the list, and remove it from the list after a few seconds.
(will cause Spotlight to force index its contents - so it would show if it had any effect when the indexing is finished, in 10-20 minutes.)


You can turn off Spotlight by editing /etc/hostconfig to change "SPOTLIGHT=-YES-" to "SPOTLIGHT=-NO-".

Or modify /etc/hostconfig to read:

SPOTLIGHT=-NO-

Then to get rid of the existing index, run these two commands from Terminal:

mdutil -i off /

mdutil -E /

The first command disables indexing on the boot volume, and the second erases the existing template. You can then use Activity Monitor to kill any mds or mdimport processes or else just reboot.

And to re-enable Spotlight later again,

SPOTLIGHT=-YES-
in /etc/hostconfig,

in Terminal:

mdutil -i on /

and reboot.
__________________
MacBook Pro + Mac mini | Newton 2000 | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do.
~ Samuel Clemens | Rants | Photos
Reply With Quote
  #3  
Old August 1st, 2007, 04:54 PM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,490
Thanks: 4
Thanked 15 Times in 14 Posts
Mikuro is on a distinguished road
To use mdutil, you must precede it with "sudo". So the commands Giagura posted become:

sudo mdutil -i off /

sudo mdutil -E /

sudo mdutil -i on /

"sudo" will ask you for an administrator's password and then run the mdutil command as the root user, which is necessary for mdutil to work.

Generally, simply erasing the database with "sudo mdutil -E /" is enough to fix it (at least in my experience). That will cause OS X to start rebuilding the database from scratch, which might take a few hours.

If you want to manipulate the Spotlight database of a volume besides your boot volume (your iPod, for instance), you will need to replace the / in those commands with "/Volumes/your_volume_name".
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.2

I'm now a four-browser man. How on earth did this happen?!

Useful programs: PithHelmet, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote
  #4  
Old August 3rd, 2007, 11:08 AM
Hoplite's Avatar
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hoplite is on a distinguished road
Thanks for the help. That fixed it right away. Spotlight is doing now what it never properly did before, give fast results.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 06:56 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.