kyounger
7ff8c08416
Allow -b arg override in badblocks run
2022-05-30 10:22:35 -05:00
kyounger
52a934b5f8
Allow -c arg override in badblocks run
2022-05-30 10:21:56 -05:00
hogenf
aede45b87d
Update notes on badblocks block size to 8192
2021-10-09 17:48:28 +02:00
Keith Nash
a68e2ae834
Increased memory buffers from 4096 to 8192
2021-02-19 15:20:51 -06:00
Keith Nash
7f6792d6e3
Fixed problem identifying some mechanical drives as SSDs
...
Added -x option to control the badblocks -e option, allowing extended testing.
Added smartctl to the list of dependencies.
Changed disk type detection so that we assume all drives are mechanical drives
unless they explicitly return 'Solid State Drive' for Rotational Rate.
Removed datestamp from every line of log output, only emitting it in log headers.
Minor reformatting.
2020-10-05 23:41:41 -05:00
Michael Schnerring
9a211d13e8
update help text
2020-09-10 00:41:54 +02:00
Michael Schnerring
f5b2fba114
fix dry_run_wrapper()
2020-09-09 19:53:18 +02:00
Michael Schnerring
bfa816c68b
query "Model Number" when getting disk model
2020-09-09 19:14:31 +02:00
Michael Schnerring
31def99394
fix grep redirection
...
fix grep regexes
2020-09-09 19:14:16 +02:00
Michael Schnerring
a9ce30c92a
skip badblocks for non-mechanical drives
2020-09-09 18:59:20 +02:00
Michael Schnerring
c5b193f76c
add changes to VERSION history
2020-09-09 18:23:48 +02:00
Michael Schnerring
76fd4bd50d
implement dry_run_wrapper()
2020-09-09 18:09:00 +02:00
Michael Schnerring
cd16bc6cd6
decouple by splitting code into smaller functions
2020-09-09 17:59:59 +02:00
Michael Schnerring
53c9d579a7
make <disk> option more resilient by also allowing /dev/ prefix
2020-09-09 17:58:55 +02:00
Michael Schnerring
aafc497863
add docs from file header to help text
...
add -e option for "extended" help text
move option parsing to the top to be able to always display help text
add Tiny Core Linux 11.1 to tested OS; add IronWolf HDD to tested HDDs
consolidate help text and README.md
2020-09-09 17:58:25 +02:00
Michael Schnerring
d31b60bfcd
remove --captive option from smart tests
2020-09-09 02:19:26 +02:00
Michael Schnerring
5d702df0a6
change constant names to uppercase
...
regroup constants logically together
2020-09-09 01:52:03 +02:00
Michael Schnerring
57f8dd5227
implement option parsing
...
* -h for help text
* -f for non-dry mode
* -o <directory> to specify log directory
2020-09-09 00:31:33 +02:00
Michael Schnerring
4a8d44e6a8
check if running as root
2020-09-08 23:00:35 +02:00
Michael Schnerring
0dc4614b3a
adjust informational output for readability
...
remove duplicate output of drive information
add OS_FLAVOR and HOSTNAME constants
2020-09-08 22:52:01 +02:00
Michael Schnerring
0dcbdcf12c
make constants readonly
2020-09-08 22:51:29 +02:00
Michael Schnerring
fb842ea127
use long smartctl options to improve readability
...
run smartctl --test in --captive mode
remove smart test code duplication
add function documentation
2020-09-08 22:50:45 +02:00
Michael Schnerring
3a21b21eca
refactor logging
...
use printf instead of echo to improve portability
rename echo_str to log_info
create log_header function to reduce code duplication
2020-09-08 21:45:19 +02:00
Michael Schnerring
8b3c16cebf
implement dependency check
2020-09-08 21:22:57 +02:00
Michael Schnerring
cfaedeac28
simplify and document poll_selftest_complete()
2020-09-08 21:18:11 +02:00
Michael Schnerring
40e114da98
rename duration parameters for expressiveness
...
add more detailed comments to duration parameters
2020-09-08 21:17:26 +02:00
Michael Schnerring
492e4ca429
remove dependency on pcregrep and tr
...
move SMART info querying to well documented functions for readability
2020-09-08 21:16:36 +02:00
Michael Schnerring
0b36a8658a
add .editorconfig; remove trailing whitespace
...
add myself to license.txt
2020-09-08 16:00:05 +02:00
Keith Nash
f07f20a864
Update disk-burnin.sh
2020-08-19 17:13:20 -05:00
Keith Nash
cb720c91e1
Changed several default settings
...
Changed Dry_Run value so that dry runs are no longer the default setting.
Changed badblocks call to exit immediately on first error.
Set logging directoryto current working directory using pwd command.
Reduced default tests so that we run:
1> Short SMART test
2> badblocks
3> Extended SMART test
2020-08-19 16:32:40 -05:00
Nicolai Willems
dd74d421ce
Bew more lenient when reading serial-numbers
...
This is done to allow the log file to be generated uniqely even if the info is a bit hard to get.
2020-04-09 17:05:34 +02:00
Keith Nash
28cd95c52c
Modify parsing of short and extended test durations
...
Modified parsing of short and extended test durations to accommodate the values returned by larger drives; we needed to strip out the '(' and ')' characters surrounding the integer value in order to fetch it reliably.
2017-06-08 11:37:51 -05:00
Keith Nash
64f92d9084
Modified disk identification and log file-naming
2017-05-23 10:27:16 -05:00
Keith Nash
14beaa84a3
Added polling to check for SMART test completion
2017-05-12 11:36:38 -05:00
Keith Nash
19102688a6
POSIX-compliant version
2017-03-20 23:37:33 -05:00
Keith Nash
aac44b78e3
disk-burnin.sh
2017-03-15 00:58:08 -05:00
Keith Nash
bdeb1136c2
disk-burnin.sh
2017-03-14 12:44:56 -05:00
Keith Nash
15968d0782
Add files via upload
2017-03-14 11:32:52 -05:00
Keith Nash
8c69281350
Add files via upload
2017-03-14 10:50:00 -05:00