opnsense-src/tools/tools/recoverdisk
2005-08-29 23:08:01 +00:00
..
Makefile Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
README Extend utility to allow recovering single file from the deffective 2005-08-29 23:08:01 +00:00
recoverdisk.c Extend utility to allow recovering single file from the deffective 2005-08-29 23:08:01 +00:00

$FreeBSD$

This is a small tool which will read an entire disk(partition) or file
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:

	touch myfloppy.flp
	recoverdisk /dev/fd0 myfloppy.flp

or recover a single file from the unreadable media:

	recoverdisk /cdrom/file.avi file.avi