[Support] HDD diing or something else?
from HumbleBragger@piefed.social to selfhosted@lemmy.world on 14 Jul 22:17
https://piefed.social/c/selfhosted@lemmy.world/p/2210726/support-hdd-diing-or-something-else

Hi guys! I’ve been self hosting for a while and been using am 2 tb HDD I bought on aliexpress two years ago to host movies and series… I bought a second drive to separate them and organize my media.

For 2 months everything went awesome but suddenly I started getting IO errors from my old drive. specially when I download and watch a movie at the same time.

Is my drive going die or could it be something else?

Dmesg showed these messages

[345778.390949] sd 0:0:0:0: [sda] tag#23 access beyond end of device

I/O error, dev sda, sector 3833662344 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 2

The weird part is the sda device stops showing unless I turn the PC off and take the sata cables from it and restart the PC. Then I can watch movies for a while before getting this error again… Regular reboot does not work.

#selfhosted

threaded - newest

irmadlad@lemmy.world on 14 Jul 22:30 next collapse

At this point, I would treat it as a failing drive and have a solid back up of the data.

The weird part is the sda device stops showing unless I turn the PC off and take the sata cables from it and restart the PC

That is the weird part. Almost like some intermittent power or connection glitch. Is this an internal drive or external in an enclosure? When you say the ‘sda stops showing’ does it disappear completely from lsblk? Does the drive have any SMART capabilities?

HumbleBragger@piefed.social on 14 Jul 23:17 collapse

Yeah.. I’ll make a backup from the more important movies but most of them can be downloaded again thankfully.

It’s an internal sata drive powered by the PC PSU .. I have an old dock station I used to connect an old HDD to.my pi..I’ll try to use it and mount the drive using USB port to see if the problem is electrical. I’ve suspected the PSU could be the issue and I don’t know the exact power it provides. Lsblk shows the sda drive..fdisk -l does not since I unmounted the device. I’ve just installed smartools but I’m getting a fail inquiry message so I can’t really tell.

frongt@lemmy.zip on 14 Jul 22:32 next collapse

2 tb HDD I bought on aliexpress

Well there’s the first red flag. Who’s it made by? Have you verified the capacity with one of those verifier tools? Fake ones will report a huge capacity while having very little, and writes past it just disappear. The error you’re seeing certainly sounds like that kind of behavior.

HumbleBragger@piefed.social on 14 Jul 23:08 collapse

Yeah I suspected that too. Specially after downloading a lot of movies at once but I haven’t used any tools besides fsck and fdisk and they read 1.8 Tb..I’ll look into that to make surr.. Thanks!

zqwzzle@lemmy.ca on 15 Jul 00:09 collapse

Use f3 tools

NaibofTabr@infosec.pub on 14 Jul 22:50 next collapse

More specifics are needed for a support request. Provide the baseline specifications please.

What OS are you using? What is the make and model of the drive? Is it internal or external? USB? SATA? SAS? NVMe? A PCIe adapter? Is this a desktop, laptop, NAS, server, NUC, Raspberry Pi with an expansion board?

For all we know you’re using a refurbished and relabeled SAS drive plugged into an adapter on an eSATA port on a 10 year old motherboard sitting in a cardboard box.

<img alt="" src="https://infosec.pub/api/v3/image_proxy?url=https%3A%2F%2Fglobalgeeknews.com%2Fwp-content%2Fuploads%2F2011%2F09%2FDesktop-Computer-in-a-Cardboard-Box.jpg">

Are you familiar with SMART? Have you done any diagnostics?

HumbleBragger@piefed.social on 14 Jul 23:02 next collapse

Sorry .. It’s an internal sata WD purple plugged directly in the mobo (Brazilian crappy brand from China) LGA 1155…desktop I’m running Debian 13..the OS is on an mvme drive. I have another WD 2tb drive and a seagate 1tb drive too..both connected to the sata ports.

HumbleBragger@piefed.social on 14 Jul 23:05 collapse

I’m not quite familiar with smart but right now I’m getting a fail inquiry message. I’m 200km from my home so I’ll have to try using smartctl again on Saturday and see what I can find out..thanks for the direction!

Onomatopoeia@lemmy.cafe on 14 Jul 23:03 next collapse

You have backups or replicants of your data, right?

HumbleBragger@piefed.social on 14 Jul 23:19 collapse

I don’t actually.. I deleted because I had to back up my immich library recently =[

cmnybo@discuss.tchncs.de on 14 Jul 23:21 next collapse

Have you tried using a different SATA cable. I had one go bad and the drive started throwing all kinds of errors.

HumbleBragger@piefed.social on 14 Jul 23:26 collapse

Yeah I changed the sata cable..same error though

solrize@lemmy.ml on 14 Jul 23:23 next collapse

Try smartctl -a on the drive (install smartmontools if needed), to see the error counts. Yeah, back up your stuff, which you should do anyway.

HumbleBragger@piefed.social on 14 Jul 23:27 collapse

Just tried that but I’m getting a fail inquiry message.. I’ll try to unplug the cables again once I get home for the weekend and try smartctl again to see if I can find something out

non_burglar@lemmy.world on 15 Jul 03:02 next collapse

You have already identified the problem in the logs.

You have a fake drive with firmware that says 1.8tb but are actually much lower.

access beyond end of device

This means an inode is mapped to a non-existing sector. Get your money back, if you still can.

Onomatopoeia@lemmy.cafe on 15 Jul 09:29 collapse

Don’t buy any kind of drive from aliexpress.

Shop here: diskprices.com and even then pay attention to the source.