Commit Graph

72 Commits

Author SHA1 Message Date
Keith Nash 71de6db4ff Update README.md 2020-10-05 23:56:36 -05:00
Keith Nash ad723c4980 Update README.md 2020-10-05 23:50:28 -05:00
Keith Nash a899831ec9 Update README.md 2020-10-05 23:48:46 -05: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
Keith Nash 84134fe241 Merge pull request #8 from schnerring/master
Add dry_run_wrapper(), update docs, improve option parsing, add detection for mechanical drives
2020-09-09 23:22:30 -05:00
Michael Schnerring 9a211d13e8 update help text 2020-09-10 00:41:54 +02:00
Michael Schnerring 5c2d3feb99 add up-to-date dry-run sample log 2020-09-09 22:02:47 +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
Keith Nash 1499e729ec Merge pull request #7 from schnerring/master
Remove code duplication and dependencies; improve portability, readability and docs; add option parsing, dependency and sudo check
2020-09-09 00:39:03 -05: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 8744bbd5d0 fix markdownlint issues in README.md 2020-09-08 16:00:29 +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 Original-version 2020-08-19 17:13:20 -05:00
Keith Nash bea27b48d6 Update README.md 2020-08-19 17:11:02 -05:00
Keith Nash dc8a503f1c Update README.md 2020-08-19 17:09:38 -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
Keith Nash 8786548073 Update README.md 2020-06-20 23:12:55 -05:00
Keith Nash 8dfbd1f512 Update README.md 2020-06-20 23:11:42 -05:00
Keith Nash c4f58e5c15 Update README.md 2020-06-20 23:09:11 -05:00
Keith Nash 10541d2986 Update to include info about ioctl warning on FreeBSD 2020-06-20 23:07:10 -05:00
Keith Nash 13b6f1c011 Updated applicable OS list 2020-04-29 12:18:12 -05:00
Keith Nash 4ff67db8ef Merge pull request #4 from nwillems/patch-1
Be more lenient when reading serial-numbers
2020-04-09 10:38:36 -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 70787741bd Update README.md 2020-04-07 15:32:04 -05:00
Keith Nash 305cf1126b Update README.md 2020-04-07 15:31:38 -05:00
Keith Nash 00c5b9d9bf Make dry run issue more prominent 2020-04-07 15:26:30 -05:00
Keith Nash 662918e898 Update README.md
fixed typo
2019-12-15 14:16:46 -06:00
Keith Nash d5ab95ba14 Update README.md
Added reference to device options based on comments by bcmryan
2019-12-15 14:15:14 -06:00
Keith Nash 14934b73d5 Update README.md 2019-12-15 14:11:29 -06:00
Keith Nash 4032dcc19a Update README.md 2019-12-15 14:06:15 -06:00
Keith Nash 0749b05514 Update README.md
Highlight fact that script defaults to 'dry run' mode and must be changed to test drives.
2019-12-15 13:58:55 -06:00