Linux shell:根据盘符定位硬盘在服务器上的位置

disk-light.sh

#!/bin/bash

t_dev=$1

[ -b "$t_dev" ] || {
        echo "-b failed: $t_dev"
        exit 1
}

busy_dev(){
        while true
        do
            dd if=$t_dev of=/dev/null bs=1024 count=30000 iflag=direct
        done
}

busy_dev
posted @ 2022-03-10 09:50  武平宁  阅读(240)  评论(0)    收藏  举报