I believe the motherboard on my macbook died, so I'm trying to recover the information on the disk. I pulled the hard drive from the macbook and plugged it into one of my SATA ports on my Ubuntu machine. Unfortunately, I can't seem to mount it:
mgilson@iris:~$ sudo fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 38914 312571223+ ee GPT
Disk /dev/sdc: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005ee8d
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 29274 235141120 83 Linux
/dev/sdc2 29274 30516 9973761 5 Extended
/dev/sdc5 29274 30516 9973760 82 Linux swap / Solaris
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008695d
Device Boot Start End Blocks Id System
/dev/sdd1 1 243201 1953512001 83 Linux
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000efe53
Device Boot Start End Blocks Id System
/dev/sdb1 1 243202 1953514583+ 8e Linux LVM
It's the 320Gb disk, so it should be on /dev/sda1
if I understand this stuff correctly. Unfortunately, when I try to mount it:
sudo mkdir /media/Mac
sudo mount -t hfsplus /dev/sda1 /media/Mac
I get the following error:
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Looking at the output of tail
, I get:
[ 1325.009342] hfs: unable to find HFS+ superblock
So, perhaps this isn't an HFS+ partition. Is there any way to detect what kind of partition it is?
/dev/disk/by-…
these by directories categorise all disks that the OS finds by different keys. Such as id, guid, label, path. You should be able to find the partition using there no need for `fdisk or similar tools.