aboutsummaryrefslogtreecommitdiffstats
path: root/README
blob: 010786fd0a8d8dfe1b676e09bf1fa74fa816f825 (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
NAME
	deadshred - override the contents of a device that may be broken

SYNOPSIS
	deadshred [-o offset] [-l length | -e postend] 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:

	-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.

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)