blob: 54ace7bc7c6ca9a0fb56a06f1ae4408830e17bfe (
plain) (
blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
NAME
deadshred - override the contents of a device that may be broken
SYNOPSIS
deadshred [-b blocksize] [-o offset] [-l length | -e postend]
[-r] device [< random-source]
DESCRIPTION
The deadshred utility fills a file or block devices with
nonsense data. The utility is designed specifically for
erasing the content of failing hard disc drives, for this
purpose, the deadshred utility will skip any section it fails
to override and retries it later.
OPTIONS
The following options are supported:
-b blocksize
Selects the initial block-size for writing on the
first pass over the device.
-e postend
Position in the device to stop writing at. The byte
indexed by the value postend will not be overwritten.
-l length
The number of bytes in the device to overwrite. If the
-o option is unused (or the offset 0 is used), this is
equivalent to the -e option, however the -o option is
used, writing will stop at length bytes past offset.
-o offset
The index of the first byte in the device to overwrite.
-r
Start writing from the end instead of from the
beginning on the first pass over the device.
OPERANDS
The following operand is supported:
file
The file to override. Must be either a regular file or
a block device.
STDIN
Unless the standard input is a terminal device, it shall be an
unless source of either random data or a particular byte to
fill the device with.
NOTES
While the deadshred utility is designed for block devices, it
also works for regular files, however does not provide options
that are useful for erasing regular files and is not designed
to work with filesystems that use copy on write.
SEE ALSO
dd(1), shred(1)
|