Help with HDD
I have a 4TB HDD that I use to store music, films, images, and text files. I have a 250GB SDD that I use to install my OS and video games. So far I didn't have any problem with this setup, obviously it's a bit slower when it reads the HDD but nothing too serious, but lately it's gotten way worse, where it just lags too much when I try to access files on that disk, and specially when it comes to listening to music, it's super annoying. I'm using Elisa music player and it just takes ages to load the albums.
Below is my system and HDD information. I think I'm supposed to use hardlinks or something to access those files, could that be a reason? I've never even fully filled my HDD and it's only 3 years old.
System Details Report
Report details
Hardware Information:
- Hardware Model: ASUSTeK COMPUTER INC. PRIME A320M-K
- Memory: 16.0 GiB
- Processor: AMD Ryzen™ 5 5600G with Radeon™ Graphics × 12
- Graphics: AMD Radeon™ Graphics
- Disk Capacity: 4.2 TB
Software Information:
-
Firmware Version: 6042
-
OS Name: Fedora Linux 39 (Workstation Edition)
-
OS Build: (null)
-
OS Type: 64-bit
-
GNOME Version: 45.5
-
Windowing System: Wayland
-
Kernel Version: Linux 6.7.11-200.fc39.x86_64
I would check the kernel messages (sudo dmesg) and check for errors on the ata bus. If there are it's most likely the disk that is failling
A bad SATA cable will cause this too.
Yes, that's true and a bad or undersized power supply also but in my experience it is much more likely to have a bad disk than to have something else fail
It's extremely long so I just copied a bit, but I see some errors regarding the ata bus I think.
According to another post sdb is your 4tb drive. This log shows errors reading from sdb.
The sectors it’s failing to read from aren’t consistent so it’s possible it’s a bad cable. Replace the data cable and see if you have the same behavior.
Be prepared to replace the drive.
Hey, I replaced the cable and everything seems to be working fine, thank you!
Hell yeah!
Get a new one, maybe a 4TB SATA SSD (if you have the space, SATA is just better than NVME imho, way cheaper and less heat) and DO A BACKUP.
"Spinning things" will break way easier than nonmoving parts.
These might very well be signs of failure.
Just because there are no moving parts doesn't mean there is no wear. SSDs have max program/ erase cycles that causes them to fail over time. They do tend to be more reliable than HDDs but it's not as dramatic as you might think. And would likely vary on the quality of the drive more than anything.
Some info: https://www.backblaze.com/blog/how-reliable-are-ssds/
What results do you get from
hdparm
's speed tests?What filesystem is on the disk?
Not op but the pic says ext4
Ah, right you are! Didn't spot that
I've got a 6TB SATA HDD (also formatted ext4) and while files on it don't always open instantaneously, the pause is only a fraction of a second at most (barely enough to notice). So I'll join the chorus suggesting you check for hardware issues—bad drive, bad or loose cables, or a bad controller on the mobo.
Monitor I/O on the drive; is anything using it while your system is idle?
What's I/O like when loading an album?
Check its SMART:
smartctl -a /dev/sdb
.It's a bit long but here it is.
Everything seems ok. It is unlikely that the disk itself is dying. Maybe the problem is a bad cable or bus controller. Or something is wrong with the filesystem.
Hey, I replaced the cable and everything seems to be working fine, thank you!
Maybe its Fragmentation?
Not on ext4 that's not full, unless it vas previously almost completely full and a lot of deletes and rewrites ocurred
Iirc with time mechanical drives do slow down significantly due to wear and tear so it kinda sounds its on its way out. If speed is a must maybe look at how much storage capacity you're using and switch to appropriate sized ssd/s. You can keep the mechanical drive as a cold backup.
Edit: not sure if you already done this and I usually don't recommend it if you don't have backups but benchmarking would show you the read and write speeds. Also depending on warranty status, you also have the option of doing a manufacturer replacement. Not sure what info Toshiba asks for but doesn't hurt to look into if you do decide to replace it.
Do you mean "because it's dying?" Because otherwise I've never heard of this or seen this before. The disks must spin at a precise speed for the read/write head to work since it expects data to be read at a constant rate.
If it's dying there should be a ton of crap in the system logs (try
dmesg
orjournalctl -k -f
). You can also usesmartctl
to check for reported errors, orbadblocks
to see if there are issues with the disk.I used journalctl -k -f and this is the output, I've also tried dmesg and smartctl and replied with the output on other comments, and all show some kind of I/O error, I guess I'm fucked or can it be because of a bad cable or something?
That's not great... No idea what those errors are specifically but something is very wrong. Hopefully you've made backups already because the drive may be failing.
Huh weird I do have experience of this happening especially on used drives that are technically beyond their lives, +7 years etc, guess it depends on manufacturer and classification since you haven't personally experienced it. When I say slow down I'm referring to the read and write speed not the platter rpm even though that could happen such as with motor bearing wear. There's really multiple potential hard wear issue that could cause read and write speeds to slow down: head wear, platter degradation, etc. Although i do want to clarify that I'm not necessarily saying its dying or even if its 100% a hardware issue since fragmentation could be the cause. Not even sure if it'll be throwing out errors yet so I can't wait to see what OP updates us with.
Those are signs that the drive is failing - not a "normal wear and tear".
The spindle must spin at a constant angular velocity for the drive to operate. It can't slow down and work since the heads expect the bits to be on the platters in certain locations and to come at a fixed rate. It doesn't slow down over time. HDD motors are extremely precise with feedback to ensure the rate is correct. It's not a simple DC motor.
Same with the heads - they don't touch the platters so I'm not sure why they would be "wearing down." But if they are that's a sign of failing not just "normal wear and tear". In fact if it does touch a platter that's catastrophic...
HDDs are made with excellent precision. I have a drive with a powered-on time of over 8 years and it performs as it did when I bought it. Just because there are moving parts doesn't mean they're bad. We've been making them for many years and have gotten very good at it.
And fragmentation is almost certainly not an issue with ext4.
This can't be overstated enough. Modern mechanical hard drives are a hundred times more impressive than Swiss watches.