221304 |
01-May-2011 |
uqs |
recoverdisk(8): treat output file consistently and abort on EINVAL
This improves usability a little as we no longer require using touch. Also reword the manpage wrt. parameters and fix usage() [1]
With no media in a cd(4) drive, the reads will loop producing EINVAL, abort in that case [2].
Document the shortcoming of sectorsize and MAXPHYS (a quick solution to this might be having MAXPHYS as the "bigsize", in short testing it didn't make a difference on throughput).
Submitted by: arundel [1] PR: bin/154528 [2]
|
135911 |
28-Sep-2004 |
phk |
This is a small tool which will read an entire disk(partition) using 1M blocks and optionally write the read data to a file or disk.
If a read error happens, the 1M block gets put on the end of the worklist and will be retried with 64k blocksize.
If a read error happens again, the 64k block gets put at the end of the worklist and will be retried with single sector reads.
The program keeps trying until you stop it.
You can refresh a disk:
recoverdisk /dev/ad1 /dev/ad1
or salvage a floppy:
recoverdisk /dev/fd0 myfloppy.flp
|