Skip to content

Instantly share code, notes, and snippets.

@rafaelfoster
Last active January 2, 2016 19:39
Show Gist options
  • Save rafaelfoster/8351692 to your computer and use it in GitHub Desktop.
Save rafaelfoster/8351692 to your computer and use it in GitHub Desktop.
Scan for new disks on Host
# 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