function retry { RET=1;until [ ${RET} -eq 0 ];do { badblocks -b4096 -c16 -i badblocks -o sdc1.badblocks -sve1 /dev/sdc1 18350079 $(tail -n1 badblocks) 2>&1 | grep -o "aborting";(test $? -eq 0 && cat sdc1.badblocks >> badblocks||RET=0) };done };retry

#badsectors #检测

Comments

Be the first to add a comment