-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Drive_Manager | External Seagate USB 3.0 drive not spinning down #2905
Comments
Please post the output of
What is the exact type/ model of the case / enclosing? |
@tomillr Besides drive model, which SBC or PC are you using? |
I'm using a Apollo Lake-based "AP34" mini pc made by Beelink. Please see the requested info below.
|
@tomillr Can you please paste:
And compare power states once when drive is active, once after it has been idle for definitely the defined spin-down time and again once after
Another thing to try (afterwards) is to edit |
See below for the hdparm.conf used:
How about using a tool like TLP or powertop to manage spin down and also power down used USB ports? EDIT: Is there a way to manually trigger an HDD to spin up so that I can test the automatic spin down function? Can I just go into disk manager, scan for new drives and by doing so force the drives to spin up? |
Was this after
You can try it, however if it's about drive power management I don't believe that other tools can do what hdparm can't (using apm events).
|
Hm, noticed another strange behavior: I was able to manually spin up the drive my going into the dietpi-drive_manager. I then went and edited the spin down timer to 300 seconds and exited out of the drive manager. Calling
I only get a proper reading back after using
After that the drive automatically spins down after the set value of 300 seconds.
Any idea why that happens only after requesting the drive information? |
@tomillr
https://manpages.debian.org/stretch/hdparm/hdparm.8.en.html#OPTIONS Now I see that
However one can play with these modes to see which works and which not. Just bad that there is no command to only set the spin-down timeout but not actually touch the current mode. |
This is a common problem with Seagate drives. Not related to dietpi usage. I have one that does the same thing, unless it is ran with the bundled software. Which happens to be windows and mac software only. |
In some cases disabling SMART scrubbing helps:
If it shows „Auto Offline Data Collection“ as enabled, spin down is not possible while running SMART tests. To disable those tests (permanently):
|
@diveyez
@PeterLacknase So @tomillr if hdparm -I restores a working drive state in you case and allows spin-down in the defined time, I will add this call to drive manager after chaning the value. |
Forgot about @tomillr
|
|
@tomillr I am not too experienced with this, does |
Okay, device identifier is the same on all systems+ports, all x86_64 Debian versions use the usb-storage as kernel module and since the newest v4.19 requires the fix, I will add this now by default to all x86_64 systems on DietPi-PREP + DietPi-Update to v6.25. Done: Last question is if |
I've mounted an external 5tb USB 3.0 drive made by Seagate and set the idle spindown timer to 5 minutes in die DietPi Drive Manager. Unfortunately, the drive just keeps on spinning, even though I'm running a minimal install of DietPi with no user activity to the drive.
Manually testing hdparm just gives me an error message. Apparently, there is an issue with the kernel version and how it handles "ATA command pass through". As a workaround you can blacklist the device by running this call:
Afterwards I can at least have the drive spin down manually by using
hdparm -y /dev/sda
.Unfortunately, the automatic spindown still doesn't work. Once I access the drive and it spins up, the drive just keeps on running.
Any idea what I should do here?
https://dietpi.com/phpbb/viewtopic.php?f=11&t=6031
The text was updated successfully, but these errors were encountered: