Kodi Community Forum
HDPARM, autostart.sh, more then (2) external drives - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Off-Topic (https://forum.kodi.tv/forumdisplay.php?fid=113)
+--- Thread: HDPARM, autostart.sh, more then (2) external drives (/showthread.php?tid=345201)



HDPARM, autostart.sh, more then (2) external drives - baldwonder - 2019-07-06

i cant find the answer to my noob question,

I use the following in my autostart.sh to put SDA1 drive to sleep:
#!/bin/sh
(sleep 60;
hdparm -S 60 /dev/sda1
)&

which works, but how do i code a second drive? SDB2?

I have tried different variations of the code, i'm successful in getting SDB2 to sleep, but SDA1 gets skipped and keeps running, for example
#!/bin/sh
(sleep 60;
hdparm -S 60 /dev/sda1;
hdparm -S 60 /dev/sdb2;
)&

its got to be something small, i just can't figure it out. Any suggestions would be apreciated


RE: HDPARM, autostart.sh, more then (2) external drives - ActionA - 2019-07-06

None of this has anything to do with Kodi.  You should be addressing this with the developer of the OS you are using.


RE: HDPARM, autostart.sh, more then (2) external drives - baldwonder - 2019-07-06

(2019-07-06, 17:45)ActionA Wrote: None of this has anything to do with Kodi.  You should be addressing this with the developer of the OS you are using.

ok, i thought i had posted in the correct area with it being Kodi\libeelec, let me see if i can delete this posting and check with OS


RE: HDPARM, autostart.sh, more then (2) external drives - DarrenHill - 2019-07-06

You can't, but I can. So I'll move it to off-topic.