Allow -b arg override in badblocks run

This commit is contained in:
kyounger
2022-05-30 10:14:33 -05:00
parent 52a934b5f8
commit 7ff8c08416
2 changed files with 14 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ The script extracts the drive model and serial number and creates a log filename
`badblocks` is invoked with the following options:
* `-b 8192` : Use a block size of 8192
* `-b 8192` : Use a block size of 8192 (override this setting with the `-b` option below)
* `-e 1` : Abort the `badblocks` test immediately if an error is found (override this setting with the `-x` option below)
* `-c 64` : Number of concurrent blocks to check. (override this setting with the `-c` option below, but beware of memory use with high values)
* `-v` : Verbose mode
@@ -51,12 +51,13 @@ The script extracts the drive model and serial number and creates a log filename
## Usage
`./disk-burnin.sh [-h] [-e] [-c <num_blocks>] [-f] [-o <directory>] [-x] <disk>`
`./disk-burnin.sh [-h] [-e] [-b <block_size>] [-c <num_blocks>] [-f] [-o <directory>] [-x] <disk>`
### Options
* `-h`: show help text
* `-e`: show extended help text
* `-b`: block size (default: 8192)
* `-c`: number of concurrent blocks to check (default: 64). Higher values will use more memory.
* `-f`: run a full, destructive test. Disables the default 'dry-run mode'. **ALL DATA ON THE DISK WILL BE LOST!**
* `-o <directory>`: write log files to `<directory>` (default: working directory `$(pwd)`)