4. to test bad blocks on hard disk on Linux, sudo pv -nb /dev/sda > null or replace /dev/sda with the device identifier of your hard disk.

The errors will print in dmesg (comfortable viewing with command dmesg -TL=always|less -R).

pv may need to be installed as a separate package usually called pv.

It doesn't have a menu entry Menu->System->Hard Disks->"Check bad sectors on your hard disk".

It doesn't even have a menu entry Menu->System->Hard Disks->"Display instructions how to check bad sectors on your hard disk from command line", which I assume would be much easier to implement than the actual menu function, and almost as useful for me.

User experience (UX).

#sudo #linux #dmesg #badblocks #harddisk #hdd #devnull #root #ux #userexperience

The year 2025, and I casually run into 32-bit limitations of Linux file system tools while trying to verify an old 3TB hard disk drive. Not what I was expecting tonight. #badblocks

Shell script for burn-in and testing of new or re-purposed drives:
https://github.com/Spearfoot/disk-burnin-and-testing

#smartctl #badblocks #linux #hdd #nas

GitHub - Spearfoot/disk-burnin-and-testing: Shell script for burn-in and testing of new or re-purposed drives

Shell script for burn-in and testing of new or re-purposed drives - Spearfoot/disk-burnin-and-testing

GitHub

🧵 3/n this is bloody embarrassing! 😳

The -p parameter DOES NOT specify the test pattern!

I need to stop #VibeCoding! 🤣
…blame #Mistral small 3 #LLM #AI via #DuckDuckGo duck.ai 😅

Howerver, i've decided to make it extra stressful, by inverting the test pattern.

1 pass = testing inverting 0x55, then another inverting 0xAA - the corrected script in the screenshot.

edit: correct screenshot-final2-corrected2.png 🤣 🍻

#badblocks #HDD #storage #Linux

🧵 2/n i'm still badblocksing my old HGST Ultrastar 7K6000 4TB (HUS726040ALA610/0F23090).

For some reason, it only produces read errors with the 0xAA test pattern. Reallocated_Sector_Ct increased to 19, after the 2nd pass (13/0/0).

I've started a 5-pack of 0xAA write-read passes - i intent to "burn out" (forcefully reallocate) every last remaining "weak" sector.

This is gonna take the whole week; imma stress this poor puppy until it's not degrading much further.

#badblocks #HDD #storage

Oof! Turns out, my offsite backups have never been particularly reliable. I keep 'em on the 10TB HDD from the old mirror now.

I guess, i don't get to resell that old 4TB HDD, then. Meh, i'm not gonna use it myself, and eBay has this "defective / spare parts" setting - 20 bucks incl. shipping.

#badblocks #backup #HomeServer

badblocks: Value too large for defined data type invalid end block (4394573824): must be 32-bit value

Bought a new large external disk as data sink for my server at home. The disk is 18TB and after the previous purchase had a hardware problem I wanted to make sure that this one is working. Created a partition, formatted it with ext4 and let's run a badblocks check on it. That failed, badblocks can't handle Big Data.

ads' corner
S.M.A.R.T. badblocks badblocks2 - LinuxFr.org

L’actualité du logiciel libre et des sujets voisins (DIY, Open Hardware, Open Data, les Communs, etc.), sur un site francophone contributif géré par une équipe bénévole par et pour des libristes enthousiastes

You know one thing I hate about #SSD #storage?

Testing it with #badblocks will most likely not tell you anything about its health and will degrade it significantly more than #HDD storage.

Are you willing to use refurb/used storage you can't test for proper function though?

I'd be happy to find out I'm wrong and someone has made a program to address this issue... but afaik no such thing has happened yet.

#Hardware #Flash