나는 내 상황을 가능한 한 정확하게 설명하려고 노력할 것입니다.
전체적으로 :
SATA 2To HDD에 2개의 파티션이 실패했습니다.
시작을 거부하다
어댑터를 통해 USB에 연결하고 부팅합니다.
디스크가 다음과 같이 나타납니다
/dev/sde
.때때로 파티션이 표시됩니다
/dev/sde1, /dev/sde2
.내가 신경 쓰는 것은
/dev/sde2
그것이 크다는 것입니다 (1.8To)설치할 수 없습니다
"최우선"이 콘텐츠를 추출하지 못했습니다.
ddrescue를 두 번 시도했지만 성공하지 못했습니다(2To에서 300Gb가 복구됨).
이해할 수 없는 이상한 오류:
ddrescue: /dev/sde: Unaligned read error. Is sector size correct?
img 파일을 마운트할 수 없습니다
완전히 길을 잃었습니다 ...
로그가 포함된 더 긴 버전:
2개의 NTFS 파티션이 있는 2To HDD가 있습니다.
Disk /dev/sde: 1,82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: 001-1CH164
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xf0e9674b
Device Boot Start End Sectors Size Id Type
/dev/sde1 2048 102402047 102400000 48,8G 7 HPFS/NTFS/exFAT
/dev/sde2 102402048 3907024895 3804622848 1,8T 7 HPFS/NTFS/exFAT
나는 첫 번째 파티션에 대해 확실히 신경 쓰지 않습니다. 내가 원하는 것은 두 번째 파티션에서 나옵니다.
디스크는 SATA 포트에 있습니다. 지난주에 갑자기 오류가 발생하여 디스크가 연결된 상태에서 부팅할 수 없습니다.
SATA -> USB 어댑터를 구입하여 성공적으로 부팅했습니다.
디스크가 나타나지만 /dev/sde
마운트할 수 없습니다. 한 번만 작동했고 복사하려고 할 때 실패했습니다. 절대.
foremost
이전에 실패했던 드라이브로 큰 성공을 거두었기 때문에 시도해 보았습니다 . 짐작했듯이 작동하지 않습니다.
ddrescue를 두 번 시도했는데 결과는 다음과 같습니다.
% sudo ddrescue -n -b512 /dev/sde /home/quentin/nfs/data/forensic/ntfs_data.img /home/quentin/ntfs/ddrescue_data
GNU ddrescue 1.26
Press Ctrl-C to interrupt
ipos: 1996 GB, non-trimmed: 2928 kB, current rate: 0 B/s
opos: 1996 GB, non-scraped: 0 B, average rate: 1193 kB/s
non-tried: 1984 GB, bad-sector: 0 B, error rate: 771 B/s
rescued: 15587 MB, bad areas: 0, run time: 3h 37m 36s
pct rescued: 0.77%, read errors: 109, remaining time: 133d 11h
time since last successful read: 1m 25s
Copying non-tried blocks... Pass 1 (forwards)
ipos: 15607 MB, non-trimmed: 7823 kB, current rate: 0 B/s
opos: 15607 MB, non-scraped: 0 B, average rate: 1193 kB/s
non-tried: 1984 GB, bad-sector: 0 B, error rate: 771 B/s
rescued: 15587 MB, bad areas: 0, run time: 3h 37m 36s
pct rescued: 0.77%, read errors: 218, remaining time: n/a
time since last successful read: 1m 25s
Copying non-tried blocks... Pass 2 (backwards)
ipos: 25915 MB, non-trimmed: 10327 MB, current rate: 0 B/s
opos: 25915 MB, non-scraped: 0 B, average rate: 1193 kB/s
non-tried: 0 B, bad-sector: 0 B, error rate: 165 MB/s
rescued: 15587 MB, bad areas: 0, run time: 3h 37m 37s
pct rescued: 0.77%, read errors: 157788, remaining time: n/a
time since last successful read: 1m 26s
Copying non-tried blocks... Pass 5 (forwards)
ipos: 15587 MB, non-trimmed: 10327 MB, current rate: 0 B/s
opos: 15587 MB, non-scraped: 0 B, average rate: 1193 kB/s
non-tried: 0 B, bad-sector: 0 B, error rate: 10169 MB/s
rescued: 15587 MB, bad areas: 0, run time: 3h 37m 37s
pct rescued: 0.77%, read errors: 157788, remaining time: n/a
time since last successful read: 1m 26s
Trimming failed blocks... (forwards)
ddrescue: /dev/sde: Unaligned read error. Is sector size correct?
[23:54 quentin@qkzk forensic]% lsa
.rw-rw-r--@ 16G root 19 févr. 21:43 ntfs_data.img
[9:24 quentin@qkzk forensic]% sudo ddrescue -n -b4096 /dev/sde /home/quentin/nfs/data/forensic/ntfs_data.img /home/quentin/ntfs/ddrescue_data
GNU ddrescue 1.26
Press Ctrl-C to interrupt
Initial status (read from mapfile)
rescued: 15587 MB, tried: 10327 MB, bad-sector: 0 B, bad areas: 0
Current status
ipos: 1999 GB, non-trimmed: 10331 MB, current rate: 0 B/s
opos: 1999 GB, non-scraped: 0 B, average rate: 1566 kB/s
non-tried: 1682 GB, bad-sector: 4096 B, error rate: 762 B/s
rescued: 307649 MB, bad areas: 1, run time: 2d 3h 47m
pct rescued: 15.37%, read errors: 126, remaining time: 12d 11h 21m
time since last successful read: 1m 26s
Copying non-tried blocks... Pass 1 (forwards)
ipos: 96555 MB, non-trimmed: 10337 MB, current rate: 0 B/s
opos: 96555 MB, non-scraped: 0 B, average rate: 1566 kB/s
non-tried: 1682 GB, bad-sector: 4096 B, error rate: 762 B/s
rescued: 307649 MB, bad areas: 1, run time: 2d 3h 47m
pct rescued: 15.37%, read errors: 252, remaining time: n/a
time since last successful read: 1m 26s
Copying non-tried blocks... Pass 2 (backwards)
ipos: 353249 MB, non-trimmed: 45605 MB, current rate: 0 B/s
opos: 353249 MB, non-scraped: 0 B, average rate: 1566 kB/s
non-tried: 1647 GB, bad-sector: 4096 B, error rate: 5768 MB/s
rescued: 307649 MB, bad areas: 1, run time: 2d 3h 47m
pct rescued: 15.37%, read errors: 538394, remaining time: n/a
time since last successful read: 1m 28s
Copying non-tried blocks... Pass 5 (forwards)
ddrescue: /dev/sde: Unaligned read error. Is sector size correct?
[19:20 quentin@qkzk forensic]% lsa
.rw-rw-r--@ 319G root 22 févr. 13:13 ntfs_data.img
dmesg는 내가 이해할 수 없는 많은 오류를 제공합니다. 다음은 작은 발췌문입니다:
[264476.032135] blk_update_request: critical target error, dev sde, sector 622305296 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[264481.400606] sd 7:0:0:0: [sde] tag#19 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=5s
[264481.400637] sd 7:0:0:0: [sde] tag#19 Sense Key : Illegal Request [current]
[264481.400644] sd 7:0:0:0: [sde] tag#19 Add. Sense: Invalid field in cdb
[264481.400652] sd 7:0:0:0: [sde] tag#19 CDB: Read(10) 28 00 25 17 a0 10 00 00 08 00
[264481.400657] blk_update_request: critical target error, dev sde, sector 622305296 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[264481.400673] Buffer I/O error on dev sde, logical block 77788162, async page read
[264485.351873] sd 7:0:0:0: [sde] tag#16 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=3s
[264485.351902] sd 7:0:0:0: [sde] tag#16 Sense Key : Illegal Request [current]
[264485.351910] sd 7:0:0:0: [sde] tag#16 Add. Sense: Invalid field in cdb
[264485.351917] sd 7:0:0:0: [sde] tag#16 CDB: Read(10) 28 00 25 17 a0 10 00 00 08 00
[264485.351922] blk_update_request: critical target error, dev sde, sector 622305296 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[264485.351937] Buffer I/O error on dev sde, logical block 77788162, async page read
짐작할 수 있듯이 유사한 오류가 있는 화면이 약 20개 있습니다.
정말 혼란스러워서 .img 파일을 마운트하려고 시도했지만 성공하지 못했습니다.
[19:18 quentin@qkzk forensic]% sudo losetup -P /dev/loop0 /home/quentin/nfs/data/forensic/ntfs_data.img
[19:19 quentin@qkzk forensic]% ls /dev/loop*
/dev/loop-control /dev/loop0p1 /dev/loop1 /dev/loop3 /dev/loop5 /dev/loop7
/dev/loop0 /dev/loop0p2 /dev/loop2 /dev/loop4 /dev/loop6
[19:19 quentin@qkzk forensic]% sudo mount /dev/loop0p2 /mnt/ntfs_data
Failed to read last sector (3804622846): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/loop0p2': Invalid argument
The device '/dev/loop0p2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
나는 성공하지 못한 채 다른 방법을 시도했습니다.
ddrescue에서 제공한 오류 메시지를 이해할 수 없습니다.
ddrescue: /dev/sde: Unaligned read error. Is sector size correct?
ddrescue가 올바르게 완료되었나요? 나도 잘 모르겠어!
다음에 무엇을 해야 합니까?
- ddrescue를 다시 실행하시겠습니까?
- .img에서 일부 파일을 삭제해 보시겠습니까? (어떻게?)
혼란스럽고 긴 소식을 전해드려 죄송합니다만, 정말 당황스럽고 충격을 받았습니다. 미리 감사드립니다.