Skip to content

Instantly share code, notes, and snippets.

@assafmo
Created December 12, 2018 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save assafmo/eb6db486ac6df78c9d200888f112feab to your computer and use it in GitHub Desktop.
Save assafmo/eb6db486ac6df78c9d200888f112feab to your computer and use it in GitHub Desktop.
Rescan hard drives without rebooting
#!/bin/bash
echo "- - -" > sudo tee /sys/class/scsi_host/*/scan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment