Skip to content

Instantly share code, notes, and snippets.

@skarllot
Forked from rafaelfoster/scan_scsi_disks.sh
Created June 6, 2014 19:02
Show Gist options
  • Save skarllot/7acfee45aaf776123a6b to your computer and use it in GitHub Desktop.
Save skarllot/7acfee45aaf776123a6b to your computer and use it in GitHub Desktop.
# This command scan new hard disk drives on Linux Systems.
# this is useful when the host is on a Virtual Environment and you add new hard disks to it
ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment