Monday, August 10, 2015

Yosemite Macs - Progress Bar Stops at 50% During Boot

This is a well-known problem at it has been discussed elsewhere.  However, I wanted to put the fix on our KB to avoid having to search for it in the future.

Symptom:  Upon starting up, Yosemite Macs freeze and the progress bar stops at 50%.  This seems to be an issue with FileVault2 encrypted Macs that are bound to AD.

Fix:  If the Mac is encrypted you must first decrypt it.  If it is not encrypted, skip down to "Restart the problem computer in Single User Mode" below.

For encrypted Macs:
  • Target boot the problem machine to a working Mac
  • You will be prompted for the FileVault password in order to mount/access the problem machine.  Make sure you have this or you are pretty much screwed
  • After the target computer mounts, open Disk Utility
  • Select the target computers Macintosh HD
  • Go to File/Turn Off Encryption (I have also seen a report that you can select "Unlock Macintosh HD")
  • The HDD will start to decrypt.  This normally takes around 45 minutes depending on the size of the drive.  You must keep the power connected to the target computer or the decrypting process will pause
  • There is no progress bar so the only way to know that the decryption has finished is to exit/launch Disk Utility and see if the disk still shows "Encrypted"
Note:  When I did this I only waited about 15 minutes and then unmounted the target drive.  This seemed OK and later I checked and the decrypting process had simply paused and continued.  The main thing is that you kick-off the decrypt or unlock the drive.
  • After the drive has decrypted, eject it
 Restart in Single User Mode
  • Restart the problem computer in Single User Mode (Command-S after the startup chimes) 
  • At the command prompt type the following:
bash-3.2# mount -uw /
bash-3.2# /usr/bin/nano /etc/rc.server

The nano editor will open; enter the following lines: 

/bin/echo BootCacheKludge Beta 1.0 - Chris Hotte 2015 - No rights/blame reserved. /usr/sbin/BootCacheControl jettison

Click on ctrl-x and save the file with the default name.

Look at this thread on JAMFNation for the post by Chris Hotte that describes the fix.

After you have done the above, restart the Mac and it should boot normally. 
We created a .pkg that contains the script and we push it out to all our Yosemite Macs prior to encrypting them.


Sunday, July 19, 2015

Setting Apple Software Update (SUS) to get updates from Apple

Use the following command to force your Mac to use Apple for software updates:

sudo defaults delete /Library/Preferences/ CatalogURL

Monday, July 6, 2015

Remotely Disconnect A Session From the Command Line: Windows Server

  1. Go to the Command prompt
  2. Type "qwinsta" for a list of logged in users
  3. Locate the "ID" for the account you want to disconnect
  4. Type "rwinsta [ID number]"
  5. Run "qwinsta" again to ensure that the user was disconnected

Tuesday, May 12, 2015

Preview and Adobe CC Applications Crashing on Launch: OS 10.10 Yosemite

We received a report from an office that 9 out of 10 brand-new MBPs with default Apple Yosemite builds were experiencing crashes when attempting to open documents in Preview.  Additionally, after installing Adobe CC 2014 none of the Creative Suite apps would launch.

Looking at the console log we found that Quicklook was crashing and re-spawning several times a second:

Expanding the line item we saw that Quicklook was unable to set its current working directory:

It turns out that a symlink to /private/tmp was missing.  We navigated to the root directory and recreated it using the following command:

sudo ln -fs /private/tmp /tmp

After a restart we saw that  Quickview crashes had stopped and we were able to open both Preview and Adobe CC applications.