blob: c3706b14139d0ecb6f94f5db3d2340a84b86e033 (
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
59
60
61
62
63
64
65
66
67
68
69
|
NAME
deadshred - override the contents of a device that may be broken
SYNOPSIS
deadshred [-b blocksize] [-o offset] [-l length | -e postend]
[-rY] device [map-file] [< 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.
-Y
Do not ask for confirmation.
OPERANDS
The following operands are supported:
device
The file to override. Must be either a regular file or
a block device.
map-file
If the file map-file exists and is non-empty, it
specifies what sections in the file to overwrite;
this file will be periodically, and upon exit,
updated to remove parts that has been successfully
overwritten. This file will be unlinked when it
becomes empty.
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)
|