summaryrefslogtreecommitdiff
path: root/static/unix-v10/man8/smash.8
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man8/smash.8
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man8/smash.8')
-rw-r--r--static/unix-v10/man8/smash.843
1 files changed, 43 insertions, 0 deletions
diff --git a/static/unix-v10/man8/smash.8 b/static/unix-v10/man8/smash.8
new file mode 100644
index 00000000..5f076ad7
--- /dev/null
+++ b/static/unix-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)