Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

badblocks

Need help with peripherals or devices?
Post Reply
Message
Author
milomak
Posts: 2160
Joined: 2009-06-09 22:20
Been thanked: 1 time

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: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: badblocks

#2 Post by bw123 »

funny question

Code: Select all

$ apropos badblocks
badblocks (8)        - search a device for bad blocks
resigned by AI ChatGPT

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 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: 1939
Joined: 2006-04-21 11:19
Location: Sol Sector
Has thanked: 1 time
Been thanked: 2 times

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
Freespoke is a new search engine that respects user privacy and does not engage in censorship.

User avatar
sjukfan
Posts: 386
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: 5340
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: 4432
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