Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 8 of 8
  1. #1

    LMS on piCorePlayer with external hdd - can I sleep / spin down the hdd?

    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

  2. #2
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,245
    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://sites.google.com/site/picoreplayer/home

    Please donate if you like the piCorePlayer

  3. #3
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,245
    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?
    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 if you like the piCorePlayer

  4. #4

    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
    >
    >

  5. #5
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    1,595
    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

  6. #6

    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 &currency_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>
    >>
    >>

  7. #7
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    941
    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
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  8. #8
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,245
    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://sites.google.com/site/picoreplayer/home

    Please donate if you like the piCorePlayer

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •