recover hfs (apple) partition

Upload: tintingmail

Post on 10-Apr-2018

230 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/8/2019 Recover HFS (Apple) Partition

    1/6

    Recovering HFS Partitions

    Apple Partition Recovery (HFS / HFS+)

    Return to University of Delaware Police Forensics Unit home page Background:

    EnCase 6, as of this writing (July 2008), will recognize the EFI / GPT partition tables used with the Intel-based Mac OS X operating system. As EnCase has

    supported HFS / HFS+ file systems for quite a while, it will mount these file systems as defined in the EFI / GPT partition tables.

    Thus, in a perfect world you should need only to point EnCase to the Apple physical drive and the mounting of the Mac fi le system should occur. But, we don'

    live in a perfect world and for a variety of reasons, this may not happen as expected and you may be faced with having to manually recover the Apple parti tio

    There are several reasons why this may happen. Here are a few reasons:

    You don't have EnCase Version 6 and must work with Version 5

    Someone mounted a Mac using target mode on a Windows box. They didn't know what they were doing and ran the Windows initialize disk routine, thblowing out the EFI/GPT partition table

    Other gremlins at work .....

    If you find yourself in a position where you have to manually recover an Apple partition, the below steps should get you through the process.

    Partition Recovery Steps:

    If you mount your Apple physical drive and EnCase returns "Unused Disk Area" in lieu of a mounted file system, first make sure your dongle is inserted and i

    being seen by EnCase. In other words, make sure it is NOT in acquisition mode. While this may seem as simple as saying plug in he power cord and turn

    computer, in all sincerity, this is an important first step!

    If you are sure that EnCase is not in acquisition mode and that your Apple drive is being reported as "Unused Disk Area", as seen below, then you are readstart recovering the partition.

    The first step is to create two keywords, which are "H+" and "HFS". Don't use the quotes and make them case sensitive as shown below.

    Next, start a search of the entire Apple drive for the above two search terms.

    28/05/2010 Recover HFS (Apple) Partition

    stevebunting.org//RecoverHFSPartiti 1/6

  • 8/8/2019 Recover HFS (Apple) Partition

    2/6

    Let your search run for about a minute and then double click on the search progress bar in the lower right corner to stop the search. For a normal default

    installation of an Apple partition, you'll find what you need within less than a minute as the parti tion starts very close to the beginning of the drive.

    Go to your search hits view. Find your "Bookmark Sector" column and drag it over so it appears next to your "Hit Text" column as shown below. Sort by

    "Bookmark Sector" and use the "set included folders" button to cause both keywords to display. In other words "home plate" both keywords. When you areas shown below, you can view both these keywords in the order they appear on the disk (sector sort). At the first occurrence of both these keywords in the s

    sector, you have found what you are looking for. Note that in the below example, H+ and HFS are appearing in sector 409,642. While this is not the precise

    beginning point of the partition, you are very close. You are, in fact, two sectors into the partition.

    Your next step is to switch the right pane to the disk view as shown below. You should note that even though you are sti ll in the "Search Hits" ab, the disk vie

    focus is on the sector (409,642) containing your H+ and HFS search hits, which you can see in the bottom pane of the below screen shot.

    28/05/2010 Recover HFS (Apple) Partition

    stevebunting.org//RecoverHFSPartiti 2/6

  • 8/8/2019 Recover HFS (Apple) Partition

    3/6

    As noted earlier, this sector is two sectors into the HFS+ partition. Before we can insert or rebuild the partition, we must place our focus, in the disk view, on

    sector where the partition starts. Therefore, you need to back up two sectors, as shown below, noting that you are now on sector 409,640.

    Right click on this partition and choose "Add Partition"

    On the screen that follows, you should note that the defaults have been populated for the Apple parti tion that EnCase has now recognized. It is difficult to se

    this screen shot, but the HFSPlus partition type is bolded. Accept these defaults and click OK.

    28/05/2010 Recover HFS (Apple) Partition

    stevebunting.org//RecoverHFSPartiti 3/6

  • 8/8/2019 Recover HFS (Apple) Partition

    4/6

    After you click OK, the partition will be rebuilt. If you return to the Entries tab, you will find the rebuilt Apple HFS+ file system. hile it may seem that you are

    there is another issue to consider. If you search for data, bookmark it, and go to create a report, all data will be reported by EnCase as being found, not in t

    recovered file system, but still in the unused disk space. This is an issue with EnCase for any user inserted parti tion. The work around for this is to create a

    logical evidence file of your recovered partition.

    To create a logical evidence file of your recovered partition, select all of your items in your new partition and right click on the root of the recovered volume,

    choosing "Create Logical Evidence File" as shown below.

    28/05/2010 Recover HFS (Apple) Partition

    stevebunting.org//RecoverHFSPartiti 4/6

  • 8/8/2019 Recover HFS (Apple) Partition

    5/6

    The first screen for logical evidence file properties is one where you can typically accept the defaults and move on by clicking OK.

    On the next screen, give your logical evidence file a name, add notes, choose your compression level, and select a destination.

    28/05/2010 Recover HFS (Apple) Partition

    stevebunting.org//RecoverHFSPartiti 5/6

  • 8/8/2019 Recover HFS (Apple) Partition

    6/6

    When done, add your logical evidence fi le to your case and do your work on it.

    Return to University of Delaware Police Forensics Unit home page

    This web site was created to provide assis tance to computer forensics examiners engaging in cyber-crime investigations. This field is rapidly evolving and changing as technology mar

    forward. It is, therefore, intended to be a growing and evolving resource. As you conduct your examinations and investigations, if you encounter information, links, or have suggestions

    would help others, please let me know so I can add it to this site. My email address is [email protected] . Thank you.

    This site created and maintained by:

    Captain Stephen M. Bunting, CCFT, EnCE

    University of Delaware Police

    Phone 302-645-4334

    Email: [email protected]

    Steve Bunting's Public PGP Key

    Warning to UCE senders / spammers: My email address and any other email address found in this web site are not to be used, extracted, shared, or otherwise added to mailing lis t

    sending Unsolicited Commercial Email (UCE), better known as SPAM. Sending UCE to persons in Delaware is a violation of the Delaware Criminal Code. I specifically revoke any an

    consent to receive UCE at my email address, which is [email protected].

    28/05/2010 Recover HFS (Apple) Partition

    stevebunting.org//RecoverHFSPartiti 6/6