On 6/23/2015 3:15 PM, Brian C. Lane wrote: [ $ext_len -gt 1 ] || fail=1 It looks like you just changed the test to look for 1 sector, which should fail always. Did you run it? It should be: exp_len=$((ss / 512)) if [ $ss -eq 1 ] ; $ss = 2 fi [ $ext_len -eq $exp_len ] || fail=1