Skip to content

Instantly share code, notes, and snippets.

@dragonman225
Created November 19, 2019 16:46
Show Gist options
  • Save dragonman225/a1041114dd4af9665d85f945f033670e to your computer and use it in GitHub Desktop.
Save dragonman225/a1041114dd4af9665d85f945f033670e to your computer and use it in GitHub Desktop.
Turn on disks on Linux.
#!/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