Skip to content
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

Immediate spin up after issuing spin down command #118

Open
TWry opened this issue Sep 22, 2024 · 2 comments
Open

Immediate spin up after issuing spin down command #118

TWry opened this issue Sep 22, 2024 · 2 comments

Comments

@TWry
Copy link

TWry commented Sep 22, 2024

When I try to spin down my external USB drive it immediately (physically) spins up again. I am guessing that this may be caused by a NFS share that I have created for this disk but I am not sure. How can I debug what is causing this behaviour?

The drive is a Seagate RSS LLC Backup Plus Hub 8TB and the driver identifies as "uas". Latest hd-idle version is installed.

@darrell-k
Copy link

Did you just format/create a new Ext4 file system? The defaults leave a lot of work to be done when it is first mounted (specifically writing inode tables) which is done by the kernel, very slowly so as not to interfere to much with regular disk access. This means a big disk could be busy for hours or more on first mount.

I just had the same issue with a new 8TB disk, and although I'd come across the issue before, I'd completely forgotten about it. Finally remembered! I decided to recreate the file system with the options to do this work up front, meaning that took 10 or 15 minutes, but straight afterwards hd-idle worked as expected.

You can also force it with a one-off mount option if you've already lots of data on the disk so don't want to recreate the file system, or just leave it plugged in and wait. All explained here: See https://fedetft.wordpress.com/2022/01/23/on-ext4-and-forcing-the-completion-of-lazy-initialization/

@adelolmo
Copy link
Owner

You could also have a look to fatrace, as mentioned in this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants