To prevent my external drive from sleeping I need to use this command:
sudo sdparm --clear=STANDBY /dev/sdb2
Do I have to use it every time I boot? Or just one time and I am set forever?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I think that will work if you also add a
--save tag after
sdparm, but you might want to check the file after reboot to make sure.
sudo sdparm --save --clear=STANDBY /dev/sdb2
Here is the snippet from an
sdparm man page:
When a mode page is being modified (by using the --clear=STR and/or --set=STR options) then the default action is to modify only the current values mode page. When this option is given then the corresponding value(s) in the saved values mode page is also changed. The next time the device is power cycled (or reset) the saved values mode page becomes (i.e. is copied to) the current values mode page.
See NOTES section below.