Hi
I have a piCorePlayer which runs LMS. I have upgraded my external hdd to a LaCie Rugged 2TB, which holds the LMS database as well as the local music (two different partition). everything works fine.
This morning I realised, that the hdd did not spin down (which I think it did with the older hdd, but I am not sure). Is there a way of spinning the hdd down if it is not used for some minutes (20 minutes?) so that the hdd to reduce the wear of the hdd?
Thanks,
Rainer
Results 1 to 10 of 21
-
2018-07-04, 23:45 #1
- Join Date
- Dec 2013
- Posts
- 117
LMS on piCorePlayer with external hdd - can I sleep / spin down the hdd?
-
2018-07-05, 05:41 #2
There is no hard disk management in PCP. Some drives have software (windows/Mac) that you can use to program the drives controller.
piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2018-07-05, 10:37 #3
Again, first check with the LaCie drive software..... If that doesn't allow you to change, you can try this.....let me know if it works.
ssh into your pCP device
Code:tc@piTouch:~$ wget https://dl.dropboxusercontent.com/s/u9cqeo0gxjop8zj/hdparm Connecting to dl.dropboxusercontent.com (162.125.6.6:443) hdparm 100% |*************************************************************| 102k 0:00:00 ETA tc@piTouch:~$ chmod 755 hdparm tc@piTouch:~$ sudo ./hdparm -B 127 /dev/sd? tc@piTouch:~$ sudo ./hdparm -S 240 /dev/sd?
Reference https://wiki.archlinux.org/index.php/hdparmpiCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2018-07-05, 23:43 #4
- Join Date
- Dec 2013
- Posts
- 117
LMS on piCorePlayer withexternal hdd - can I sleep / spin down the hdd?
I did - there does not seem to be any software from LaCie to shante these settings.
I have found the following info at
https://superuser.com/questions/9374...in-use-for-a-w
and will look at your suggestions.
I will report back.
Thanks,
Rainer
> On 5 Jul 2018, at 19:37, paul- <paul-.8jy4pc (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
>
> Again, first check with the LaCie drive software..... If that doesn't
> allow you to change, you can try this.....let me know if it works.
>
> ssh into your pCP device
>
>
> Code:
> --------------------
>
> tc@piTouch:~$ wget https://dl.dropboxusercontent.com/s/...xjop8zj/hdparm
> Connecting to dl.dropboxusercontent.com (162.125.6.6:443)
> hdparm 100% |************************************************* ************| 102k 0:00:00 ETA
> tc@piTouch:~$ chmod 755 hdparm
> tc@piTouch:~$ sudo ./hdparm -B 127 /dev/sd?
> tc@piTouch:~$ sudo ./hdparm -S 240 /dev/sd?
>
> --------------------
>
>
> Obviously replace sd? with your drive letter. This should set your
> spindown at 20min, if the drive supports it.
>
> Reference https://wiki.archlinux.org/index.php/hdparm
>
>
>
> piCorePlayer a small player for the Raspberry Pi in RAM.
> Homepage: https://sites.google.com/site/picoreplayer/home
>
> Please 'donate'
> (https://www.paypal.com/cgi-bin/websc...if%3aNonHosted)
> if you like the piCorePlayer
> ------------------------------------------------------------------------
> paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
> View this thread: http://forums.slimdevices.com/showthread.php?t=109223
>
>
-
2018-07-06, 04:09 #5
- Join Date
- Jan 2010
- Location
- Hertfordshire
- Posts
- 8,868
HD-idle also works well. There is a guide half way down this page.
https://www.htpcguides.com/spin-down...-raspberry-pi/
Sent from my SM-G900F using Tapatalk
-
2018-07-08, 02:16 #6
- Join Date
- Dec 2013
- Posts
- 117
LMS on piCorePlayer withexternal hdd - can I sleep / spin down the hdd?
OK - Installed it and set the parameter as suggested. Let’s see if it works (I did not get any error messages:
tc@LMS:~$ sudo ./hdparm -B 127 /dev/sdb
/dev/sdb:
setting Advanced Power Management level to 0x7f (127)
APM_level = 127
tc@LMS:~$ sudo ./hdparm -S 240 /dev/sdb
/dev/sdb:
setting standby to 240 (20 minutes)
tc@LMS:~$
Now the question, how can I mage this to be set again after a reboot - ore are the parameter stored in the hdd?
Thanks,
Rainer
> On 6 Jul 2018, at 08:43, Rainer M Krug <Rainer (AT) krugs (DOT) de> wrote:
>
> Signed PGP part
> I did - there does not seem to be any software from LaCie to shante these settings.
>
> I have found the following info at
>
> https://superuser.com/questions/9374...in-use-for-a-w <https://superuser.com/questions/937480/does-the-raspberry-pi-2-put-usb-external-drives-to-sleep-when-not-in-use-for-a-w>
>
> and will look at your suggestions.
>
> I will report back.
>
> Thanks,
>
> Rainer
>
>
>
>> On 5 Jul 2018, at 19:37, paul- <paul-.8jy4pc (AT) no-mx (DOT) forums.slimdevices.com <mailtoaul-.8jy4pc (AT) no-mx (DOT) forums.slimdevices.com>> wrote:
>>
>>
>> Again, first check with the LaCie drive software..... If that doesn't
>> allow you to change, you can try this.....let me know if it works.
>>
>> ssh into your pCP device
>>
>>
>> Code:
>> --------------------
>>
>> tc@piTouch:~$ wget https://dl.dropboxusercontent.com/s/...xjop8zj/hdparm <https://dl.dropboxusercontent.com/s/u9cqeo0gxjop8zj/hdparm>
>> Connecting to dl.dropboxusercontent.com <http://dl.dropboxusercontent.com/> (162.125.6.6:443)
>> hdparm 100% |************************************************* ************| 102k 0:00:00 ETA
>> tc@piTouch:~$ chmod 755 hdparm
>> tc@piTouch:~$ sudo ./hdparm -B 127 /dev/sd?
>> tc@piTouch:~$ sudo ./hdparm -S 240 /dev/sd?
>>
>> --------------------
>>
>>
>> Obviously replace sd? with your drive letter. This should set your
>> spindown at 20min, if the drive supports it.
>>
>> Reference https://wiki.archlinux.org/index.php/hdparm <https://wiki.archlinux.org/index.php/hdparm>
>>
>>
>>
>> piCorePlayer a small player for the Raspberry Pi in RAM.
>> Homepage: https://sites.google.com/site/picoreplayer/home <https://sites.google.com/site/picoreplayer/home>
>>
>> Please 'donate'
>> (https://www.paypal.com/cgi-bin/websc...if%3aNonHosted <https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB ¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donat eCC_LG%2egif%3aNonHosted>)
>> if you like the piCorePlayer
>> ------------------------------------------------------------------------
>> paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 <http://forums.slimdevices.com/member.php?userid=58858>
>> View this thread: http://forums.slimdevices.com/showthread.php?t=109223 <http://forums.slimdevices.com/showthread.php?t=109223>
>>
>>
-
2018-07-08, 04:02 #7
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 5,442
The article that paul- linked to suggests a way to make it persist.
Look for "Persistent configuration using udev rule".
I don't know for sure that it will work with pCP (TinyCore) but should be easy to test.Paul Webster
Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin
-
2018-07-08, 05:14 #8
The easiest way right is to make a little script, then call that script via the User Commands at the bottom of the tweaks page.
I noticed you referenced /dev/sdb. If you have more than one USB drive, it may change drive letters at the next reboot.piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2018-09-01, 00:04 #9
- Join Date
- Aug 2018
- Posts
- 19
Hello, I used the download link and the instructions, and it is really fine !
I hope that this feature will find its way as an official extension to the system.
Thanks for all and best regards,
JMF
-
2018-09-01, 00:15 #10
Thanks JMF for joining us over here.