
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
が、完璧に動作しました。通常のドライブのようにアクセスでき、そこからファイルを取得できます。
まとめると、私はファイルのバックアップに使用していた 500 GB のドライブを持っていました。NTFS でフォーマットされていました。他のパーティションはありませんでした。読み取りと書き込みの速度が急激に低下していたため、GNU ddrescue
Linux を使用してディスク全体のイメージを作成するのに 1 週間かかりました。その後、OSFMount
実際に Windows でマウントして、そこからファイルを取得していました。