Skip to content

Instantly share code, notes, and snippets.

@MelvinTo
Created September 18, 2019 11:01
Show Gist options
  • Save MelvinTo/7fe98e021c11e0409b16b0352f224f32 to your computer and use it in GitHub Desktop.
Save MelvinTo/7fe98e021c11e0409b16b0352f224f32 to your computer and use it in GitHub Desktop.
cd /home/pi
mkdir -p /home/pi/stress_data
truncate -s 1G DISK; mke2fs -q -t ext4 -F DISK
sudo mount DISK /home/pi/stress_data
sudo chmod 777 /home/pi/stress_data
stressdisk -duration 5m -s 100000000 cycle /home/pi/stress_data
awk '/Errors:/ {print $2}' /home/pi/stressdisk.log | tail -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment