summaryrefslogtreecommitdiff
path: root/static/v10/man8/smash.8
diff options
context:
space:
mode:
Diffstat (limited to 'static/v10/man8/smash.8')
-rw-r--r--static/v10/man8/smash.843
1 files changed, 43 insertions, 0 deletions
diff --git a/static/v10/man8/smash.8 b/static/v10/man8/smash.8
new file mode 100644
index 00000000..5f076ad7
--- /dev/null
+++ b/static/v10/man8/smash.8
@@ -0,0 +1,43 @@
+.TH SMASH 8
+.CT 1 sa_nonmortals
+.SH NAME
+smash \- rewrite bad disk sectors
+.SH SYNOPSIS
+.B /etc/smash
+.I device sector
+.SH DESCRIPTION
+.I Smash
+attempts to read the named (decimal, 512-byte)
+.I sector
+from the named
+.IR device ,
+and prints the error status from the read
+and the data read,
+in octal,
+regardless of the error status.
+It then prompts
+.LR write? ,
+to which there are three answers:
+.TP
+.B y
+Write the data back to the sector.
+.TP
+.B c
+Write zeros to the sector.
+.TP
+anything else
+Quit.
+.PP
+After the sector is written,
+it is read again
+and the cycle repeats.
+.PP
+Writing the sector,
+even if its contents could be correctly read,
+will recompute the error correcting code.
+This may make soft ECC errors vanish,
+and will recover what can be recovered
+(sometimes not much)
+from hard ECC errors.
+.SH SEE ALSO
+.IR rarepl (8)