ssd

by kev on March 11th, 2010
No notes
Syntax: Perl
Show lines - Hide lines - Show in textbox - Download
#!/bin/bash
 
DEF_COUNTER=3
COUNT=0
 
echo "SSD test script by Kevin"
 
if [ -n "$1" ]
then
	COUNTER=$1
else  
	COUNTER=$DEF_COUNTER
fi
 
while [  $COUNT -lt $COUNTER ]; do
	echo Test # $i ...
	echo '- - -' > /sys/class/scsi_host/host0/scan
	sleep 10
	let COUNT=COUNT+1 
done
 
tr -s ' ' '\n' < /var/log/messages | grep -c 'slow'

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS