#!/bin/bash
for((i=0;i<1000;i++)) ;do 
	n=`lsblk -nd -o name,size,serial|grep TARGET_DISK|wc -l`
        lsblk -nd -o name,size,serial
	if (( n<4 ));then
		echo "Wrong:`date`"
        	sleep 0.5
	else
		break
	fi
done
echo "$i"

