linux 点亮硬盘

vi disk.sh

#!/bin/bash
hd=$1
for num in {1..5};do
        dd if="$hd" of="/dev/null" bs=4M count=1000 iflag=direct conv=noerror >/dev/null 2>&1
        sleep 1
done

 

sh disk.sh /dev/sda