summaryrefslogtreecommitdiff
path: root/static/unix-v10/man8/smash.8
blob: 5f076ad757d26e8c5b3087c20ee011fa0fae94fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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)