From 7cf7ba7e780e76213c84f43e8ae4a8b8d1bffed6 Mon Sep 17 00:00:00 2001 From: dak180 Date: Fri, 1 May 2020 20:23:39 -0400 Subject: [PATCH] Try to get better disk utilzation from badblocks. --- disk-burnin.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/disk-burnin.sh b/disk-burnin.sh index d27417b..a67da71 100755 --- a/disk-burnin.sh +++ b/disk-burnin.sh @@ -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)"