-
Notifications
You must be signed in to change notification settings - Fork 5.2k
hdparm not working correctly on PI4, cannot control hdd spindown time #3335
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
Comments
The Pi 4 uses UAS as the disk transport, not USB mass-storage which is used on all previous models of Pi. I have a Sabrent USB3.0 adapter which exhibits the issue - on a Pi 4 In both cases for The command is failing on both Pis, presumably because the device doesn't support the command, but the UAS case is noisier about it. In your case, it's probable that the pass-through isn't working with UAS but is with mass-storage. |
Can you try the steps here and report back: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=245931 |
After adding quirks to /boot/cmdline.txt, problem solved, the hard disk works very well so far. Thanks. The quirks added to /boot/cmdline.txt root@raspberrypi:/home/pi# cat /boot/cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=d9b3f436-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles usb-storage.quirks=0bc2:231a:u
|
Closing as workaround implemented. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
The
hdparm -I /dev/sda
is not working, similar harddisk command likehdparm -y /dev/sda
also fails.To reproduce
hdparm -I /dev/sda
hdparm -y /dev/sda
hdparm -C /dev/sda
Expected behaviour
Support set harddisk spin-down time.
On pi3, all things works fine
Run same command on pi3 with same USB hard disk, everything works fine:
System
Pi4
cat /etc/rpi-issue
)?Raspberry Pi reference 2019-09-26
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 80d486687ea77d31fc3fc13cf3a2f8b464e129be, stage5
vcgencmd version
)?Sep 24 2019 17:34:30
Copyright (c) 2012 Broadcom
version cd3add54955f8fa065b414d8fc07c525e7ddffc8 (clean) (release) (start
uname -a
)?Linux raspberrypi 4.19.75-v7l+ solved issue of mirroring screen after rotation. #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
Logs
dmesg on PI4
same disk on pi3's dmsg log, this works fine
Additional context
The text was updated successfully, but these errors were encountered: