Guest User

Untitled

a guest
Dec 12th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. device=/dev/md0
  2. size="`fdisk -l $device 2>/dev/null|grep -m1 bytes |awk '{print $(NF-1)}'`"
  3. while [ 1 ];
  4. do
  5.     # $RANDOM is too small a number for the drive / drive cache
  6.     rand_size="`shuf -i1-$size -n1`"
  7.     dd if=$device  bs=1 count=1 skip="$rand_size" >/dev/null 2>&1
  8.     sleep 5
  9. done
Add Comment
Please, Sign In to add comment