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

Posted 武平宁

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于Linux shell:根据盘符定位硬盘在服务器上的位置的主要内容,如果未能解决你的问题,请参考以下文章