summaryrefslogtreecommitdiffstats
path: root/sbin/recoverdisk/Makefile
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-09-28 22:00:01 +0000
committerphk <phk@FreeBSD.org>2004-09-28 22:00:01 +0000
commitd0514db4ed10c3a707c0f7aacd184367f11dd65e (patch)
tree51ed2b0176b859808a562cc198333200859219c9 /sbin/recoverdisk/Makefile
parent2f4ac8072dca78fa4dc46fc5409b77a5b6d77de1 (diff)
downloadFreeBSD-src-d0514db4ed10c3a707c0f7aacd184367f11dd65e.zip
FreeBSD-src-d0514db4ed10c3a707c0f7aacd184367f11dd65e.tar.gz
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
Diffstat (limited to 'sbin/recoverdisk/Makefile')
-rw-r--r--sbin/recoverdisk/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/sbin/recoverdisk/Makefile b/sbin/recoverdisk/Makefile
new file mode 100644
index 0000000..f667aec
--- /dev/null
+++ b/sbin/recoverdisk/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+PROG= recoverdisk
+
+NOMAN=1
+
+WARNS?= 5
+
+.include <bsd.prog.mk>
+
+test: ${PROG}
+ ./${PROG} /dev/ad0
OpenPOWER on IntegriCloud