Created
November 19, 2019 16:46
-
-
Save dragonman225/a1041114dd4af9665d85f945f033670e to your computer and use it in GitHub Desktop.
Turn on disks on Linux.
This file contains 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 | |
for i in $(seq 1 5); | |
do | |
echo "Scan host${i}" | |
echo "- - -" > /sys/class/scsi_host/host${i}/scan | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment