[kwlug-disc] powering Seagate USB external disk off and on from Linux?
Khalid Baheyeldin
kb at 2bits.com
Mon Nov 17 20:17:15 EST 2025
I don't know about USB drives, but I do something similar in
a trayless SATA drive bay, similar to this one
<https://www.memoryexpress.com/Products/MX26764>, which takes
regular 3.5 SATA drives.
Using such a bay allows me to rotate the disk off site.
Since the disk is used only once a day, I tell the disk to sleep after
a certain amount of time with no activity, using this command:
sudo hdparm -S 60 /dev/sdd1
Bonus:
Before I eject the disk, I do this:
DISK=/dev/sdd
# Spin down the disk
echo "Spinning down $DISK ..."
sudo hdparm -Y $DISK
# Stop/disconnect the disk
echo "Disconnecting $DISK ..."
DEVICE=`basename $DISK`
echo 1 | sudo tee /sys/block/$DEVICE/device/delete
No idea if the above applies to UAS. I vaguely recall that
I tried the above and it didn't work, or worked with a certain
disk, but not the other because of a specific chipset.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20251117/30197ada/attachment.htm>
More information about the kwlug-disc
mailing list