Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-08-2021, 12:14 PM
|
#1
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639
Rep: 
|
What is better for hard discs - spinning down and waking every 1/4 hour or running continuously?
Title says it all. I put two of my disks to sleep after 3 minutes running, but something is waking them every quarter hour or so. Is it healthier for them to keep them running in a use of two times 2 - 3 hours of use per day or spinning them down? What hurts them less?
|
|
|
04-08-2021, 12:55 PM
|
#2
|
Senior Member
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,849
|
Quote:
Originally Posted by JZL240I-U
Title says it all. I put two of my disks to sleep after 3 minutes running, but something is waking them every quarter hour or so. Is it healthier for them to keep them running in a use of two times 2 - 3 hours of use per day or spinning them down? What hurts them less?
|
Check your crontabs so see if some job involving your disks is scheduled to run every 15 minutes. Systemd may be running something behind your back at that interval, too.
One data point: I've had disks that ran almost continously for years (except for brief shutdowns---mainly household power failures or equipment moves) and they experienced no problem. Until, that is, they reached the far end of the "bathtub" curve. (I had an old Seagate 2GB drive that ran pretty much non-stop for the better part of a dozen years before it gave up. They don't make 'em like that any more.) My view is that powering on a component -- disk, power supply, etc. -- is likely when it's going to fail... so I leave things spinning.
Another data point: I leave the hard disk in my laptop spinning as long as AC power is applied. The disk in it is many years old and shows no signs of failing. Sure... I might extend the uptime while the laptop is running on battery but I rarely run it that way so long as there's an AC outlet available.
|
|
|
04-08-2021, 01:16 PM
|
#3
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,863
Rep: 
|
Continuous running puts less stress on a disk; every time you spin up also uses more power.
|
|
|
04-08-2021, 01:21 PM
|
#4
|
Senior Member
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,815
|
Perhaps it's smartd polling, which defaults to every 30 minutes. You can configure smartd to skip disks that are sleeping.
From my /etc/smartd.conf:
Code:
# The word DEVICESCAN will cause any remaining lines in this
# configuration file to be ignored: it tells smartd to scan for all
# ATA and SCSI devices. DEVICESCAN may be followed by any of the
# Directives listed below, which will be applied to all devices that
# are found. Most users should comment out DEVICESCAN and explicitly
# list the devices that they wish to monitor.
#DEVICESCAN -H -m root
/dev/sda -d ata -H -m root -n standby,q
/dev/sdb -d ata -H -m root -n standby,q
/dev/sdc -d ata -H -m root -n standby,q
|
|
|
04-08-2021, 01:54 PM
|
#5
|
Member
Registered: Sep 2018
Location: Costa Rica
Distribution: Antix21a2,Parrot rolling,MXfce19.4,Sparky Openbox
Posts: 233
Rep: 
|
My machine in my shop has only been rebooted once or twice in 3 years. Kernel change
Debian. Runs my plasma cutting cnc. No problem. These pieces of crap are designed to run continually
|
|
|
04-08-2021, 11:40 PM
|
#6
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,497
|
Status quo changes are more stressful than maintaining status quo. Keep them spinning.
|
|
1 members found this post helpful.
|
04-09-2021, 11:39 AM
|
#7
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639
Original Poster
Rep: 
|
Okay, thanks, I'll keep them spinning then. Thanks also for the infos about cron, systemd and smartd.conf -- I'll keep those in memory just in case  .
|
|
|
04-11-2021, 02:02 AM
|
#8
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
I have a drive I only use once a week for automated backups. It was surprisingly hard to make the system ignore it, while still being able to mount it:
https://dt.iki.fi/disable-usb-drive
https://dt.iki.fi/udev#scenario-igno...d-backup-drive
Even if your drive is not USB-connected, there might be some interesting bits in those articles. But do take them with a grain of salt.
|
|
|
04-11-2021, 08:38 AM
|
#9
|
Member
Registered: Sep 2018
Location: Costa Rica
Distribution: Antix21a2,Parrot rolling,MXfce19.4,Sparky Openbox
Posts: 233
Rep: 
|
I have a spinner from 2000 in a USB adapter that still spins.It has all those "shared files" from ??? NAPSTER ! Took a few for this old guy to remember the name.We invented "free softwarez" back in the day. LOL.
|
|
|
04-11-2021, 09:46 AM
|
#10
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639
Original Poster
Rep: 
|
Quote:
Originally Posted by ondoho
|
Thanks, ondoho interesting reading but not my usecase. Nice to know anyway  .
|
|
|
All times are GMT -5. The time now is 10:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|