Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43b4a05522 | ||
|
|
a68e2ae834 | ||
|
|
bc7d0e0e87 | ||
|
|
2ef13143a5 | ||
|
|
ee67da83ab |
@@ -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 4096` : Use a block size of 4096
|
||||
* `-b 8192` : Use a block size of 8192
|
||||
* `-e 1` : Abort the `badblocks` test immediately if an error is found (override this setting with the `-x` option below)
|
||||
* `-v` : Verbose mode
|
||||
* `-o` : Write list of bad blocks found (if any) to a file named `burnin-[model]_[serial number].bb`
|
||||
@@ -97,6 +97,7 @@ Tested under:
|
||||
* Ubuntu Server 16.04.2 LTS
|
||||
* CentOS 7.0
|
||||
* Tiny Core Linux 11.1
|
||||
* Fedora 33 Workstation
|
||||
|
||||
## Drive Models Tested
|
||||
|
||||
@@ -116,8 +117,10 @@ The script should run successfully on any SAS or SATA disk with SMART capabiliti
|
||||
* Re (WD4000FYYZ)
|
||||
* Green
|
||||
* Red
|
||||
* WD140EDFZ
|
||||
* Seagate
|
||||
* IronWolf NAS HDD 12TB (ST12000VN0008)
|
||||
* IronWolf NAS HDD 8TB (ST8000NE001-2M7101)
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -130,4 +133,4 @@ Tested with the static analysis tool at [www.shellcheck.net](https://www.shellch
|
||||
## Author
|
||||
|
||||
Original author: Keith Nash, March 2017.
|
||||
Modified on 5 October 2020.
|
||||
Modified on 19 February 2021.
|
||||
|
||||
@@ -559,7 +559,7 @@ run_smart_test() {
|
||||
run_badblocks_test() {
|
||||
log_header "Running badblocks test"
|
||||
if [ "${DISK_TYPE}" != "SSD" ]; then
|
||||
dry_run_wrapper "badblocks -b 4096 -wsv -e ${BB_E_ARG} -o \"${BB_File}\" \"${DRIVE}\""
|
||||
dry_run_wrapper "badblocks -b 8192 -wsv -e ${BB_E_ARG} -o \"${BB_File}\" \"${DRIVE}\""
|
||||
else
|
||||
log_info "SKIPPED: badblocks for ${DISK_TYPE} device"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user