SAT Issues with external HDD Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
j0chn
Posts: 4
Joined: Sun Jun 14, 2020 5:59 am

SAT Issues with external HDD

Post by j0chn »

Hey folks,
I connected an external HDD (Seagate Desktop Expansion) to my Raspi4 (using latest and up to dte dietpi version) to use it as Nextcloud data storage.
Generally everything works fine so far. The only thing is that I want to spin the drive down or let it go to hibernate state or something to turn it off when it is not used actively. So I wanted to set the spindowntime with hdparm and I get following message when using hdparm.
Image
With lsusb -t I found out that it is an UAS partition
Image
And now I found this guide https://www.smartmontools.org/wiki/SAT-with-UAS-Linux.
Summarized it tells to change the usb-storage.quirks to ignore setting the flag that SAT is not supported.
It then says to update the distrobutions ramdisk.
I did with update-initramfs -u (after and before taht I tried to create one with update-initramfs -c -k 'all').
Unfortunately I get same result as shown above when using hdparm.
I do not know if there is an issue as I told my SDcard to use my USB stick for /root (change that in /boot/cmdline.txt).
Can you guide me how to enable SAT commands or other ways to spindown my HDD when idle?!.
Thank you very much.

Edit: smartmon show following information
Image
j0chn
Posts: 4
Joined: Sun Jun 14, 2020 5:59 am

Re: SAT Issues with external HDD

Post by j0chn »

Hey folks,
found it out. You have to edit the cmdline.txt within /boot/.
usb-storage.quirks=aaaa:bbbb:u where aaaaa is the vendor id and bbbb is the device id.
update-initramfs -u -> reboot -> check.
Thats it.
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: SAT Issues with external HDD

Post by Joulinar »

Hi,

many thanks for sharing your solution. Much appreciated.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
j0chn
Posts: 4
Joined: Sun Jun 14, 2020 5:59 am

Re: SAT Issues with external HDD

Post by j0chn »

You are welcome.
I hate it myself, when I find the same or at least a likely problem and someone only posts -> "Found solution. Thread can be closed".... :roll:
Post Reply