Apple Mac Time Machine Back Up

I have lost count on the amount of times we have received hard drives for data recovery from Mac customers, who are not aware of the Time Machine back software. Time Machine has been preinstalled in every version of OS X since 10.5. This software is easy to setup, and once the first backup of the internal hard drive is complete, it will then carry on backing up as you create new data.

As a small business or personal user it is ideal for your everyday backup needs.

 

ST9320421ASG Head Crash

This hard drive was from a Macbook Pro. As you can see in the image, loss of data was caused by a severe head crash.  The damage is so severe you can actually see through the top foil layer to the glass platter beneath. Another good reason why Mac users should make sure they backup regularly.

ST9320421ASG Head Crash
ST9320421ASG Head Crash

Finding Mac Version The Easy Way

If you want to find out which version of Mac OS X is installed on a drive, but cannot boot into it, there is a plist file that holds the version number.

The file can be found at:
Macintosh HD > System > Library > CoreServices > SystemVersion.plist

Mac OS X System Version
Mac OS X System Version

 

 

 

The SystemVersion.plist file should look a bit like the picture below. I have outlined the relevant part in red:

System Version Plist
System Version Plist

 

 

 

 

 

 

 

 

 

Update.

Alternatively you could paste the following command into terminal:

defaults read defaults read /System/Library/CoreServices/SystemVersion.plist | grep "ProductVersion"

This will show you the version of the currently booted system. You would need to change the first bit if you wanted to find out from another mounted drive.

The output will be:

    ProductVersion = "10.7.2";

In my limited testing, this seems to have an error when run from 10.5. It says the file doesn’t exist. I will look into this some more.

MacBook Pro Glitching Fix

Just fixed an annoying problem that started when I upgraded to Lion. When dragging something to the dock from finder, or from a stack to Finder there would be a flash of strange coloured graphics at random points around the screen. It’s gone too fast for me to do a screenshot but I may try to get a small video of it.

Anyway, the fix is easy and involves turning the dock from 3D to 2D mode.

The Terminal commands are as follows:

defaults write com.apple.dock no-glass -boolean YES
killall Dock

The first command sets the Dock into 2D mode, the second command resets the Dock to allow the changes to be seen.

Below is the About This Mac screen. It’s an old (Powerbook G4 Style) MacBook Pro, Core 2 Duo.

Now I just need to find out why it takes so long to boot up.

MacBook Pro - About This Mac

Make a file or folder hidden in Finder

Sometimes when we clone a Mac drive using unconventional methods, it works fine, but has an annoying side effect; Files that are usually hidden in the Finder are instead displayed and accessible to users. These files are hidden for a reason, and contain things like the UNIX system files and some Mac system files which you probably shouldn’t mess with.

Luckily there is a simple terminal command to make these files hidden again. It doesn’t delete them, just changes their file attributes.

sudo chflags hidden filename

sudo allows you to run commands as Super User so be careful! It will ask for a password (but not display it as you type…)

Where it says filename you can either replace it with a file or folder name, or drag a load of folders onto the terminal window and it will fill out the names for you.

An example below:

sudo chflags hidden /var

That would hide the var folder on the root of the boot drive.

I found this really helpful but as usual use it at your own risk…

Mac Data Migration

Portsmouth Data Recovery

If we recover a good amount of your data, the easiest way to get your Mac running again is using the Migration Assistant – a standard Apple utility included with all modern versions of Mac OS X.

The process for restoration varies a little bit depending upon how your Mac is currently set up.

Best Case Scenario:

If you have a new hard drive with a fresh system installed, and have not yet clicked through the Setup Assistant screens follow this guide. >>>

2nd Best Case Scenario:

If you have a new hard drive and have set it up with a username you will need to follow this slightly more complicated guide. >>>

Mac migration to a previously setup system

So you have a Mac which boots up to a desktop as normal, but without your recovered data. This is not quite ideal, and gives us a few things to sort out before the migration. If you’ve not yet had your data recovered, check our Mac Data Recovery Services.

Arrange.

Migration Assistant
Migration Assistant

You will first have to backup any newly created data. If something goes wrong with migration then you don’t want to lose your new data. If this new system has been created with the same username as the old one, you will not be able to import the old user without renaming which is not advised. After you have backed up your files, you could open “System Preferences / Users & Groups,” (“Accounts” in pre Lion systems) and rename the current user to something else. This will allow you to transfer your original user account and Applications into the correct locations on the new system. If your system is set to automatically login to a user account (ie. doesn’t require a password when you boot) then you will need to turn off “Automatic Login” setting under Users & Groups to allow you to access the old user account.

Fingers crossed you should be ready to migrate.

Connect.

Connect the new hard drive to your Mac. If it’s a desktop 3.5” drive then plug in the power adapter and switch it on. If you are restoring to a laptop then it would be a good idea to have the AC adapter plugged in, as this can take a while.

Migrate.

Go to “Applications / Utilities” and launch “Migration Assistant”. Choose “From another Mac, PC, Time Machine Backup or other disk.” Then choose the second option; “From Time Machine Backup or other disk.” You should see the orange icon for the external drive, labelled with your job number. Click on it and then click continue.

Select.

You can choose to migrate everything, or be a bit selective. You cannot choose individual files to migrate, only whole user accounts, Applications, Settings, and other files. Make your choice and click next.

Wait.

The migration itself can take a while depending how much data you have. Once complete you can boot into the Mac and it will feel very familiar. As if nothing ever failed. If you backed up any files from the new system then now would be a good time to load them back on.

Migration Assistant generally does a good job of transferring your data and software. If any software installs files into the Mac system in unusual locations it may need to be reinstalled, but most Applications like Microsoft Office and Adobe Photoshop will be transferred correctly.

Mac migration to a freshly installed system

If you have a new drive in your Mac with a fresh system, this guide shows you how to get the recovered data back in the right places. We can transfer your whole user account and most Applications into the correct locations on the new system. When you reboot, the Mac will be back how you left it when the hard drive failed. Perfect!

Connect.

Connect the new hard drive to your Mac. If it’s a desktop 3.5” drive then plug in the power adapter and switch it on. The Mac should be off at this point. If you are restoring to a laptop then it would be a good idea to have the AC adapter plugged in, as this could take a while.

Power.

Power on the Mac, and wait for it to load the setup assistant. You will be asked a few questions so answer as necessary.

Migrate.

Choose “Migrate from another disk or Time Machine backup,” and then click next. You should see the orange icon for the external drive, labelled with your job number. Click on it and then click continue.

Select.

You can choose to migrate everything, or be a bit selective. You cannot choose individual files to migrate, only whole user accounts, Applications, Settings, and other files. Make your choice and click next.

Wait.

The migration itself can take a while depending how much data you have. Once complete you can boot into the Mac and it will feel very familiar. As if nothing ever failed.

Setup Assistant generally does a good job of transferring your data and software. Some software installs files into the Mac system in unusual locations & may need to be reinstalled or re-downloaded. Most Applications like Microsoft Office and Adobe Photoshop will be transferred correctly.

Show or Hide Mac Files – Simple Bash Scripts

Had to make these little scripts today.
All they do is change AppleShowAllFiles to either YES or NO and then relaunch the Finder.

No warranties for this, just thought it may help somebody out. 

WARNING: This May Not Work, Or May Break Something. Keeping it online for reference only. 

Script contents below:

#!/bin/bash
defaults write com.apple.Finder AppleShowAllFiles NO
killall Finder && open /System/Library/CoreServices/Finder.app

You may need to chmod +x to get these to run.

Download Show Hide Mac Files / Folders Script.zip Download removed as I no longer use this, and I’m not sure if it still works. 

Dealing With RAW Data

What is Hard Drive Encrytion

What is RAW data?

Raw Data Recovery 1
Some Raw Word documents

Raw data is what we get when we recover files without their folder and file names. Instead of a My Documents folder, with photos and documents arranged into separate folders, what we get is a folder named JPEG for example, with thousands of consecutively numbered jpg files. The same with office documents, you would get a folder with thousands of doc, xls, docx or xlsx files.

These raw files will be fully usable and contain all the same info that they did originally. You will still be able to open them, edit them and save them, they are just unnamed.

Why is this data in RAW format?

When we recover data, we always prefer to get it back in the original structured form. When data has been deleted from a Mac, or when a hard drive has been reformatted and then partially overwritten, it can be impossible to rebuild all of the data in structured form, as the structure has been overwritten or damaged. This is when we opt for RAW files.

With a RAW recovery, what we are basically doing is searching the whole hard drive for files in known formats. This means we usually get a lot of office documents, jpg images, photoshop psd files and some others. If we need to find an unusual file type then we need a few sample files to be able to generate the correct scan info. RAW recovery is not always possible for every type of file. An example is Apple Garageband project files, which are actually just folders with the name .band on the end. On the mac, these folders are treated as packages, with folders and files inside that you don’t usually see,  (If you right click one and choose ‘Show Package Contents’ you will see what I mean,)  but for the purposes of RAW recovery we cannot get back those files. (We would however get back the RAW AIFF files and recordings from within the projects. It’s not ideal but may be better than nothing.)

What to do with the RAW files

If there is only a small number of files, then you can manually open them all up, see what’s inside and then rename them to something useful. Luckily, for certain file types, there are other ways to make sense of them. It’s called meta data, meta tags or EXIF data.

This meta information is stored inside the files, so even if the file and folder names are lost, we still have the tags.

A brilliant piece of software called Amok EXIF sorter will plough through thousands of jpg files, read their date tags and then place them in dated folders. It can also do other fancy things with tags, but default setting will create a decent structure.

For music, iTunes or any other music manager will usually rename the files in the library based on the artist and album tags. In iTunes, just make sure it is set to: ‘Keep iTunes media folder organised.’

Document files such as doc, docx, xls and xlsx also have some useful tags that we can use to make sense of the masses of numbered files.

Raw Data Recovery
Raw File Tags

In Windows, set the View to ‘Details’ and you should see a series of headings such as Name, Date Modified, Type, and Size. Date modified will show the date that the files were recovered so is useless for this task, however if you right click on this heading you will see other available columns, with ticks beside a few of them. The ‘More…‘ option at the bottom contains loads of tags that we can use to sort the data.

Good headings for office documents are Author and Date last saved. You can experiment and see if any of the other tags are more useful to your specific data.

Good headings for jpg files are Date taken (Date picture taken) and Camera model. Again, there are others which may be useful.

Raw Data Recovery
Raw Files Showing Author Tag