Skip to content

Instantly share code, notes, and snippets.

@oboff
Last active January 11, 2017 00:45
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 oboff/2a697034f754afecb39388c37af1ca5d to your computer and use it in GitHub Desktop.
Save oboff/2a697034f754afecb39388c37af1ca5d to your computer and use it in GitHub Desktop.
/*
* Removes power management and keeps USB hard drive alive in Linux
* You can dissable the powermanagement of your device with the following command (no powermanagement = no spindown - no standby for the harddrive)
*/
hdparm -B 255 /dev/sdX
/*
* replace sdX with the name of your harddrive
* This will only last till you restart your pc.
*
* If you want it to be permanent: write the command in this file
*/
/etc/rc.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment