从 HSF+ USB 外部硬盘恢复文件,在 CentOS 7 上进行测试以进行诊断

从 HSF+ USB 外部硬盘恢复文件,在 CentOS 7 上进行测试以进行诊断

笔记:

我的问题的结果与如何从损坏的硬盘修复损坏的 HFS+ 分区?

对于 ubuntu 的另一个结果: https://askubuntu.com/questions/955325/using-gpart-testdisk-to-recover-gpt-for-files-from-damaging-hfs-apple-hd

我有 USB、外置硬盘HSF+文件系统。

问题是我无法在 MAC 上提取我的文件macOS 塞拉利昂 10.12.6,甚至使用商业工具,例如:

  • 技术工具 Pro 9
  • 磁盘战士5
  • 盘钻
  • Data Rescue 4(现在我正在测试)。

在 macOS Sierra 上,我运行了以下命令:

  • diskutil verifyVolume /dev/disk2s2

    The volume ADATAHD could not be verified completely File system check exit code is 8 Error: -69845: File system verify or repair failed Underlying error: 8: Exec format error

  • diskutil RepairVolume /dev/disk2s2

    File system check exit code is 8 Updating boot support partitions for the volume as required Error: -69610: Error parsing fsck program XML format output Underlying error: 8: Exec format error

  • sudo fsck_hfs -fryd /dev/disk2s2

    unknown volume type primary MDB is at block 0 0x00 alternate MDB is at block 0 0x00 primary VHB is at block 0 0x00 alternate VHB is at block 0 0x00 sector size = 512 0x200 VolumeObject flags = 0x01 total sectors for volume = 1952853344 0x74662d60 total sectors for embedded volume = 0 0x00 CheckForClean - unknown volume type CheckHFS returned 6, fsmodified = 0

  • sudo gpt -r 显示磁盘0

    gpt show: unable to open device 'disk2': Resource busy

  • sudo diskutil Repair磁盘disk2

    Problems were encountered during repair of the partition map Error: -69808: Some information was unavailable during an internal lookup

我正在读这篇文章:如何从损坏的硬盘修复损坏的 HFS+ 分区?但错误代码不同!

我想知道你是否使用 CentOS 7 开始我的测试。

我的问题是在苹果上寻求解决方案。https://apple.stackexchange.com/questions/296151/recover-files-from-corrupted-external-usb-hd-macos-sierra

我把这个问题放在这里是因为我也想尝试使用 CentOS 7 端!

谢谢。

编辑1

磁盘映射!

[root@localhost liveuser]# lsblk
NAME             MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                8:0    0   113G  0 disk 
├─sda1             8:1    0   200M  0 part 
├─sda2             8:2    0 112.2G  0 part 
└─sda3             8:3    0 619.9M  0 part 
sdb                8:16   1   7.5G  0 disk 
├─sdb1             8:17   1   1.7G  0 part /run/initramfs/live
├─sdb2             8:18   1   4.9M  0 part 
└─sdb3             8:19   1  19.7M  0 part 
sdd                8:48   0 931.5G  0 disk 
├─sdd1             8:49   0   200M  0 part 
└─sdd2             8:50   0 931.2G  0 part 
loop0              7:0    0    20K  1 loop 
loop1              7:1    0   4.4M  1 loop 
└─live-osimg-min 253:2    0     8G  1 dm   
loop2              7:2    0   1.6G  1 loop 
loop3              7:3    0     8G  1 loop 
├─live-rw        253:0    0     8G  0 dm   /
├─live-base      253:1    0     8G  1 dm   
└─live-osimg-min 253:2    0     8G  1 dm   
loop4              7:4    0   512M  0 loop 
└─live-rw        253:0    0     8G  0 dm   /
[root@localhost liveuser]# 

带 fsck

[root@localhost liveuser]# fsck /dev/sdd2
fsck from util-linux 2.23.2
e2fsck 1.42.9 (28-Dec-2013)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdd2
Could this be a zero-length partition?
[root@localhost liveuser]# 

使用 fsck.hfsplus

[root@localhost liveuser]#  fsck.hfsplus /dev/sdd2
** /dev/sdd2
   Executing fsck_hfs (version 540.1-Linux).
[root@localhost liveuser]#

使用 fdisk -l

[root@localhost liveuser]# fdisk -l
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 121.3 GB, 121332826112 bytes, 236978176 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt


#         Start          End    Size  Type            Name
 1           40       409639    200M  EFI System      EFI System Partition
 2       409640    235708599  112.2G  Apple Core stor ElCapitanHD
 3    235708600    236978135  619.9M  Apple boot      

Disk /dev/sdb: 8017 MB, 8017412096 bytes, 15659008 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x79bec633

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           0     3465215     1732608    0  Empty
/dev/sdb2             172       10231        5030   ef  EFI (FAT-12/16/32)
/dev/sdb3           10280       50599       20160    0  Empty

Disk /dev/sdb1: 1774 MB, 1774190592 bytes, 3465216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x79bec633

     Device Boot      Start         End      Blocks   Id  System
/dev/sdb1p1   *           0     3465215     1732608    0  Empty
/dev/sdb1p2             172       10231        5030   ef  EFI (FAT-12/16/32)
/dev/sdb1p3           10280       50599       20160    0  Empty

Disk /dev/mapper/live-rw: 8589 MB, 8589934592 bytes, 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/live-base: 8589 MB, 8589934592 bytes, 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/live-osimg-min: 8589 MB, 8589934592 bytes, 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

fdisk: cannot open /dev/sdd: Input/output error
[root@localhost liveuser]#                     

相关内容