Try to get better disk utilzation from badblocks.

This commit is contained in:
dak180 2020-05-01 20:23:39 -04:00
parent 1b48d1c5b7
commit 7cf7ba7e78
No known key found for this signature in database
GPG key ID: 6E2DC12780B8BB51

View file

@ -134,6 +134,8 @@
#
########################################################################
# tmux new -d -n da* /mnt/jails/scripts/disk-burnin.sh -td da*
dbUsage() {
tee >&2 << EOF
Usage: ${0} [-h] [-t] [-l directory] [-b directory] -d drive-device-specifier
@ -420,9 +422,9 @@ run_badblocks_test() {
#
# This is the command which erases all data on the disk:
#
badblocks -b 4096 -wsv -o "$BB_File" "/dev/${driveID}"
badblocks -b 4096 -c 512 -wsv -o "$BB_File" "/dev/${driveID}"
else
echo_str "Dry run: would run badblocks -b 4096 -wsv -o ${BB_File} /dev/${driveID}"
echo_str "Dry run: would run badblocks -b 512 -c 4096 -wsv -o ${BB_File} /dev/${driveID}"
fi
echo_str "Finished badblocks test on drive /dev/${driveID}: $(date)"