진단을 위해 CentOS 7에서 테스트된 HSF+ USB 외장 하드 드라이브에서 파일 복구

진단을 위해 CentOS 7에서 테스트된 HSF+ USB 외장 하드 드라이브에서 파일 복구

노트:

내 문제의 결과는 다음과 관련이 있습니다.손상된 하드 드라이브에서 손상된 HFS+ 파티션을 복구하는 방법은 무엇입니까?

우분투에 대한 또 다른 결과: https://askubuntu.com/questions/955325/using-gpart-testdisk-to-recover-gpt-for-files-from-damaging-hfs-apple-hd

USB, 외장하드가 있어요HSF+파일 시스템.

문제는 MAC에서 파일을 추출할 수 없다는 것입니다.맥OS 시에라 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]#                     

관련 정보