August 2014 - Hawkdive

Wednesday, August 20, 2014

Fix Spotlight searching and indexing issue

Wednesday, August 20, 2014 0
Spotlight – Apple's system-wide search engine – was introduced way back in 2005 when OS X 10.4 Tiger was released.

Spotlight is a system-wide desktop search feature of Apple's OS X and iOS operating systems. Spotlight is a selection-based search system, which creates a virtual index of all items and files on the system.
It provides fast desktop searching by extracting metadata in the background and storing the indexed metadata for future searches. When a query is made, the indexed metadata is searched for matching files.

Spotlight is a very useful resource in finding documents because it has the ability to search for text within a document as well as text in the title. This process, however, must require a large amount of processing power and time.

You can access Spotlight from its menu bar icon or in any Finder window.It looks like a magnifying glass on the upper right hand side of the menu bar or you can press Command + Space Bar to show or hide the Spotlight Search field.

Spotlight starts finding files when you begin typing in the Spotlight search field. It will display applications, files, and folders whose names match your search criteria, as well as files that contain your criteria within them, such as in text documents, applications, emails, calendars, and more. For example, if you type "itunes", Spotlight will locate the iTunes application, as well as folders, System Preferences, and web searches that contain the text "itunes" or media files in them.

Spotlight Indexing

Spotlight does not find everything on its own it will only find the ones you have permission to view and access.Spotlight also ignores files in the trash, the ones inside zipped archives and disk image (.dmg) files. Time Machine backups are ignored, as are certain System files.

Sometimes Spotlight doesn't behave properly, or perhaps doesn't know about files or folders that have just been created. Sometimes, it just forgets about files on external drives.And this is very annoying situation.For example, I saved a file with the name delegate in my documents and when I search it in the Spotlight it just doesn't find it and returns the result as shown in the Pic- 31(b).

So when it does not work, you will need to rebuild the entire Spotlight index on your Mac.Here’s how to start the re-indexing process of an entire drive.

How to start the reindexing process of an entire drive

Method 1

  • Launch System Preferences from the Apple menu.
  • Click on “Spotlight” and then click on the “Privacy” tab.
  • Drag Macintosh HD (and other drives if necessary) into this window.


  • After it is dragged to this privacy box a confirmation dialog box appears.


  • Click “OK” when asked to confirm and wait for a minute.
  • Now select the drive(s) you just added and click the “-” minus button to remove it from the list.and your Mac will create a new Spotlight Index.

This also works for external drives that aren’t indexing properly. Just drag them into the window, then remove them. To check on the progress just click the spotlight icon (magnifying glass) in the menu bar.

If this doesn’t initiate reindexing of the drive, you may need to initiate it manually through the command line.

Method 2

Open Terminal from Applications/Utilities folder and use the following command string to rebuild the Spotlight index for your Mac.

sudo mdutil -E /

After pressing enter, you'll be required to enter your password (because this command runs as a super user). After you do that, you will notice after a few minutes that when clicking the Spotlight button in the menu bar, Spotlight will show that it is currently indexing your system.

Next type the following command and hit return and type the password when asked.

sudo mdutil -i on /

Spotlight will begin building the index within a few minutes of issuing this command.Also note, that usually re-indexing Spotlight can take a while. it may take 30 minutes to an hour or two.

This terminal method can also be used to re-index specific external drives on your Mac. To do this all you need to do is modify the ending of the above code. I’ll give an example. I have an external drive called MyExtDrive. To re-index it in Spotlight I’d type in:

sudo mdutil -E /Volumes/MyExtDrive/

If you have an external drive you want to re-index, just replace the “MyExtDrive” part with the name of your drive.

Method 3 - Final Method when nothing works

When nothing works and you have tried everything you need to use the following guaranteed way to re-enable Spotlight indexing.

1. Open up the Terminal (found in /Applications/Utilities/) and enter the following commands based on the need to either disable or reenable Spotlight indexing.

sudo launchctl unload -w /System/Library/LaunchDaemons/

After the above mentioned command has executed the indexing is disabled.You’ll immediately notice that Spotlight is suddenly impotent, and returns only the generic “Search the Web” and “Search Wikipedia” options for each inquiry.

2. Now type the following command to Re Enable the spotlight indexing.

sudo launchctl load -w /System/Library/LaunchDaemons/

3. After running this command, restart the computer and you are done with the troubleshooting as your spotlight will start working normally.

1. To prevent a specific folder or file from being indexed by Spotlight, add a “.noindex” extension to it.
2. You can use Spotlight like a calculator--simply type a mathematical expression in the search field.
Read More

Thursday, August 14, 2014

Safari asks for Keychain access password everytime I open it.[ FIXED ]

Thursday, August 14, 2014 0
If you are using your MacBook for business purposes, you can save time by enabling the Safari Web browser’s AutoFill feature to automatically enter your personal information into Web page forms for you. For example, AutoFill can take care of your user name, password an credit card information when you log in to a site or enter your contact information into a form. However, if you want to prevent unauthorized people from using your MacBook and accessing pages with your personal information, you can disable the AutoFill feature.

What is Keychain and Keychain Access?

The keychain file stores a variety of information including a title, URL, notes and password. Only the passwords and Secure Notes are encrypted.A keychain can store all your passwords for applications, servers, and websites, or even sensitive information unrelated to your computer, such as credit card numbers or personal identification numbers (PINs) for bank accounts.

Keychain Access is a Mac OS X application that allows the user to access the Keychain and configure its contents, including passwords for websites, web forms, FTP servers, SSH accounts, network shares, wireless networks, encrypted disk images, etc.

The default keychain file is the login keychain, typically unlocked on login by the user's login password, although the password for this keychain can instead be different from a user’s login password, if changed for additional security.In Mac OS X, keychain files are stored in ~/Library/Keychains/, /Library/Keychains/, and /Network/Library/Keychains/, and the Keychain Access GUI application is located in the Utilities folder in the Applications folder.

The keychain can be set to be automatically "locked" if the computer has been idle for a specified time, and can be locked manually from the Keychain Access application. When locked, the password has to be re-entered next time the keychain is accessed, to unlock it. Overwriting the file in ~/Library/Keychains/ with a new one (e.g. as part of a restore operation) also causes the keychain to lock and a password is required at next access.

When you connect to a network server, open an email account, or access any password-protected item that is keychain-aware, your keychain can provide the password to it so you don't have to type the login password.

You start with a single keychain, which is created automatically the first time you log in to your Mac OS X user account. Your default keychain has the same password as your login password. This keychain is unlocked automatically when you log in to Mac OS X and is referred to in Keychain Access menus as the "login" keychain.

When keychain problems occur

Keychain problems occur when a user's login password does not match their keychain password.  This can be caused by using authentication methods other than the standard OS X local account system.For example, in your Office or University Mac you log in with your Domain or Exchange account credentials. However, when a user changes their Domain or Exchange password, or you reset your OS X log in password using OS X system recovery, Keychain does not recognize the change automatically

When the password used to log into the machine does not match the current keychain password, the keychain does not unlock for use with password management.  The user is able to log onto the machine, but applications that use the keychain system, such as Safari or Outlook, will give the user an error message stating that the application wants to use the "login" keychain.  It will ask for the keychain password.Pic-30(a) below shows a typical keychain request for Safari.

If a user clicks Cancel, the message will return again.  If a user clicks Cancel a second time, the message goes away and the application continues to open.  However, if the warning is cancelled, saved password information will not be available while using the application.

Changing your keychain password

When a keychain mismatch occurs, the user must change their keychain password to match the password used to log on to the machine.  To correctly change your keychain password, the user will use the application Keychain Access. Keychain Access is located in Applications\Utilities.

To change your keychain password:
  1. Select "login" under the list of keychains. 
  2. From the menu at the top of the screen, click Edit.
  3. Change password for keychain.
  4. Select Change Password for Keychain "login".
  5. Enter the current keychain password.  Remember that the "current" keychain password is the password previously used to log into the machine, before your most recent password change.
  6. Enter your new password and verify.  The new password you enter should match the password you used to log into the machine.

When Users cannot change their keychain password 

Sometimes a user will be unable to change their keychain password.  This can occur if a user forgets what their previous login password was. Also if a keychain has become corrupt, you will not be able to change it. In those instances, it may be necessary to manually delete and recreate your keychain.

WARNING!  Manually deleting your keychain will effectively erase all stored passwords on the machine.  You will have to re-enter passwords that are normally provided for you automatically.  Online passwords such as logging on to websites in Safari will have to be re-entered into your new keychain.

Manually deleting the keychain

Method 1.

This should only be attempted by advanced users or tech support personnel.

1. Delete the user’s login.keychain file (or move it to a different location). This can be found in the Keychains folder, which is located in the User’s Library folder.

safari keeps asking for login keychain password

2. Relaunch Safari, or the afflicted app. On relaunch you will be presented with the ‘Keychain Not Found’ dialog box which states that ‘A Keychain cannot be found to store “Safari” [or other app]‘. Click ‘Reset To Defaults’.
safari keeps asking for login keychain password
Reset the keychain to default

3. A dialog asking you to confirm the keychain reset appears. Click “Yes”.

safari keeps asking for login keychain password
Reset the keychain to default
4. Finally you will be prompted to enter the user’s login password in order to create the new keychain. Do so and click ‘OK’.

safari keeps asking for login keychain password
safari keeps asking for login keychain password

5. Relaunch Safari or the afflicted app. That’s it! Problem solved and no more dialog boxes.

Method 2.

1. Open Keychain Access (located in /Applications/Utilities).
2. Go to the File menu and select Delete Keychain "Login.".

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password

3. A confirmation dialog box appears/Select "Delete References & Files"

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password
4.Now quit the Keychain and you will no longer be bugged by Keychain password prompts.

Important Note: If a network or mobile account password is changed by an administrator, or if the password expires as part of a directory security policy, the keychain must be updated upon next login. In most cases the OS will prompt the user with the message "The system was unable to unlock your login keychain", followed by these options…

Continue Log In;
Create New Keychain;
Or, Update Keychain Password (default and recommended choice).
In this scenario also you should update or change your Keychain Password.

Safari saves user names, passwords, and credit card information in your OS X keychain. If you set up your Mac and other devices for iCloud Keychain, iCloud pushes all that information to your other devices’ keychains.

Important: Safari autofills your information for anyone you let use your Mac. If you set up iCloud Keychain on your Mac and other devices, Safari also autofills your information for anyone you let use those devices.
For security, set up your Mac to display the login window when it starts up and to require a password after sleep or a screen saver begins. Set up your iOS devices to require a passcode to unlock the screen.

Issue: Safari asks for keychain login password everytime I open it when you know the correct password.

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password

Reason 1. The problem is that your "login" keychain is locked. So, every time Safari wants to access it (for whatever reason), it has to get a password to temporarily unlock it. But, if you keep "login" unlocked permanently, your problem will be solved. Here are steps to permanently unlock your keychain:

1. Open Keychain Access (located in /Applications/Utilities)
2. Go to the "Keychain Access" menu and select "Preferences"
3. Click the "First Aid" tab
Safari keeps asking for login keychain password
Safari keeps asking for login keychain password

4. Make sure the "Synchronize login keychain password" box is checked
5. Close the Preferences window
6. Go to the "Keychain Access" menu and select "Keychain First Aid"
Safari keeps asking for login keychain password
Safari keeps asking for login keychain password
7. Enter your username and password
8. Click the "Repair" button and click "Start".

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password
9. Now, the password for 'login' will be the same as the password for your account.
10. Go to the "File" menu and select "Unlock Keychain 'login'".

11. Type your account password and then press OK.
12. You are done! Safari shouldn't ask you for a keychain password, and neither should any application, for that matter.

Reason 2. Your Keychain preference files may be corrupted. Locate this file 


Drag that file from your Preferences folder to the Trash and restart your Mac.You need not to fear losing the data stored in your keychain when you move/Trash this file. The file doesn’t contain any of your keychain data.

If that doesn't help...

1) Quit Safari.
2) Open Keychain Access. (Applications/Utilities) Find the "Safari AutoFill" item. Delete it.
Safari keeps asking for login keychain password
Safari keeps asking for login keychain password

3) Relaunch Safari. Next time it asks for authorization, click "Always Allow".

If Safari is set to automatically fill in forms for you, you can turn off this feature and delete any information that Safari stored.

  • Open Safari if it is not already open.
  • Choose Safari > Preferences, and then click AutoFill.
  • Click the three check boxes next to the “Using Info from my Contacts Card,” “User Names and Passwords” and “Other Forms” options to uncheck them. This prevents Safari from using AutoFill when you visit websites that have forms for you to fill in.
Now next to “Other forms,” click Edit.
A list of websites where you normally fill in information such as your name and email address appears.
Select individual websites and click Remove, or click Remove All.
Click Done.

Note: If above shown method does no good (though I’m not sure why it wouldn’t), launch Keychain Access, choose Preferences from the Keychain Access menu, and in the General tab of the resulting window, click the Reset My Default Keychain button. You’ll be prompted for your administrator’s password. When you choose this option your old default keychain (which is likely the “login” keychain) is renamed and a new empty login keychain is created. You do this simply to get a fresh start. All your old keychain entries will be gone, so we’ll hope that you’ve written down your passwords and login information so you can reenter them when prompted.
Safari keeps asking for login keychain password
Safari keeps asking for login keychain password

Read More

Monday, August 11, 2014

Can not see Clear History in the history menu of Safari on Mac.

Monday, August 11, 2014 0


If you have a habit of clearing history of safari from History menu in just one click but all of a sudden you can not find the clear history option in the history menu of Safari on mac.Follow the below mentioned step to fix this issue.

Step 1. You should first check if the Private browsing is enabled Private Browsing. Private Browsing keep Safari from saving your browsing history.So uncheck the Private Browsing from the Safari menu.

When you uncheck the Private Browsing option it will ask for the confirmation so click on OK to turn it off.

Step 2. Click on the Safari menu and select Preferences and then under preferences click on the general tab then under general change the value for Remove history items to Manually as shown in the picture- 28(d) below.

Restart the Mac and then check Safari , now you should see clear history under history menu of Safari.

Tips: Sometimes resetting the safari also fixes these small issues so you could also try resetting the safari directly.

Sometimes the Empty Cache option is disappeared from the Safari or you can not see the develop menu in the Safari menu bar.So here is the step to bring the Develop menu back in safari.


Display the Develop Menu In Safari

  • Launch Safari, located at /Applications/Safari.
  • Open Safari’s Preferences by selecting ‘Safari, Preferences’ from the menu.
  • Click the ‘Advanced’ tab labeled.
  • Place a check mark next to ‘Show Develop menu in menu bar.’

Enable Develop menu in Safari

The Develop menu will appear between the Bookmarks and Window menu items. The Develop menu is particularly handy for web developers, but casual users may also find the first two items extremely helpful in their daily browsing. The ‘Open Page With’ menu item lets you select any installed browser to reopen an open web page from within Safari. The ‘User Agent’ menu item lets you see how an open web page looks in a variety of Mac and Windows browsers and versions.

Read More

Saturday, August 2, 2014

How to disable faulty CD\DVD Drive from your Mac OS X?

Saturday, August 02, 2014 3

Disable the faulty CD\DVD Drive from its operation

If your Mac's CD\DVD drive is not working, its malfunctioning, creating screechy noise or if the drive is broken and makes angry noises when it spins up, the noise is becoming a problem when using your computer in class or if you want to disable the CD\DVD drive on your Mac completely for security reasons then here is the solution for disabling the CD\DVD drive on your Mac completely.
Drive drive showing in Disk Utility
CD\DVD Drive in Disk Utility

To disable faulty DVD/CD drive on Mac OS X

1.Go to /System/Library/ by clicking on the Go in Finder menu bar and then Selet the Go to folder and type /System/Library/ and click go.
2. Open Extensions folder and look for file IODVDStorageFamily.kext and IOCDStorageFamily.kext.
3. Copy both the files to a folder so the you can re-enable CD\DVD on your Mac when you want.
5. Now move the IODVDStorageFamily.kext and IOCDStorageFamily.kext file from /System/Library/Extensions/ to the new folder.If you can not move it due to any reason drag and drop it to the new folder to copy it.After copying it simply delete it and send to trash.
6. Now reboot the computer and it will be gone.

To Re-Enable DVD/CD drive in Mac OS X

Simply Move both the .kext file ( IODVDStorageFamily.kext and IOCDStorageFamily.kext  ) back to "/System/Library/Extensions," and then reboot the computer to make the CD/DVD drive active again.
If you can not move it due to any permission issues.So, instead of moving, rename the extension to .kexta (converts the file from a package to a folder ), and then rename it back to .kext.

Tip: What to do to eject a stuck CD or DVD from the optical drive
Ejecting the stuck disc can usually be done in one of the following ways:
1. Restart the computer and after the chime press and hold the left mouse button untill the disc ejects.
2. Click on the Eject button in the menubar.
3. Press COMMAND-E.
4. Click the eject icon in the Finder's sidebar.
5. If none of the above work try this:Open the Terminal from Utilities folder.At the prompt enter or paste the following:

/usr/bin/drutil eject

If this fails then try this:

Boot the computer into Single user mode.At the prompt enter the same command as used above.To restart the computer enter "reboot" at the prompt without quotes.

And finally if that all does not work look for a small mechanical eject hole on the edge of the DVD drive.Insert a Straightened paper-clip straight to the hole.and it will eject the drive tray.
For a detailed troubleshooting go to "How to eject CD\DVD drive in Mac".

*******End of Article*******

disable CD dvd drive,Disable CD dvd drive on mac,stop cd dvd drive from making noise,
Read More