A photo of Mitesh Shah

Mitesh Shah

Linux Enthusiast
System Administrator

Email Skype Github Twitter Google+ Resume Hire Me Keybase LinkedIn Stackoverflow


Overview

Requirements

  • Internet Connection
  • Ubuntu Live USB/CD/DVD

Data Recovery Process

  • Boot From Ubuntu Live USB/CD/DVD
  • Connect to Internet
  • Enable Universe packages using Software Sources
  • Install hfsprogs packages
$ sudo apt-get install hfsprogs

Find MAC OSX HFS+ Partition

  • Use fdisk command to find the Mac device.
$ sudo fdisk -l

Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 00006451-5A98-0000-F944-0000E3560000

Device         Start       End   Sectors   Size Type
/dev/sda1         40    409639    409600   200M EFI System

NOTE!: using fdisk didn’t show the Main Partition of mac, It shows only one partition.
The above partition sda1 is the EFI partition (boot partition).
That means, /dev/sda2 is your Mac partition.

Check/Repair MAC OSX HFS+ Partition

  • You need to do fsck check on your Mac partition
$ sudo fsck.hfsplus /dev/sda2
** /dev/sda2
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
** Checking multi-linked files.
** Checking Catalog hierarchy.
** Checking Extended Attributes file.
** Checking volume bitmap.
Volume Bit Map needs minor repair
** Checking volume information.
** Repairing volume.
** Rechecking volume.
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
** Checking multi-linked files.
** Checking Catalog hierarchy.
** Checking Extended Attributes file.
** Checking volume bitmap.
** Checking volume information.
** The volume Macintosh HD was repaired successfully.
  • Hurray! It is repaired now…
  • Now you can copy your files using Ubuntu File Manager.




Post Navigation