briandu2

Seems GPT is now confused and corrupt - how do I recover my data?

Oct 18th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1.  
  2.  
  3. Sun Oct 18 21:15:50 2020
  4. Command line: TestDisk
  5.  
  6. TestDisk 7.1, Data Recovery Utility, July 2019
  7. Christophe GRENIER <grenier@cgsecurity.org>
  8. https://www.cgsecurity.org
  9. OS: Linux, kernel 5.4.0-51-generic (#56-Ubuntu SMP Mon Oct 5 14:28:49 UTC 2020) x86_64
  10. Compiler: GCC 9.2
  11. ext2fs lib: 1.45.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.1
  12. User is not root!
  13. Hard disk list
  14.  
  15.  
  16. TestDisk exited normally.
  17. Using locale 'en_GB.UTF-8'.
  18.  
  19.  
  20. Sun Oct 18 21:15:54 2020
  21. Command line: TestDisk /debug
  22.  
  23. TestDisk 7.1, Data Recovery Utility, July 2019
  24. Christophe GRENIER <grenier@cgsecurity.org>
  25. https://www.cgsecurity.org
  26. OS: Linux, kernel 5.4.0-51-generic (#56-Ubuntu SMP Mon Oct 5 14:28:49 UTC 2020) x86_64
  27. Compiler: GCC 9.2
  28. ext2fs lib: 1.45.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.1
  29. /dev/sda: LBA, HPA, LBA48, DCO support
  30. /dev/sda: size 500118192 sectors
  31. /dev/sda: user_max 500118192 sectors
  32. /dev/sda: native_max 500118192 sectors
  33. /dev/sdb: LBA, HPA, LBA48, DCO support
  34. /dev/sdb: size 2000409264 sectors
  35. /dev/sdb: user_max 2000409264 sectors
  36. /dev/sdb: native_max 2000409264 sectors
  37. Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
  38. Warning: can't get size for Disk /dev/loop9 - 0 B - 0 sectors, sector size=512
  39. Hard disk list
  40. Disk /dev/sda - 256 GB / 238 GiB - CHS 31130 255 63, sector size=512 - C300-CTFDDAC256MAG, S/N:0000000010490300653F, FW:0006
  41. Disk /dev/sdb - 1024 GB / 953 GiB - CHS 124519 255 63, sector size=512 - Samsung SSD 860 PRO 1TB, S/N:S42NNX0N500045F, FW:RVM02B6Q
  42. Disk /dev/sdc - 31 GB / 29 GiB - CHS 29856 64 32, sector size=512 - SanDisk Ultra, FW:1.00
  43. Disk /dev/loop0 - 267 MB / 255 MiB - 523400 sectors (RO), sector size=512
  44. Disk /dev/loop1 - 58 MB / 55 MiB - 113296 sectors (RO), sector size=512
  45. Disk /dev/loop2 - 57 MB / 54 MiB - 112552 sectors (RO), sector size=512
  46. Disk /dev/loop3 - 31 MB / 29 MiB - 61200 sectors (RO), sector size=512
  47. Disk /dev/loop4 - 53 MB / 50 MiB - 103776 sectors (RO), sector size=512
  48. Disk /dev/loop5 - 228 MB / 217 MiB - 446248 sectors (RO), sector size=512
  49. Disk /dev/loop6 - 65 MB / 62 MiB - 127160 sectors (RO), sector size=512
  50. Disk /dev/loop7 - 32 MB / 30 MiB - 63344 sectors (RO), sector size=512
  51. Disk /dev/loop8 - 52 MB / 49 MiB - 101960 sectors (RO), sector size=512
  52.  
  53. Partition table type (auto): EFI GPT
  54. Disk /dev/sdb - 1024 GB / 953 GiB - Samsung SSD 860 PRO 1TB
  55. Partition table type: EFI GPT
  56.  
  57. Analyse Disk /dev/sdb - 1024 GB / 953 GiB - CHS 124519 255 63
  58. hdr_size=92
  59. hdr_lba_self=1
  60. hdr_lba_alt=2000409263 (expected 2000409263)
  61. hdr_lba_start=34
  62. hdr_lba_end=2000409230
  63. hdr_lba_table=2
  64. hdr_entries=128
  65. hdr_entsz=128
  66. Current partition structure:
  67. 1 P EFI System 40 409639 409600 [EFI System Partition]
  68. 2 P Mac HFS 470911 2000208350 1999737440
  69.  
  70. search_part()
  71. Disk /dev/sdb - 1024 GB / 953 GiB - CHS 124519 255 63
  72. FAT32 at 0/0/41
  73. check_FAT: Unusual media descriptor (0xf0!=0xf8)
  74. FAT1 : 32-3182
  75. FAT2 : 3183-6333
  76. start_rootdir : 6334 root cluster : 2
  77. Data : 6334-409599
  78. sectors : 409600
  79. cluster_size : 1
  80. no_of_cluster : 403266 (2 - 403267)
  81. fat_length 3151 calculated 3151
  82. FAT differs, FAT sectors=0-16/3151
  83. heads/cylinder 16 (FAT) != 255 (HD)
  84. sect/track 32 (FAT) != 63 (HD)
  85. set_FAT_info: name from BS used
  86.  
  87. FAT32 at 0/0/41
  88. EFI System 40 409639 409600 [EFI System Partition] [EFI]
  89. FAT32, blocksize=512, 209 MB / 200 MiB
  90.  
  91. HFS+ magic value at 29/79/50
  92. part_size 1999737440
  93. Mac HFS 470911 2000208350 1999737440
  94. HFS+ blocksize=4096, 1023 GB / 953 GiB
  95.  
  96. HFS+ magic value at 124519/182/20
  97. part_size 262144
  98. Mac HFS 2000409220 2000671363 262144
  99. HFS+ blocksize=4096, 134 MB / 128 MiB
  100. This partition ends after the disk limits. (start=2000409220, size=262144, end=2000671363, disk end=2000409264)
  101.  
  102. HFS+ magic value at 124519/182/22
  103. part_size 262144
  104. Mac HFS 2000147080 2000409223 262144
  105. HFS+ found using backup sector!, 134 MB / 128 MiB
  106. Disk /dev/sdb - 1024 GB / 953 GiB - CHS 124519 255 63
  107. Check the harddisk size: HD jumper settings, BIOS detection...
  108. The harddisk (1024 GB / 953 GiB) seems too small! (< 1024 GB / 953 GiB)
  109. The following partition can't be recovered:
  110. Mac HFS 2000409220 2000671363 262144
  111. HFS+ blocksize=4096, 134 MB / 128 MiB
  112.  
  113. Results
  114. P EFI System 40 409639 409600 [EFI System Partition] [EFI]
  115. FAT32, blocksize=512, 209 MB / 200 MiB
  116. Mac HFS 470911 2000208350 1999737440
  117. HFS+ blocksize=4096, 1023 GB / 953 GiB
  118. Mac HFS 2000147080 2000409223 262144
  119. HFS+ found using backup sector!, 134 MB / 128 MiB
  120.  
  121. Hint for advanced users: dmsetup may be used if you prefer to avoid rewriting the partition table for the moment:
  122. echo "0 409600 linear /dev/sdb 40" | dmsetup create test0
  123. echo "0 1999737440 linear /dev/sdb 470911" | dmsetup create test1
  124. echo "0 262144 linear /dev/sdb 2000147080" | dmsetup create test2
  125.  
  126. P Mac HFS 470911 2000208350 1999737440
  127. HFS+ blocksize=4096, 1023 GB / 953 GiB
  128. Support for this filesystem hasn't been implemented.
  129.  
  130. interface_write()
  131. 1 P EFI System 40 409639 409600 [EFI System Partition] [EFI]
  132. 2 P Mac HFS 470911 2000208350 1999737440
  133. write!
  134. No extended partition
  135. You will have to reboot for the change to take effect.
Add Comment
Please, Sign In to add comment