診断のためにCentOS 7でテストされたHSF + USB外付けハードドライブからファイルを回復する

診断のためにCentOS 7でテストされたHSF + USB外付けハードドライブからファイルを回復する

メモ:

私の問題の結果は次のように関連しています。破損したハードドライブから破損した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、または次のような商用ツールを使用する場合もあります。

  • テクツールプロ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 修理ボリューム /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ディスクdisk2の回復

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

私はこの記事を読んでいます:破損したハードドライブから破損したHFS +パーティションを回復する方法は?しかし、エラーコードが異なります!

私は私のテストを始めるためにCentOS 7を使用したかどうか疑問に思います。

私の質問は、Appleで解決策を見つけることです。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]#                     

ベストアンサー1

おすすめ記事