The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,532 other followers

Archive for the ‘SpotLight’ Category

Mac OS X – Spotlight not finding many files: force a rescan solved it

Posted by jpluimers on 2016/09/23

I was looking for some PDF files that I knew for sure were on my SSD but Spotlight would not find them. Looking for more obvious files I noticed Spotlight was returning hardly any files at all: somehow the index was messed up.

Years ago I also had Spotlight issues; then it would find nothing (now it did find some files) which was solved by a reboot: Spotlight refuses to be enabled on Lion: reboot helped.

Screenshot 2016-06-29 12.57.34

Screenshot 2016-06-29 12.57.34

Now this was right after a reboot, and because Spotlight did find some files I know Spotlight was turned on (no need for mdutil tricks mentioned in After restoring fresh HDD from Time Machine Backup: No results from Spotlight).

So I dug a bit deeper and decided to try [WayBack] Rebuild the Spotlight index on your Mac – Apple Support with these steps:

  1. Search for something that returns few results (in my case Xyzzy)
  2. Click Spotlight Preferences...
  3. Go to the Privacy tab
  4. From the Finder, drag your disk(s) to the Prevent Spotlight from searching these locations list.
  5. Remove your disk(s) from that lists using the minus (-) button.
  6. Wait for re-indexing to complete

That worked like a charm to refresh the index: it started indexing again which took about one hour.

After a few minutes though, I found back the 32pfl7404h_12_dfu_nld.pdf I was looking for.

A second time, it had lost the index to iTunes, and found it back in about 2 hours (as the SSD was much more full).

A third time, this trick from [WayBack/Archive.is] Re-Index Spotlight from the Terminal, Re-Gain Valuable Time for Life [OS X Tips] | Cult of Mac worked:

sudo mdutil -E /

This basically re-indexes from the root (/) folder.

I find it easier than the above 6 steps (which are also on [WayBack/Archive.is] Make Spotlight Work Again [OS X Tips] | Cult of Mac).

–jeroen

Posted in Apple, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Pro, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User, SpotLight | Leave a Comment »

Mac OS X Time Machine – Stuck on “Preparing Backup”

Posted by jpluimers on 2016/04/25

For one of my USB backup drives, Time Machine was stuck showing “Preparing Backup”.

tmutil (which has a lot of undocumented parameters) helped me out.

tmutil status would not show any change for hours either:

retinambpro1tb:~ root# tmutil status
Backup session status:
{
    BackupPhase = ThinningPreBackup;
    ClientID = "com.apple.backupd";
    DateOfStateChange = "2015-05-04 19:27:31 +0000";
    DestinationID = "01AE12C7-1D3E-469E-BE7E-32DA30F0030E";
    DestinationMountPoint = "/Volumes/Elements2TB1";
    Percent = "-1";
    Running = 1;
    Stopping = 0;
}
...
retinambpro1tb:~ root# tmutil status
Backup session status:
{
    BackupPhase = ThinningPreBackup;
    ClientID = "com.apple.backupd";
    DateOfStateChange = "2015-05-04 21:13:28 +0000";
    DestinationID = "01AE12C7-1D3E-469E-BE7E-32DA30F0030E";
    DestinationMountPoint = "/Volumes/Elements2TB1";
    Percent = "-1";
    Running = 1;
    Stopping = 0;
}

So I:

  1. removed the .inProgress file found by ls -al /Volumes/Elements2TB1/Backups.backupdb/`scutil --get ComputerName`/*.inProgress
  2. rebooted with the USB drive attached
  3. waited for spotlight to complete
  4. manually started a backup
  5. verified it made progress using tmutil (you need to run that as root, for instance with sudo su -)

And it indeed made progress and finished:

Read the rest of this entry »

Posted in *nix, Apple, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.8 Mountain Lion, Power User, SpotLight | Leave a Comment »

my ScanSnap ix500 has a box too…

Posted by jpluimers on 2016/03/04

So my ScanSnap ix500 has a box too (actually a Leitz Rotho Profiline 10 Schübe drawer). The ix500 scans double sided and takes like 2 seconds per sheet. Works through WiFi (or USB) on both PC and Mac.

This is the process:

  1. I scan and roughly sort the document by destination in a drawer.
  2. A Windows VM creates OCR PDF and puts them into the cloud.
  3. It gets synced to my Macs, where spotlight indexes them by content.
  4. Once a month I split off the parts for my bookkeeper, file important non bookkeeping stuff and shred the rest.
  5. I name files on a selective base (as spotlight is very good at finding the rest).

This is why I like it over scanning with your mobile phone any time:

My ix500 setup just works.

Now I need to optimise the S510 scanned files. Maybe linux – optimize PDF files (with Ghostscript or other) – Stack Overflow (from the same thread) works.

–jeroen

via: Hey everyone, we are currently preparing the next release.

Posted in Fujitsu ScanSnap, ix500, LifeHacker, Power User, Scanners, SpotLight | Leave a Comment »

osx – How to find wifi password on my mac which is already connected – Ask Different

Posted by jpluimers on 2015/12/01

To view a WiFi password on OS X for an SSID you have been connected to before (you don’t need to be connected to it now):

  1. Open “Keychain Access” (for instance by first finding it in Spotlight)
  2. Sort on “Kind”, as the WiFi passwords are of kind “AirPort network password”
  3. In the find box, type your WiFi SSID. Note that – unlike Spotlight – it is:
    1. case sensitive
    2. need to match from the start
  4. Double click the matching entry for keychain “iCloud” (preferred) or “System” (needs additional step)
  5. Put a checkmark in front of “Show password”
  6. Depending on the keychain type:
    1. If it was an “iCloud” keychain
      1. then enter your keychain password
    2. If it was a “System” keychain
      1. Enter your system password
      2. Enter a username and password for the “System” keychain
  7. The password is shown

–jeroen

via: osx – How to find wifi password on my mac which is already connected – Ask Different.

Posted in Apple, Mac OS X / OS X / MacOS, OS X 10.10 Yosemite, OS X 10.9 Mavericks, Power User, SpotLight | Leave a Comment »

Setting the SMB/Netbios name of your Mac

Posted by jpluimers on 2015/03/30

Even after changing the name of your Mac, from the Windows side it still looks like this:

I knew I had solved this in the past, as the MacBook Air showed up correctly in the list:

The trick is that there are 2 names for your Mac: the name for the Apple side of things, and the name for the Windows side of things. For the latter you’d think it would be named SMB or NetBIOS. Read the rest of this entry »

Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User, SpotLight | Leave a Comment »

 
%d bloggers like this: