Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
badblocks barfs -- drive too big?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2384
Location: Kentucky

PostPosted: Tue Feb 18, 2025 6:26 pm    Post subject: badblocks barfs -- drive too big? Reply with quote

I had a drive fail in the raid 1 mirror on my backup server last night. I tried removing it with mdadm -r /dev/md0 /dev/sdb the adding it back with mdadm -a /dev/md0 /dev/sdb, but after a while, it barfed again, so I decided to run badblocks on it to find out where the problem was before returning it top the vendor for warrantee replacement. When I ran
Code:

baruch /bu/log # badblocks -ws /dev/sdb
badblocks: Value too large for defined data type invalid end block (15625879552): must be 32-bit value
baruch /bu/log #

it acted like it would not work if the max block number was too big to fit in 32 bits!

What's the deal here? Is badblocks obsolete? This is a 16 TB spinner on SATA interface. Is badblocks still stuck in the 1990's thinking a 2 gb drive is big?

What can I use to diagnose this 16 tb drive?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 566

PostPosted: Tue Feb 18, 2025 6:59 pm    Post subject: Reply with quote

Have you tried increasing the block size? (-b 4096)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54875
Location: 56N 3W

PostPosted: Tue Feb 18, 2025 7:15 pm    Post subject: Reply with quote

Moriah,

badblocks has been obsolete since back sector remapping became the norm for HDD.
That's almost every drive from 4GB upwards. Its required to make PRML reliable.
Yes, your drive 'guesses' your data. :)

Code:
smartctl -x /dev/...
will tell you all the gory detail about your drive heath.
If it says SMART PASS at the top, its probably wrong.

If you are curious as to where the first bad sector is use smartctl to run the long self test.
The may even be some errors in the smartctl -x output.

That output is usually enough to get a warranty replacement.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum