badblocks

Need help with peripherals or devices?
Post Reply
Message
Author
milomak
Posts: 2085
Joined: 2009-06-09 22:20

badblocks

#1 Post by milomak »

what is this meant to do?
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: Lenovo ideapad Y700-15ISK - Sid, Win10, Solus
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
bw123
Posts: 3786
Joined: 2011-05-09 06:02

Re: badblocks

#2 Post by bw123 »

funny question

Code: Select all

$ apropos badblocks
badblocks (8)        - search a device for bad blocks

CwF
Posts: 1114
Joined: 2018-06-20 15:16
Has thanked: 1 time
Been thanked: 3 times

Re: badblocks

#3 Post by CwF »

maybe nothing!

I miss the days when all this functionality was built into the controllers bios. I would have thought 2 decades ago all the smart info, formatting,provisioning, and the like would be available with a <Ctrl><S> after the post screen, or something... I miss grown sectors.

pcalvert
Posts: 1924
Joined: 2006-04-21 11:19
Location: Sol Sector

Re: badblocks

#4 Post by pcalvert »

I use badblocks to stress test new hard disk drives. Here's an (old) article that describes the process:

https://calomel.org/badblocks_wipe.html

Phil
“It is better to believe than to disbelieve; in doing so, it brings
everything into the realm of possibility.” — Albert Einstein

User avatar
sjukfan
Posts: 387
Joined: 2010-03-01 19:39

Re: badblocks

#5 Post by sjukfan »

I use it to test new (cheap) sd cards and old hard drives.
Bullseye amd64, AMD Ryzen 5 3600
Buster amd64, Intel Xeon E3-1240 v3
Sid ppc, PowerPC 7447a
Sid ppc64, PowerPC 970FX

User avatar
llivv
Posts: 5484
Joined: 2007-02-14 18:10
Location: cold storage

Re: badblocks

#6 Post by llivv »

i use it instead of wipe or scrub

install it and ( strike that ) read the man - it's now part of the e2fsprogs package

with the -svwt options it can show and sometimes even fix harddisk errors.
If the disks platter is damaged beyond badblocks ability to fix error(s) the location of disk errors can be seen and worked around.

warning the -w option is write mode which is described as destructive mode - meaning it overwrites the area of the disk (partition or drive) it is pointed at.

The old man - page used to warn: "If you think you are smarter than badblocks you are not." LOL
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

vbrummond
Posts: 4468
Joined: 2010-03-02 01:42

Re: badblocks

#7 Post by vbrummond »

llivv wrote:The old man - page used to warn: "If you think you are smarter than badblocks you are not." LOL
Ha, that’s classy, I think I remember that.
Always on Debian Testing

Post Reply