
500GB 디스크를 사용하여 복구하려고 합니다 GNU ddrescue
.
fdisk
500GB 디스크의 경우 는 다음과 같습니다 .
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disk identifier: 0xeea5da13
Device Boot Start End Blocks Id System
/dev/sdc1 63 976768064 488384001 7 HPFS/NTFS/exFAT
ddrescue
복사 실행을 완료하고 다음을 수행했습니다.
GNU ddrescue 1.21
Press Ctrl-C to interrupt
Initial status (read from mapfile)
rescued: 481966 MB, errsize: 70382 kB, errors: 121
Current status
ipos: 482180 MB, non-trimmed: 0 B, current rate: 262 kB/s
opos: 482180 MB, non-scraped: 17927 MB, average rate: 614 kB/s
non-tried: 0 B, errsize: 70382 kB, run time: 3m 54s
rescued: 482110 MB, errors: 121, remaining time: 1d 10h 58m
percent rescued: 96.40% time since last successful read: 0s
Scraping failed blocks... (forwards)
이제 위의 단계가 완료되었으며 파일 fdisk -l
에 다음과 같이 표시됩니다 backup.img
.
Disk /media/victor/New Volume4/backup.img: 497.3 GB, 497334280192 bytes
255 heads, 63 sectors/track, 60464 cylinders, total 971356016 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 identifier: 0xeea5da13
Device Boot Start End Blocks Id System
/media/victor/New Volume4/backup.img1 63 976768064 488384001 7 HPFS/NTFS/exFAT
내가 할 때 sudo mount -o ro,offset=$((512*63)) backup.img /media/myName/recovery
나는 얻는다 :
Failed to read last sector (976768001): 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/loop0': Invalid argument
The device '/dev/loop0' 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?
이제 어떻게 해야 하나요?
답변1
도구가 잘못된 것 같습니다. Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)?
유용한 포인터입니다. 내 추측으로는 /dev/sdc 이미지를 생성했고 마운트가 장치 이미지와 혼동되는 것 같습니다.
대신 kpartx를 사용하십시오. kpartx -a -v backup.img가 /dev/mapper에 일련의 장치를 추가한 다음 정상적으로 마운트할 수 있다고 믿습니다.
답변2
다음을 사용하여 Windows에 이미지를 마운트했는데 OSFMount
완벽하게 작동했습니다. 일반 드라이브처럼 액세스할 수 있고 파일을 꺼낼 수 있습니다.
요약하자면, 파일을 백업하는 데 사용했던 500GB 드라이브가 있었습니다. NTFS로 포맷되었습니다. 다른 파티션은 없습니다. 읽기 및 쓰기 속도가 급락하여 Linux에서 전체 디스크를 솔리드 이미징하는 데 일주일을 보냈습니다 GNU ddrescue
. 그런 다음 OSFMount
실제로 Windows에 마운트하고 파일을 가져오곤 했습니다.