damaged partition on USB disk. Please help me reconstruct it.
Hello,
I have a Seagate 2TB USB 3.0 disk that suddenly has stopped working under Mac OS X Mavericks. The system won't recognise it. The funny thing is that if I attach the disk to my QNAP NAS, the disk is seen just fine by the OS. I've read multiple websites with similar experiences; it seems to me as if the Mac OS X isn't as permisive as linux OS... and boy, is that annoying 😟
I came across this article: http://perrohunter.com/repair-a-mac-os-x-hfs-partition-table/#comment-4644 . I must say that I got my hopes high when I started reading the post, because I felt it described my very same situation. Unfortunatelly, when I got to step #8, Mavericks would complain about the resource being busy, thus getting me stuck in there 😟
When the disk is hooked up on my NAS, I can see the data just fine. I just want to be able to mount the disk one last time under OS X in order to transfer all the Time Machine backups I have there...
A few details:
fdisk
macminiserver:testdisk-7.0-WIP marc$ sudo fdisk /dev/rdisk5
Disk: /dev/rdisk5 geometry: 243201/255/63 [3907029167 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: AF 1023 254 63 - 1023 254 63 [ 2 - 3907029165] HFS+
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
macminiserver:testdisk-7.0-WIP marc$ sudo fdisk -d /dev/rdisk5
2,-387938131,0xAF,-,1023,254,63,1023,254,63
0,0,0x00,-,0,0,0,0,0,0
0,0,0x00,-,0,0,0,0,0,0
0,0,0x00,-,0,0,0,0,0,0
macminiserver:testdisk-7.0-WIP marc$ sudo gpt -r -vv show /dev/rdisk5
Password:
gpt show: /dev/rdisk5: mediasize=2000398933504; sectorsize=512; blocks=3907029167
gpt show: /dev/rdisk5: MBR at sector 0
start size index contents
0 1 MBR
1 1
2 3907029165 1 MBR part 175
gdisk
macminiserver:testdisk-7.0-WIP marc$ sudo sudo gdisk /dev/rdisk5
GPT fdisk (gdisk) version 0.8.10
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************
Warning! Main partition table overlaps the first partition by 32 blocks!
You will need to delete this partition or resize it in another utility.
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Command (? for help): r
Recovery/transformation command (? for help): ?
b use backup GPT header (rebuilding main)
c load backup partition table from disk (rebuilding main)
d use main GPT header (rebuilding backup)
e load main partition table from disk (rebuilding backup)
f load MBR and build fresh GPT from it
g convert GPT into MBR and exit
h make hybrid MBR
i show detailed information on a partition
l load partition data from a backup file
m return to main menu
o print protective MBR data
p print the partition table
q quit without saving changes
t transform BSD disklabel partition
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu
Recovery/transformation command (? for help): o
Disk size is 3907029167 sectors (1.8 TiB)
MBR disk identifier: 0x00000000
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 3907029166 primary 0xEE
Recovery/transformation command (? for help): p
Disk /dev/rdisk5: 3907029167 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 12A8F4C9-1F60-4D7A-8109-96F6D0A1596F
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029133
Partitions will be aligned on 8-sector boundaries
Total free space is 0 sectors (0 bytes)
Number Start (sector) End (sector) Size Code Name
1 2 3907029166 1.8 TiB AF00 Apple HFS/HFS+
Recovery/transformation command (? for help): w
Warning! Main partition table overlaps the first partition by 32 blocks!
You will need to delete this partition or resize it in another utility.
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Aborting write of new partition table.
pdisk
macminiserver:testdisk-7.0-WIP marc$ sudo pdisk /dev/rdisk5
Password:
pdisk: No valid block 1 on '/dev/rdisk5'
Edit /dev/rdisk5 -
Command (? for help): i
pdisk: can't open file '/dev/rdisk5' for writing (Resource busy)
I would appreciate your help very much.
Thanks in advance
Mac mini, OS X Server