Created
July 2, 2018 20:49
-
-
Save gregjhogan/32ef02d5e6b98801dc8ea758b9a3e775 to your computer and use it in GitHub Desktop.
make hard drive lights blink
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| trap 'kill $(jobs -p)' EXIT | |
| for MNT in $(ls /dev/disk/by-id/*|grep -v part) | |
| do | |
| echo $MNT | |
| dd if=$MNT of=/dev/null & | |
| done | |
| sleep 1000000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment