Jump to content


Photo

USB SATA adapter


  • Please log in to reply
7 replies to this topic

#1 Dimitrij

  • PLi® Core member
  • 9,992 posts

+338
Excellent

Posted 28 October 2022 - 17:23

HDD not sleep

/sys/block/sda : /sys/devices/platform/rdb/f0471000.xhci_v2/usb2/2-2/2-2.4/2-2.4:1.0/host2/target2:0:0/2:0:0:0

 

opkg install hdparm(this is a more extended version) is ok

root@gbquad4k:~# hdparm -C /dev/sda

/dev/sda:
 drive state is:  active/idle
root@gbquad4k:~# hdparm -y /dev/sda

/dev/sda:
 issuing standby command
root@gbquad4k:~# hdparm -C /dev/sda

/dev/sda:
 drive state is:  standby

maybe add xhci_v2 as internal hdd?

root@gbquad4k:~# opkg remove hdparm
Removing hdparm (9.60) from root...
update-alternatives: Linking /sbin/hdparm to /bin/busybox.nosuid
root@gbquad4k:~# hdparm -C /dev/sda

/dev/sda:
hdparm: HDIO_DRIVE_CMD: Invalid argument
 drive state is:  unknown
root@gbquad4k:~# hdparm -y /dev/sda

/dev/sda:
 issuing standby command
hdparm: HDIO_DRIVE_CMD: Invalid argument

 

 


Edited by Dimitrij, 28 October 2022 - 17:25.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: USB SATA adapter #2 Dimitrij

  • PLi® Core member
  • 9,992 posts

+338
Excellent

Posted 1 November 2022 - 17:28

Simple

 

add /etc/rcS.d/S99hdparm120.sh

chmod 755 /etc/rcS.d/S99hdparm120.sh

#!/bin/sh

[ ! -e /sbin/hdparm.hdparm ] && opkg install hdparm
[ -e /sbin/hdparm.hdparm ] && hdparm -S 120 /dev/sda
exit 0

Attached Files


Edited by Dimitrij, 1 November 2022 - 17:32.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: USB SATA adapter #3 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 6 November 2022 - 17:40

Often these USB to SATA bridges don't support setting the platter spinning timeout.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: USB SATA adapter #4 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,736
Excellent

Posted 6 November 2022 - 19:22

Same is true for those built into an enclosure. I have several here that completely ignore any spinning setting, they just always spin.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: USB SATA adapter #5 Dimitrij

  • PLi® Core member
  • 9,992 posts

+338
Excellent

Posted 11 November 2022 - 12:08

Same is true for those built into an enclosure. I have several here that completely ignore any spinning setting, they just always spin.

opkg install hdparm for test.


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: USB SATA adapter #6 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,736
Excellent

Posted 11 November 2022 - 14:32

Yes, I know, doesn't make any difference, the USB to SATA chipset used simply ignores it.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: USB SATA adapter #7 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 27 November 2022 - 13:30

Which is common practice.


Edited by Erik Slagter, 27 November 2022 - 13:30.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: USB SATA adapter #8 Dimitrij

  • PLi® Core member
  • 9,992 posts

+338
Excellent

Posted 24 January 2023 - 18:06

For info...

Add this option in plugin enigma2-plugin-systemplugins-mountmanager

ver. 3.1 - "Add standby HDD via 10 min. (hdparm)"


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users