Corrupted encrypted disk - please help!

Dear Experts,

I’ve got a 1TB WD Elements external hard disk that was formatted into a single partition MacOS X Journaled and encrypted, it worked well since I connected it to my new MacBook Pro 2016 15” suddenly the disk stopped working. Now when I run First Aid in Recovery mode this is what I get:


“First Aid found corruption that needs to be repaired. To repair the startup volume, run First Aid from Recovery.”


Here under the details:User uploaded file

Checking prerequisites

Checking the partition list

Checking the partition map size

Checking for an EFI system partition

Checking the EFI system partition’s size

Checking the EFI system partition’s file system

Checking the EFI system partition’s folder content

Checking all HFS data partition loader spaces

Checking booter partitions

Checking booter partition disk2s3

Verifying file system.

Checking Journaled 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 Boot OS X appears to be OK.

File system check exit code is 0.

Checking Core Storage Physical Volume partitions

Problems were found with the partition map which might prevent booting

Operation successful.


My partition is gone, no volume, nothing…

Do you have any idea how I can get back my data?

Thanks!!!!

MacBook Pro (15-inch, Late 2016), macOS Sierra (10.12.3)

Posted on Mar 7, 2017 12:26 AM

Reply
16 replies

Mar 8, 2017 2:52 AM in response to dot.com

Thanks dot.com!

Here under the output of the two terminal commands:

User uploaded file

User uploaded file

Here under the output from an older version of Disk Utility under Yosemite:


Verifying and repairing partition map for “WD Elements 25A2 Media

”Checking prerequisitesChecking the partition list

Adjusting partition map to fit whole disk as required

Checking for an EFI system partition

Checking the EFI system partition’s size

Checking the EFI system partition’s file system

Checking the EFI system partition’s folder content

Checking all HFS data partition loader spaces

Checking booter partitionsChecking booter partition disk1s3

Repairing file system.

Checking Journaled 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 Boot OS X appears to be OK.

File system check exit code is 0.

Updating boot support partitions for the volume as required.

Reviewing boot support loaders

Checking Core Storage Physical Volume partitions

Repairing storage system

Checking volumedisk1s2:

Scan for Volume Headers

Invalid Volume Header @ 0: incorrect block type

Invalid Volume Header @ 999826611712: unsupported format

disk1s2 did not complete formatting as a CoreStorage volume

Storage system check exit code is 1.

Problems were encountered during repair of the partition map

Error: This disk needs to be repaired. Click Repair Disk.


Thanks again for your help!

Apr 10, 2017 2:40 PM in response to dot.com

thanks dot.com! Yes, you're right, the corrupted disk is the 1TB external hard drive with 3 partitions:

/dev/disk2 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk2

1: EFI EFI 209.7 MB disk2s1

2: Apple_CoreStorage 999.8 GB disk2s2

3: Apple_Boot Boot OS X 134.2 MB disk2s3


I can't remember exactly how I got to this partition scheme. I think I used the disk to try and boot the Mac from an external HD, and then removed all the partitions to create only a single one Journaled and Encrypted. I think it was also case sensitive, not sure though... I think I created it as Encrypted and did not run FileVault on it later, it's quite a long time 😟


1. Here under the result of Etrecheck:

EtreCheck version: 3.1.5 (343)

Report generated 2017-04-10 22:26:47

Download EtreCheck from https://etrecheck.com

Runtime 1:35

Performance: Excellent


Click the [Support] links for help with non-Apple products.

Click the [Details] links for more information about that line.


Problem: No problem - just checking


Hardware Information:

MacBook Pro (15-inch, 2016)

[Technical Specifications] - [User Guide] - [Warranty & Service]

MacBook Pro - model: MacBookPro13,3

1 2,7 GHz Intel Core i7 (i7-6820HQ) CPU: 4-core

16 GB RAM Not upgradeable

BANK 0/DIMM0

8 GB LPDDR3 2133 MHz ok

BANK 1/DIMM0

8 GB LPDDR3 2133 MHz ok

Bluetooth: Good - Handoff/Airdrop2 supported

Wireless: en0: 802.11 a/b/g/n/ac

Battery: Health = Normal - Cycle count = 12


Video Information:

Intel HD Graphics 530

Color LCD 3840 x 2400

AMD Radeon Pro 455 - VRAM: 2048 MB


System Software:

macOS Sierra 10.12.4 (16E195) - Time since boot: about 8 hours


Disk Information:

APPLE SSD SM0512L disk0 : (500,28 GB) (Solid State - TRIM: Yes)

EFI (disk0s1) <not mounted> : 315 MB

Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB

Macintosh HD (disk1) / [Startup]: 498.95 GB (43.75 GB free)

Encrypted AES-XTS Unlocked

Core Storage: disk0s2 499.31 GB Online


USB Information:

Apple Inc. iBridge


Thunderbolt Information:

Apple Inc. thunderbolt_bus_1

Apple Inc. thunderbolt_bus_0


Gatekeeper:

Mac App Store and identified developers


Kernel Extensions:

/Applications/VMware Fusion.app

[not loaded] com.vmware.kext.vmci (8.5.6 - 2017-04-03) [Support]

[not loaded] com.vmware.kext.vmioplug.15.2.0 (8.5.6 - 2017-04-03) [Support]

[not loaded] com.vmware.kext.vmnet (8.5.6 - 2017-04-03) [Support]

[not loaded] com.vmware.kext.vmx86 (8.5.6 - 2017-04-03) [Support]


System Launch Agents:

[not loaded] 7 Apple tasks

[loaded] 158 Apple tasks

[running] 117 Apple tasks


System Launch Daemons:

[failed] com.apple.postfix.newaliases.plist (2016-09-24)

[not loaded] 40 Apple tasks

[loaded] 164 Apple tasks

[running] 112 Apple tasks


Launch Agents:

[running] com.bjango.istatmenusagent.plist (2017-04-10) [Support]

[running] com.bjango.istatmenusnotifications.plist (2017-04-10) [Support]

[running] com.bjango.istatmenusstatus.plist (2017-04-10) [Support]


Launch Daemons:

[running] com.bjango.istatmenusdaemon.plist (2017-04-10) [Support]


User Launch Agents:

[loaded] com.citrixonline.GoToMeeting.G2MUpdate.plist (2017-04-07) [Support]


User Login Items:

Activity Monitor Application Hidden

(/Applications/Utilities/Activity Monitor.app)


Internet Plug-ins:

AdobePDFViewerNPAPI: 15.023.20053 - SDK 10.11 (2017-02-18) [Support]

Silverlight: 5.1.50901.0 - SDK 10.6 (2017-03-03) [Support]

AdobePDFViewer: 15.023.20053 - SDK 10.11 (2017-02-18) [Support]

QuickTime Plugin: 7.7.3 (2017-03-27)

JavaAppletPlugin: Java 8 Update 121 build 13 (2017-03-07) Check version

AdobeAAMDetect: 3.0.0.0 - SDK 10.9 (2017-04-03) [Support]


User internet Plug-ins:

CitrixOnlineWebDeploymentPlugin: 1.0.105 (2013-04-26) [Support]


Safari Extensions:

Save to Pocket - Read It Later, Inc. - http://getpocket.com/ (2017-02-27)

URL Advisor - Kaspersky Lab - http://kaspersky.com (2017-03-15)

AdBlock Ultimate - Secure Download - https://adblockultimate.net/ (2017-03-25)

Pin It Button - Pinterest, Inc. - http://www.pinterest.com/ (2017-03-15)

1Password - AgileBits - https://agilebits.com/onepassword (2017-02-19)

AdBlock - BetaFish, Inc. - https://getadblock.com (2017-03-25)

Adblock Plus - Eyeo GmbH - https://adblockplus.org/ (2017-03-25)


3rd Party Preference Panes:

Java (2016-12-13) [Support]

PrintOptionPane (2016-09-28) [Support]


Time Machine:

Mobile backups: ON

Auto backup: YES

Volumes being backed up:

Macintosh HD: Disk size: 498.95 GB Disk used: 455.20 GB

Destinations:

1TB [Local]

Total size: 999.47 GB

Total number of backups: 21

Oldest backup: 07/04/2017, 14:38

Last backup: 09/04/2017, 11:30

Size of backup disk: Too small

Backup size 999.47 GB < (Disk used 455.20 GB X 3)


Top Processes by CPU:

99% Mail

48% WindowServer

14% kernel_task

12% hidd

4% com.apple.PerformanceAnalysis.animationperfd


Top Processes by Memory:

2.22 GB com.apple.WebKit.WebContent(15)

1.42 GB kernel_task

754 MB WhatsApp Helper(2)

475 MB Safari

393 MB WindowServer


Virtual Memory Information:

5.83 GB Available RAM

618 MB Free RAM

10.17 GB Used RAM

5.23 GB Cached files

104 MB Swap Used


Diagnostics Information:

Apr 10, 2017, 01:55:10 PM /Library/Logs/DiagnosticReports/Microsoft Excel_2017-04-10-135510_[redacted].cpu_resource.diag [Details]

/Applications/Microsoft Excel.app/Contents/MacOS/Microsoft Excel

Apr 10, 2017, 01:53:20 PM Self test - passed

Apr 9, 2017, 04:41:55 PM /Library/Logs/DiagnosticReports/Textual_2017-04-09-164155_[redacted].hang

/Applications/Textual.app/Contents/MacOS/Textual

Apr 9, 2017, 03:34:39 PM /Library/Logs/DiagnosticReports/Textual_2017-04-09-153439_[redacted].hang

2. Here under the rest of the commands:

Mauros-MBP:~ mauro$ df -kt

Filesystem 1024-blocks Used Available Capacity iused ifree %iused Mounted on

/dev/disk1 487260160 444274972 42729188 92% 1367824 4293599455 0% /

devfs 187 187 0 100% 648 0 100% /dev

map -hosts 0 0 0 100% 0 0 100% /net

map auto_home 0 0 0 100% 0 0 100% /home

localhost:/wM-9MfuBmKn24cUWNw6yFt 487260160 487260160 0 100% 0 0 100% /Volumes/MobileBackups

Mauros-MBP:~ mauro$ diskutil info disk0

Device Identifier: disk0

Device Node: /dev/disk0

Whole: Yes

Part of Whole: disk0

Device / Media Name: APPLE SSD SM0512L


Volume Name: Not applicable (no file system)

Mounted: Not applicable (no file system)

File System: None


Content (IOContent): GUID_partition_scheme

OS Can Be Installed: No

Media Type: Generic

Protocol: PCI-Express

SMART Status: Not Supported


Disk Size: 500.3 GB (500277788672 Bytes) (exactly 977105056 512-Byte-Units)

Device Block Size: 4096 Bytes


Read-Only Media: No

Read-Only Volume: Not applicable (no file system)


Device Location: Internal

Removable Media: Fixed


Solid State: Yes

OS 9 Drivers: No

Low Level Format: Not supported


Mauros-MBP:~ mauro$ diskutil info disk1

Device Identifier: disk1

Device Node: /dev/disk1

Whole: Yes

Part of Whole: disk1

Device / Media Name: APPLE SSD SM0512L


Volume Name: Macintosh HD

Mounted: Yes

Mount Point: /


Content (IOContent): Apple_HFS

File System Personality: Journaled HFS+

Type (Bundle): hfs

Name (User Visible): Mac OS Extended (Journaled)

Journal: Journal size 40960 KB at offset 0x1a388000

Owners: Enabled


OS Can Be Installed: Yes

Recovery Disk: disk0s3

Media Type: Generic

Protocol: PCI-Express

SMART Status: Not Supported

Volume UUID: FEED0871-D3D0-3512-93A9-0353369860D3

Disk / Partition UUID: 64B3F809-3ADC-43F0-9D46-F36E7C3E50FE


Disk Size: 499.0 GB (498954403840 Bytes) (exactly 974520320 512-Byte-Units)

Device Block Size: 4096 Bytes


Volume Total Space: 499.0 GB (498954403840 Bytes) (exactly 974520320 512-Byte-Units)

Volume Used Space: 455.2 GB (455199653888 Bytes) (exactly 889061824 512-Byte-Units) (91.2%)

Volume Available Space: 43.8 GB (43754749952 Bytes) (exactly 85458496 512-Byte-Units) (8.8%)

Allocation Block Size: 4096 Bytes


Read-Only Media: No

Read-Only Volume: No


Device Location: Internal

Removable Media: Fixed


Solid State: Yes

Virtual: Yes

OS 9 Drivers: No

Low Level Format: Not supported


This disk is a Core Storage Logical Volume (LV). Core Storage Information:

LV UUID: 64B3F809-3ADC-43F0-9D46-F36E7C3E50FE

LVF UUID: 8A753D03-EE0A-46FB-BD85-ADCBA622DC9C

LVG UUID: DF14C0BA-542A-4504-8D6E-DF4C69168478

PV UUID (disk): 14B3237C-18C6-4328-9429-C4EA9688004D (disk0s2)

Fusion Drive: No

Encrypted: Yes


Mauros-MBP:~ mauro$ diskutil info disk2

Device Identifier: disk2

Device Node: /dev/disk2

Whole: Yes

Part of Whole: disk2

Device / Media Name: Elements 25A2


Volume Name: Not applicable (no file system)

Mounted: Not applicable (no file system)

File System: None


Content (IOContent): GUID_partition_scheme

OS Can Be Installed: No

Media Type: Generic

Protocol: USB

SMART Status: Not Supported


Disk Size: 1.0 TB (1000170586112 Bytes) (exactly 1953458176 512-Byte-Units)

Device Block Size: 512 Bytes


Read-Only Media: No

Read-Only Volume: Not applicable (no file system)


Device Location: External

Removable Media: Fixed


Virtual: No

OS 9 Drivers: No

Low Level Format: Not supported


Mauros-MBP:~ mauro$ diskutil info disk3

Could not find disk: disk3

Thanks again!!!

Mar 7, 2017 8:38 PM in response to MauroFromVezza

What do you get from running these two Terminal commands (Terminal is located in /Applications/Utilities):


diskutil list

diskutil cs list


As far as the drive goes, the First Aid diagnosis says it's a problem with the partition map, which is something that might be able to be fixed. This does not mean that it is fixable, only that it might be. Encrypted drives are core storage drives, so there is a level of abstraction involved that is over and above a normal non-core-storage drive. There are other steps that occur after the partition info verification that might fail even if you do repair the partition table itself, so fixing the partition table issues does not mean you hare home free.


If I were you, and didn't have a backup and the data on the disk is very important to recover, then what I would do would be to get a second model of this WD Elements 25A2 drive (same exact model) and do the same thing you did to the first one (make it an encrypted drive and this is the important part - you have to give it the exact same parameters for partition size and formatting it as you did for the other drive including the partition style (GUID or ???) as those values are crucial to creating the same partition table information on the new drive as the first one had. Once that is done you can can try and do a hex dump on the partition table info and compare that to a hex dump of the partition table info on the corrupted drive and try to determine what is different. That MIGHT allow you past the point of trying to run first aid, but you might also run into corrupted contents of the drive contents, which might make things unrecoverable. I'm not an expert, so perhaps you might consult one and ask them if they think the drive is possibly fixable. John Galt and KiltedTim are very likely correct about the unrecoverable nature of the drive, if the corruption included some of the encrypted contents. But if it only corrupted the partition table, then, it might be something that can be repaired. There is no way to tell however, so what you do next depends on how important recovery is.


This assumes that encrypted volumes have a normal partition table that does not depend on the encryption. If this is not the case then my method suggested above will be pointless. I don't know the answer for certain so perhaps someone else on this forum does?


In any event best of luck...

Mar 12, 2017 11:52 AM in response to MauroFromVezza

The output of the "diskutil cs list" command only shows the 499GB Macintosh HD volume, not the 999GB external disk, probably because it's not mounted due to the partition table corruption. But it does show the 999GB drive in the "diskutil list" output as disk2 but does not show the volume name, again I'm guessing due to the the partition table corruption and the internal name not being available.


Since you also posted an output of a previous Disk Utility repair effort under Yosemite, it's not clear which partition it's actually checking since it shows a name of "disk1s3" and then "disk1s2" which don't exist in the output of "diskutil list". I think these "disk0", etc names can change depending on what disk is being booted from, so it's hard sometimes to tell which one is being referred to without other clues like sizes or other info.


There is also a "diskutil cs info diskx" and "diskutil info disk" commands (substitute disk0 or whatever is appropriate for the diskx) and you can get some other information.


I don't think that until you are able to fix the partition table, or at least try to, there isn't much more that can be done, other than gather information you may need in the event you do get it repaired. Best of luck...

Apr 9, 2017 1:23 PM in response to dot.com

Thanks again dot.com!

I was eventually able to get another same WD Elements disk. You said I have to format it in the same exact way as the one that is not working and then check what is different between the two partition tables, right? Do you mind giving me a suggestion how I can do it? Can I simply copy the partition table of the working one to the corrupted one?

Thanks!

Apr 10, 2017 9:07 AM in response to MauroFromVezza

Don't think you can copy partition tables from one drive to another, but have to do a bit of research to be sure.


So to make sure I understand which is good and which is bad and how system is configured (please point out any errors):


System has two drives, both are GUID partition schemes composed of:


One 500GB internal drive split into three partitions, first is EFI of 314.6MB, second is 499.3GB and named "Macintosh HD" and is your boot volume and is an encrypted core storage volume, and third is 650MB Recovery partition.


One 1TB external drive split into three partitions, first is EFI of 209.7MB, second is 999.8GB and currently has no name, third is 134.2MB and is named "Boot OS X". This is the problem disk, correct?


Do you have any notes about what exactly you did when you first created the external disk that is now bad? Was it a bootable volume at any time? Since it has a name of "Boot OS X" that is what makes me wonder? But the partition that is named "Boot OS X" is only 134.2MB which makes no sense as OS X needs way more than that. Perhaps this 134.2 number is bogus and a side effect of the corrupted partition table?


Can you explain in as much detail as possible how you created the "bad" disk? Did you originally create just the one partition on it, with the full 1TB maximum, and did you ever run FileVault on it? Please explain as much as you can recall so can understand how to try and reproduce on the new volume.


Remember, there is no guarantee this is gonna work, but will try...that's all I can promise.


Also would like you to do the following so can confirm existing info and get as much additional info as possible before proceeding (don't post images - post the text as images are hard to read sometimes and fuzzy and can't afford any mistakes), and do have the new drive on the system also:


1. Run the "Etrecheck" program and post the report - ask if you want help

downloading program or how to post report

2. Post the output of these Terminal commands:


df -kt

diskutil info disk0

diskutil info disk1

diskutil info disk2

diskutil info disk3


There will be other commands later but need to see the results of this first.


Good luck...

Apr 10, 2017 5:05 PM in response to MauroFromVezza

Well, just discovered something that might make this a whole lot easier. "gpt" is a command that deals exclusively with GPT partition tables and has a "recover" mode due to the fact that there is a "backup" copy of the partition table that is maintained by the filesystem at the end of the disk. So please try this: (the -r option prevents anything from being written to disk or opens the drive in read-only mode - but when the real change is attempted the -r option will not be used). Take a look at the wikipedia article at https://en.wikipedia.org/wiki/GUID_Partition_Table for some background information.


Remember if anything goes wrong, this is possible to ruin the entire drive, so this really should be the last resort. By the way, do you happen to have program called DiskWarrior or have a friend who has it? This is exactly the sort of stuff that this program is meant to help solve.


Anyway please do a "man gpt" and read all about it if you have any questions. I've never used it before, and am going by what the man page says as well as an article I found (link is below). If the man page is incorrect, then, there might be problems, but I've typed these commands on my computer to test before writing this reply - but of course "your mileage may vary" as they say, so be very careful and please confirm with your own reading what I attempt to explain.


So, to look at a GPT partition on the /dev/disk2 device (the one having problems) info we use the command - make double sure that this name has not changed (you will be prompted for the admin password):


sudo gpt -r show disk2


And you should get something like (some of your numbers will of course likely be different, but some will be the same):


sudo gpt -r show disk2

Password:

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 936023872 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

936433512 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

937703048 7

937703055 32 Sec GPT table

937703087 1 Sec GPT header


If you don't want to see the narly hex type codes you can use the "-l" switch to get the partition names/types:

sudo gpt -r show -l disk0

Password:

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - "EFI System Partition"

409640 936023872 2 GPT part - "Macintosh 480SSD"

936433512 1269536 3 GPT part - "Recovery HD"

937703048 7

937703055 32 Sec GPT table

937703087 1 Sec GPT header

So, this tells us the primary GPT header starts at block 1, the GPT table (where all the partitions are enumerated) starts at block 2, and the secondary GPT header is the last block on the disk at block 937703087, and the secondary GPT table is at block 937703055.

But before attempting the copy, lets now experiment on the new drive you got and see if we can create it so that it's easier to see what the bad partition table would look like if it were OK. So how do we use Disk Utility to layout the new drive as a GUID type partition with an EFI partition of 209.7MB, a core storage partition of 999.8GB and a third partition of 134.2MB? To know this will need to see what you post as the results of the "sudo got -r show disk2" command (and hope there is no error).

So, if we use the "gpt" command, later on to recover the partition table (overwrite the primary table information with the secondary information), you should be back in business, IF THE SECONDARY PARTITION INFORMATION IS STILL INTACT. I found this article that talks about using "gpt" that you should also look at before proceeding to get a better idea of what someone experienced at http://apple.stackexchange.com/questions/221114/how-to-fix-broken-gpt-guid-and-u nmountable-no-type-volumes

One of the things mentioned in the above link is that they did the mods after booting in recovery mode, but don't think this is needed in this case as the boot volume does not need changing, just your external 1TB drive.

So please read this over and let me know the info you find out. Ask questions and understand the process before doing anything that is not undoable. And don't make any typo mistakes (like leave off -r).

One more thing that just popped out after looking over your last reply...was this bad disk2 drive used as a Time Machine backup or what? The etrecheck report seems to say you have 21 backups on a 1TB drive, most recent backup on April 9, 2017 and oldest on April 7, 2017 (if I read the dates correctly), but that the output from the command "df -kt" shows you have a /Volumes/MobileBackups mounted that is 487GB in size (think this is a result of doing local snapshots on your boot volume to a folder named "/.mobilebackups" ). Please confirm or explain if this is not correct.

Good luck...

Apr 10, 2017 5:23 PM in response to Melih Seckin

What does the WD sync utility have to do with poster's corrupted partition table? It won't even mount, plus it appears that the WD sync utility is only for the "Cloud" NAS type drives that are attached via ethernet to computers. This is not the situation here I don't think.


Perhaps you left something out? Or you misunderstood the problem or ???

Apr 11, 2017 2:20 PM in response to dot.com

Thanks dot.com!

here's the output of the GPT command on the bad disk:

Mauros-MBP:~ mauro$ sudo gpt -r show disk2

Password:

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 1952786352 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

1953195992 262144 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

1953458136 7

1953458143 32 Sec GPT table

1953458175 1 Sec GPT header


here's the same command on the good one:

Mauros-MBP:~ mauro$ sudo gpt -r show disk3

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 1952786352 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

1953195992 262144 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

1953458136 7

1953458143 32 Sec GPT table

1953458175 1 Sec GPT header


Wow, it looks exactly the same! I hope it's a good thing 🙂


I also have a copy of the information stored in Keychain of the bad disk when it was working. Is it the UUID? (FBA46AA2-BED4-4F47-A849-F077EC5CD330)


I already tried Disk Warrior and it said that it was able to do nothing as the partition table was bad...


The TimeMachine backups are on another 1TB drive that I named (with a lot of imagination) 1TB..


The gpt command has a "recover" option, and I tried it on the bad disk, with no results. The "repairDisk" gave me the following error:

Mauros-MBP:~ mauro$ diskutil repairDisk disk2

Repairing the partition map might erase disk2s1, proceed? (y/N) y

Started partition map repair on disk2

Checking prerequisites

Checking the partition list

Adjusting partition map to fit whole disk as required

Checking for an EFI system partition

Checking the EFI system partition's size

Checking the EFI system partition's file system

Checking the EFI system partition's folder content

Checking all HFS data partition loader spaces

Checking booter partitions

Checking booter partition disk2s3

Verifying file system

Checking Journaled 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 Boot OS X appears to be OK

File system check exit code is 0

Reviewing boot support loaders

Checking Core Storage Physical Volume partitions

Repairing storage system

The volume disk2s2+disk0s2 cannot be repaired when it is in use

Checking volume

disk2s2: Scan for Volume Headers

Invalid Volume Header @ 0: incorrect block type

Invalid Volume Header @ 999826611712: unsupported format

disk2s2 did not complete formatting as a CoreStorage volume

Storage system check exit code is 1

Problems were encountered during repair of the partition map

Error: -69716: Storage system verify or repair failed

Underlying error: 1: Operation not permitted

Mauros-MBP:~ mauro$


Should I delete and recreate the partitions on the bad disk as in the link you mention?


Thanks

Apr 13, 2017 1:00 PM in response to MauroFromVezza

How would the new disk have the same partition info that the old disk has? Did you already copy partition info from bad disk to new disk? Like I already mentioned you really should keep that new disk as new - copying a corrupt partition table to it isn't gonna make this any easier. I would detach both of these WD 25A2 disks and only attach one at a time so that you are certain of which disk you're getting the information from, because at the moment it would appear they are the same, but only one of them has your files that you need to recover. Did you clone the bad to the good or something like that?


When you ran the "diskutil repairDisk disk2" command - look at what it says in the first line "might erase disk2s1" and gives you a chance to abort - but yet you proceeded? Messages like this would give me pause and reluctant to proceed.


And then later on it says that "The volume disk2s2+disk0s2 cannot be repaired when it is in use" -- this tells me that the these two partitions are tied together in a logical core storage volume and you can't repair it unless you reboot in recovery mode and run that command from there (the "diskutil repairDisk disk2") because you can't repair a currently mounted volume that the computer is running the operating system from (the disk0s2 is on your main internal SSD disk). I have no idea if that will even work if you boot into recovery mode, as you run the risk of possibly corrupting your boot volume (since it's now tied together with a partition on the second disk that appears to have a corrupted partition table). I think you need to sever the connection between these two volumes before you try and repair the disk2 external disk - perhaps this severing might even fix the problem with disk2?


How did you get these two tied together in a logical core storage volume to begin with? The answer to that is probably the original source of all your problems - maybe it's OK to do this but I simply don't know. And now the two filesystems are tied together in a way that may have corrupted the disk2s2 volume - perhaps thats why you get the errors you see above. Notice that the repair output you posted on the original post that you ran on Yosemite leaves out this bit of information about "disk2s2+disk0s2" being tied together. No idea how that wouldn't have been noticed. But you've got the encrypted virtual disk1 tied into the physical disk0 in another core-storage volume which is fine. But now all three entities seem to be tied together somehow (internal physical SSD disk0, virtual encrypted disk1 and external physical disk2) and the question becomes how to extract them from each other without loosing anything?


Plus, it turns out you have yet another 1TB backup disk (it is a different disk, right?) from which I assume you could restore everything from. But perhaps you can't do that as there are some things on the corrupted disk2 that are not backed up? Please answer this important question!!!!!


You failed to mention that you've already tried DiskWarrior, and if had known that would not have even started down this path. Maybe you forgot, but you should mention this sort of information as it's just as important knowing what doesn't work as what does. Since you have DiskWarrior, have you contacted their tech support and see if they have any ideas how to fix things?


Maybe it's as simple as separating the two volumes by removing the core storage logical volume that now is tying them together and keeping the encrypted logical volume intact? Maybe the "diskutil repairDisk disk2" or "diskutil repairDisk disk0" will work once the partition info is fixed (it won't until it is fixed according to the man page for diskutil).


And to answer your question about using the link I sent that gave some examples of using got, the answer is no - was just some info to see how someone else has used gpt to query partition info. The problem they were trying to repair had to do with a corrupted Windows partition I think.


Good luck...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Corrupted encrypted disk - please help!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.