Files
2024-02-19 00:21:39 -05:00

66 lines
927 B
Plaintext

Command: badblocks - put a list of bad blocks in a file
Syntax: badblocks block_special [block] ...
Flags: (none)
Examples: badblocks /dev/hd1 # Handle bad blocks on /dev/hd1
badblocks /dev/hd3 310 570 1680 # Three bad blocks on
/dev/hd3
If a device contains bad sectors, it is important to not have them
allocated to important files. This program makes it possible to collect
up to 7 bad blocks into a dummy file, so they will not be allocated for
a 'real' file. When the program starts up, it asks for a list of bad
blocks, unless they are provided as arguments. Then it creates a file
whose name is of the form .Bad_xxxxx, where xxxxx is a pid.