Problem Description: My Seagate Backup Plus Desktop drive which I use for daily backups will not spin down in response to hdparm commands such as sudo hdparm -S 1 /dev/sdc even though my other drives spin down appropriately. This post on askubuntu mentions that external Seagate drives have inconsistent USB to SATA feature support and that disabling quirks can sometimes fix problems like this, if the hardware does support these features. I was going to reply to their post to ask my question, but I was unable to create an account over there. My question is is there any way to know if my drive (0bc2:ab34) supports these features before attempting to disable quirks for it? Or is disabling quirks the best way to figure this out?
Relevant System Information: 2012 Mac mini with Seagate Backup Plus Desktop external HDD
I’m also rather new and I don’t have many ideas on this one.
For a lot of systems, smartctl seems to play an important part. And it shows a lot of info on drives such as drive capabilities.
You’d run sudo smartctl -a </dev/sdX> to get the details on capabilities.
smartctl keeps a database of drives, so maybe a possibility there?
Not sure how the USB-SATA controller will interfere with that though.
Thanks for the reply. Unfortunately, it looks like the quirks or usb controller are likely blocking use of smart tools:
Read Device Identity failed: scsi error unsupported field in scsi command
If this is a USB connected device, look at the various --device=TYPE variants
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
(replacing the X with your own drive letter) does that show the “*” next to every instance of “Power Management”, indicating that they are enabled?
IF your drive allows you to define the Advanced Power Management function, you can turn it on using the command:
hdparm -B 127 /dev/sdX
with that “127” value being the max which allows for you to define sleep/spin-down.
Not sure if the quirks thing is the best way to go about it. Here’s what I see as your possibilities:
Shuck the drive if it’s out of warranty, you skip the usb controller and hook it up directly to the system on a sata port or other USB sata controller.
Ask someone with a windows machine and use something like CrystalDiskMark to try to edit the settings from there, only takes a few seconds…
Ask Seagate help
Go over the different settings in smartctl to get some more info (below) sudo smartctl -a /dev/sdc -d test to see if that gives you the device type. sudo smartctl -a /dev/sdc -T permissive or verypermissive
Another possibility, iterate over some of the smartctl settings with sudo smartctl -a /dev/sdc -d <device_type>:
-d ata
-d sat
-d scsi
-d usbasm1352r,0
-d usbasm1352r,1
… more in man smartctl
Thank you both @newmemory@ericmarceau. Unfortunately I’m away for a few days and won’t be able to test whether the drive actually stops spinning with those commands, but your replies are very helpful and I will test them out when I get back.
In the meantime the results of the info gathering commands are below:
$ sudo smartctl -a /dev/sdc -d test
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.8.0-84-generic] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sdc [SAT]: Device of type 'sat' [ATA] detected
/dev/sdc [SAT]: Device of type 'sat' [ATA] opened
Adding the quirks didn’t work for me and I didn’t end up using crystaldiskinfo, but that gave me the idea to try installing the Seagate Dashboard software to a separate computer and setting power management settings that way, which worked! Thank you everyone again for the help.
Drive suspend is not a SATA controller’s on-board function. It is a capability that can be fulfilled by the controller but on the directive coming from the power management function/service.