-3.3 C
United States of America
Tuesday, January 14, 2025

disk utility – Unable to mount/unlock encrypted APFS quantity


I’ve an exterior disk that is APFS-encrypted which all of the sudden will not mount/unlock:

$ diskutil apfs unlockVolume /dev/disk7s1 -nomount
Passphrase:
Unlocking any cryptographic consumer on APFS Quantity disk7s1
Passphrase incorrect or consumer doesn't exist

I can also’t modify the APFS container from Disk Utility so as to add any new volumes.
I believed possibly corruption had led to my password not unlocking the recordsdata, however I downloaded DiskDrill, equipped it with my password and let it scan for recordsdata and it truly discovered them!

I am questioning if meaning the partition desk is tousled or one thing, as a result of clearly the passphrase continues to be decrypting the recordsdata. I haven’t got sufficient disk area readily available to get well these recordsdata and re-create the APFS quantity proper now – any assist could be appreciated. I’ve tried to interpret these hex dumps utilizing GPT header and desk lookup info however I am not making a lot progress.

Edit 1: I’ve added fsck_apfs output, and I believe the problem is the area supervisor knowledge within the container, not the quantity itself. I might be completely happy to roll this container again to a special, more healthy checkpoint however I am unsure how.

Diskutil

$ diskutil checklist
[...]
/dev/disk6 (inside, bodily):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk6
   1:                        EFI EFI                     209.7 MB   disk6s1
   2:                 Apple_APFS Container disk7         1.0 TB     disk6s2

/dev/disk7 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +1.0 TB     disk7
                                 Bodily Retailer disk6s2
   1:                APFS Quantity Storage                 419.8 GB   disk7s1

GPT

$ sudo gpt -r present disk7
       begin        dimension  index  contents
           0           1         PMBR
           1           1         Pri GPT header
           2          32         Pri GPT desk
          34           6         
          40      409600      1  GPT half - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
      409640  1954135984      2  GPT half - 7C3457EF-0000-11AA-AA11-00306543ECAC
  1954545624           7         
  1954545631          32         Sec GPT desk
  1954545663           1         Sec GPT header

GPT Header

$ sudo dd if=/dev/disk6 bs=512 rely=1 skip=1 | hexdump -Cv

00000000  45 46 49 20 50 41 52 54  00 00 01 00 5c 00 00 00  |EFI PART.......|
00000010  05 ac dd 9f 00 00 00 00  01 00 00 00 00 00 00 00  |................|
00000020  ff ff 7f 74 00 00 00 00  22 00 00 00 00 00 00 00  |...t....".......|
00000030  de ff 7f 74 00 00 00 00  86 e8 09 f7 47 a3 31 48  |...t........G.1H|
00000040  ab b1 17 2f 5e b4 24 6e  02 00 00 00 00 00 00 00  |.../^.$n........|
00000050  80 00 00 00 80 00 00 00  2b 1a b5 ae 00 00 00 00  |........+.......|
00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000100  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000120  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000160  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000190  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000200

GPT Desk

$ sudo dd if=/dev/disk6 bs=512 rely=1 skip=2 | hexdump -Cv

00000000  28 73 2a c1 1f f8 d2 11  ba 4b 00 a0 c9 3e c9 3b  |(s*......Okay...>.;|
00000010  27 f8 f8 1b af 49 81 44  99 e7 32 45 65 64 2b ee  |'....I.D..2Eed+.|
00000020  28 00 00 00 00 00 00 00  27 40 06 00 00 00 00 00  |(.......'@......|
00000030  00 00 00 00 00 00 00 00  45 00 46 00 49 00 20 00  |........E.F.I. .|
00000040  53 00 79 00 73 00 74 00  65 00 6d 00 20 00 50 00  |S.y.s.t.e.m. .P.|
00000050  61 00 72 00 74 00 69 00  74 00 69 00 6f 00 6e 00  |a.r.t.i.t.i.o.n.|
00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000080  ef 57 34 7c 00 00 aa 11  aa 11 00 30 65 43 ec ac  |.W4|.......0eC..|
00000090  c1 c6 8d 57 81 82 e9 4c  a3 7d fa d0 2f b7 bd 74  |...W...L.}../..t|
000000a0  28 40 06 00 00 00 00 00  d7 ff 7f 74 00 00 00 00  |(@.........t....|
000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000100  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000120  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000160  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000190  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000200

GPT Partition 1

$ sudo dd if=/dev/disk6 bs=512 rely=1 skip=40 | hexdump -Cv

00000000  eb 58 90 42 53 44 20 20  34 2e 34 00 02 01 20 00  |.X.BSD  4.4... .|
00000010  02 00 00 00 00 f0 00 00  20 00 10 00 00 00 00 00  |........ .......|
00000020  00 40 06 00 4f 0c 00 00  00 00 00 00 02 00 00 00  |[email protected]...........|
00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 29 ed 17 e3 67 45  46 49 20 20 20 20 20 20  |..)...gEFI      |
00000050  20 20 46 41 54 33 32 20  20 20 fa 31 c0 8e d0 bc  |  FAT32   .1....|
00000060  00 7c fb 8e d8 e8 00 00  5e 83 c6 19 bb 07 00 fc  |.|......^.......|
00000070  ac 84 c0 74 06 b4 0e cd  10 eb f5 30 e4 cd 16 cd  |...t.......0....|
00000080  19 0d 0a 4e 6f 6e 2d 73  79 73 74 65 6d 20 64 69  |...Non-system di|
00000090  73 6b 0d 0a 50 72 65 73  73 20 61 6e 79 20 6b 65  |sk..Press any ke|
000000a0  79 20 74 6f 20 72 65 62  6f 6f 74 0d 0a 00 00 00  |y to reboot.....|
000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000100  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000120  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000160  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000190  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200

GPT Partition 2

$ sudo dd if=/dev/disk6 bs=512 rely=1 skip=409640 | hexdump -Cv

00000000  65 f1 69 6d 45 1d 32 73  01 00 00 00 00 00 00 00  |e.imE.2s........|
00000010  a8 94 00 00 00 00 00 00  01 00 00 80 00 00 00 00  |................|
00000020  4e 58 53 42 00 10 00 00  f6 37 8f 0e 00 00 00 00  |NXSB.....7......|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  02 00 00 00 00 00 00 00  a6 87 6e b0 9d 7a 46 9f  |..........n..zF.|
00000050  9f da 0f e9 af ae 73 d2  76 de 00 00 00 00 00 00  |......s.v.......|
00000060  a9 94 00 00 00 00 00 00  18 01 00 00 5c 6c 00 00  |............l..|
00000070  01 00 00 00 00 00 00 00  19 01 00 00 00 00 00 00  |................|
00000080  0d 01 00 00 85 16 00 00  0b 01 00 00 02 00 00 00  |................|
00000090  79 16 00 00 0c 00 00 00  00 04 00 00 00 00 00 00  |y...............|
000000a0  f7 a5 11 00 00 00 00 00  01 04 00 00 00 00 00 00  |................|
000000b0  00 00 00 00 64 00 00 00  02 04 00 00 00 00 00 00  |....d...........|
000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000100  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000120  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000160  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000190  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000200

fsck_apfs output

$ sudo fsck_apfs -F -n /dev/disk6s2
** Checking the container superblock.
   Checking the checkpoint with transaction ID 38056.
** Checking the area supervisor.
warning: spaceman chunk 50 free rely 1048041 > block rely 32768
warning: spaceman chunk 76 free rely 1047379 > block rely 32768
warning: spaceman chunk 77 free rely 1045263 > block rely 32768
warning: spaceman chunk 81 free rely 1047089 > block rely 32768
warning: spaceman chunk 88 free rely 1046859 > block rely 32768
warning: spaceman chunk 95 free rely 1048285 > block rely 32768
warning: spaceman chunk 96 free rely 1045846 > block rely 32768
warning: spaceman chunk 106 free rely 1038642 > block rely 32768
warning: spaceman chunk 107 free rely 1047917 > block rely 32768
warning: spaceman chunk 108 free rely 1048545 > block rely 32768
warning: spaceman chunk 118 free rely 1042009 > block rely 32768
warning: spaceman chunk 120 free rely 1047762 > block rely 32768
warning: spaceman chunk 121 free rely 1044764 > block rely 32768
warning: spaceman chunk 159 free rely 1043537 > block rely 32768
warning: spaceman chunk 192 free rely 1048119 > block rely 32768
warning: spaceman chunk 197 free rely 1047955 > block rely 32768
warning: spaceman chunk 198 free rely 1031491 > block rely 32768
warning: spaceman chunk 214 free rely 1020054 > block rely 32768
warning: spaceman chunk 220 free rely 1045881 > block rely 32768
warning: spaceman chunk 234 free rely 1046468 > block rely 32768
warning: spaceman chunk 257 free rely 1048280 > block rely 32768
warning: spaceman chunk 270 free rely 1045917 > block rely 32768
warning: spaceman chunk 280 free rely 1048521 > block rely 32768
warning: spaceman chunk 288 free rely 1047651 > block rely 32768
warning: spaceman chunk 289 free rely 1044620 > block rely 32768
warning: spaceman chunk 294 free rely 1046582 > block rely 32768
warning: spaceman chunk 304 free rely 1037560 > block rely 32768
warning: spaceman chunk 305 free rely 1047826 > block rely 32768
warning: spaceman chunk 328 free rely 1048515 > block rely 32768
warning: spaceman chunk 330 free rely 1045119 > block rely 32768
warning: spaceman chunk 333 free rely 1046817 > block rely 32768
warning: spaceman chunk 334 free rely 1047085 > block rely 32768
warning: spaceman chunk 335 free rely 1047577 > block rely 32768
warning: spaceman chunk 336 free rely 1037524 > block rely 32768
warning: spaceman chunk 338 free rely 1047719 > block rely 32768
warning: spaceman chunk 342 free rely 1047582 > block rely 32768
warning: spaceman chunk 345 free rely 1048065 > block rely 32768
warning: spaceman chunk 348 free rely 1046590 > block rely 32768
warning: spaceman chunk 351 free rely 1048000 > block rely 32768
warning: spaceman chunk 354 free rely 1048325 > block rely 32768
warning: spaceman chunk 359 free rely 1047571 > block rely 32768
warning: spaceman chunk 360 free rely 1048574 > block rely 32768
warning: spaceman chunk 362 free rely 1045869 > block rely 32768
warning: spaceman chunk 364 free rely 1023077 > block rely 32768
warning: spaceman chunk 366 free rely 1047638 > block rely 32768
warning: spaceman chunk 368 free rely 1047692 > block rely 32768
warning: spaceman chunk 370 free rely 1047439 > block rely 32768
warning: spaceman chunk 373 free rely 1048521 > block rely 32768
warning: spaceman chunk 376 free rely 1044611 > block rely 32768
warning: spaceman chunk 379 free rely 1039521 > block rely 32768
Too many warnings of this sort generated; suppressing subsequent ones.
warning: (oid 0x6f84) cib: invalid o_cksum (0xffffffffffffffff)
error: did not learn spaceman cib 27 at handle 0x6f84
   Area supervisor is invalid.
** The container /dev/disk6s2 couldn't be verified fully.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles