2019-07-06, 17:43
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
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