Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

When speculation has done its worst, two plus two still equals four. -- S. Johnson


computers / comp.os.linux.misc / Re: Do you use badblocks ?

SubjectAuthor
* Do you use badblocks ?Spiros Bousbouras
+* Re: Do you use badblocks ?Andy Burns
|+- Re: Do you use badblocks ?The Natural Philosopher
|`* Re: Do you use badblocks ?Spiros Bousbouras
| `- Re: Do you use badblocks ?Andy Burns
+* Re: Do you use badblocks ?Marco Moock
|`* Re: Do you use badblocks ?Spiros Bousbouras
| `* Re: Do you use badblocks ?Rich
|  `* Re: Do you use badblocks ?Carlos E. R.
|   +* Re: Do you use badblocks ?Robert Riches
|   |`- Re: Do you use badblocks ?Carlos E. R.
|   `* Re: Do you use badblocks ?Rich
|    `- Re: Do you use badblocks ?Carlos E. R.
+* Re: Do you use badblocks ?Rich
|+* USB HDD adapters (was: Re: Do you use badblocks ?)Nuno Silva
||+- Re: USB HDD adaptersAndy Burns
||+* Re: USB HDD adaptersThe Natural Philosopher
|||+* Re: USB HDD adaptersAndy Burns
||||`- Re: USB HDD adaptersThe Natural Philosopher
|||+- Re: USB HDD adaptersRich
|||`* Re: USB HDD adaptersCarlos E. R.
||| `* Re: USB HDD adaptersThe Natural Philosopher
|||  `* Re: USB HDD adaptersCarlos E. R.
|||   `- Re: USB HDD adaptersAnssi Saari
||`- Re: USB HDD adapters (was: Re: Do you use badblocks ?)Eric Pozharski
|`* Re: Do you use badblocks ?Spiros Bousbouras
| +* Re: Do you use badblocks ?Rich
| |`- Re: Do you use badblocks ?The Natural Philosopher
| `- Re: Do you use badblocks ?The Natural Philosopher
+* Re: Do you use badblocks ?John-Paul Stewart
|`* Re: Do you use badblocks ?Spiros Bousbouras
| +- Re: Do you use badblocks ?Carlos E. R.
| +- Re: Do you use badblocks ?Rich
| `* Re: Do you use badblocks ?The Natural Philosopher
|  `* Re: Do you use badblocks ?Carlos E. R.
|   `* Re: Do you use badblocks ?The Natural Philosopher
|    `* Re: Do you use badblocks ?vamastah
|     `- Re: Do you use badblocks ?Computer Nerd Kev
+- Re: Do you use badblocks ?Carlos E. R.
+* Re: Do you use badblocks ?The Natural Philosopher
|`* Re: Do you use badblocks ?MarioCCCP
| +- Re: Do you use badblocks ?Rich
| +- Re: Do you use badblocks ?Carlos E. R.
| `- Re: Do you use badblocks ?The Natural Philosopher
`- Re: Do you use badblocks ?Richard Kettlewell

Pages:12
Re: USB HDD adapters

<ukiq3i$3137s$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14128&group=comp.os.linux.misc#14128

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: USB HDD adapters
Date: Sun, 3 Dec 2023 20:57:22 +0000
Organization: A little, after lunch
Lines: 152
Message-ID: <ukiq3i$3137s$3@dont-email.me>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <ukg3ne$2g7gt$1@dont-email.me>
<ukhq8a$2re4f$1@dont-email.me> <uki5n1$2t14p$1@dont-email.me>
<kt4713FmoufU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Dec 2023 20:57:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="639953ca15c28fce5289cb708f26cc8d";
logging-data="3181820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197/uYaerBlZ+IcWIaJtyZGUywAXp/2RsY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:tSgx0nbh5EfLwlgsJ+4G+RHAsD4=
Content-Language: en-GB
In-Reply-To: <kt4713FmoufU1@mid.individual.net>
 by: The Natural Philosop - Sun, 3 Dec 2023 20:57 UTC

On 03/12/2023 20:33, Carlos E. R. wrote:
> On 2023-12-03 16:09, The Natural Philosopher wrote:
>> On 03/12/2023 12:00, Nuno Silva wrote:
>>> On 2023-12-02, Rich wrote:
>
> ...
>
>> Some limited observations.
>>
>> Power for full size disk drives cannot be reliably supplied by
>> USB<->SATA adapters alone. You need a powered hub of some sort. 2.5"
>> and SSDs however are possible.
>>
>> I am using these, with no issues.
>>
>> https://thepihut.com/products/ssd-to-usb-3-0-cable-for-raspberry-pi
>
> How about smartctl, does it fully work?
>

# smartctl -a /dev/sda
smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.1.0-rpi4-rpi-v8] (local
build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Crucial/Micron Client SSDs
Device Model: CT2000BX500SSD1
Serial Number: 2245E682345E
LU WWN Device Id: 5 00a075 1e682345e
Firmware Version: M6CR061
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
TRIM Command: Available
Device is: In smartctl database 7.3/5319
ATA Version is: ACS-3 T13/2161-D revision 4
SATA Version is: SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun Dec 3 20:55:06 2023 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine
completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 120) seconds.
Offline data collection
capabilities: (0x11) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No Selective Self-test supported.
SMART capabilities: (0x0002) Does not save SMART data before
entering power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 10) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE
UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 100 100 000 Pre-fail
Always - 0
5 Reallocate_NAND_Blk_Cnt 0x0032 100 100 010 Old_age
Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age
Always - 847
12 Power_Cycle_Count 0x0032 100 100 000 Old_age
Always - 12
171 Program_Fail_Count 0x0032 100 100 000 Old_age Always
- 0
172 Erase_Fail_Count 0x0032 100 100 000 Old_age Always
- 0
173 Ave_Block-Erase_Count 0x0032 100 100 000 Old_age Always
- 4
174 Unexpect_Power_Loss_Ct 0x0032 100 100 000 Old_age Always
- 7
180 Unused_Reserve_NAND_Blk 0x0033 100 100 000 Pre-fail Always
- 47
183 SATA_Interfac_Downshift 0x0032 100 100 000 Old_age Always
- 0
184 Error_Correction_Count 0x0032 100 100 000 Old_age Always
- 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always
- 0
194 Temperature_Celsius 0x0022 074 055 000 Old_age Always
- 26 (Min/Max 18/45)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always
- 0
197 Current_Pending_ECC_Cnt 0x0032 100 100 000 Old_age Always
- 0
198 Offline_Uncorrectable 0x0030 100 100 000 Old_age
Offline - 0
199 UDMA_CRC_Error_Count 0x0032 100 100 000 Old_age Always
- 0
202 Percent_Lifetime_Remain 0x0030 100 100 001 Old_age
Offline - 0
206 Write_Error_Rate 0x000e 100 100 000 Old_age Always
- 0
210 Success_RAIN_Recov_Cnt 0x0032 100 100 000 Old_age Always
- 0
246 Total_LBAs_Written 0x0032 100 100 000 Old_age Always
- 3101824575
247 Host_Program_Page_Count 0x0032 100 100 000 Old_age Always
- 96932017
248 FTL_Program_Page_Count 0x0032 100 100 000 Old_age Always
- 193536000
249 Unkn_CrucialMicron_Attr 0x0032 100 100 000 Old_age Always
- 0
251 Unkn_CrucialMicron_Attr 0x0032 100 100 000 Old_age Always
- 3244164695
252 Unkn_CrucialMicron_Attr 0x0032 100 100 000 Old_age Always
- 0
253 Unkn_CrucialMicron_Attr 0x0032 100 100 000 Old_age Always
- 0

SMART Error Log not supported

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]

Selective Self-tests/Logging not supported
........
Looks like its working, which is nice. I forgot to install it so thanks
for reminding me to

--
“Ideas are inherently conservative. They yield not to the attack of
other ideas but to the massive onslaught of circumstance"

- John K Galbraith

Re: USB HDD adapters

<kt49loFmoufU3@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14129&group=comp.os.linux.misc#14129

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: USB HDD adapters
Date: Sun, 3 Dec 2023 22:18:48 +0100
Lines: 70
Message-ID: <kt49loFmoufU3@mid.individual.net>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <ukg3ne$2g7gt$1@dont-email.me>
<ukhq8a$2re4f$1@dont-email.me> <uki5n1$2t14p$1@dont-email.me>
<kt4713FmoufU1@mid.individual.net> <ukiq3i$3137s$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net HkubYCd4G5f+Unidw5xtUwcjAzzPA2HUMtL+ExGn8vPpuPWaFi
Cancel-Lock: sha1:4ydisLHfoebKcaoJsX/NrrGd19k= sha256:06XiBsKllywEJulJJSEA0NhNFLY+1Q5XuNXmbQ8VkJI=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA, es-ANY
In-Reply-To: <ukiq3i$3137s$3@dont-email.me>
 by: Carlos E. R. - Sun, 3 Dec 2023 21:18 UTC

On 2023-12-03 21:57, The Natural Philosopher wrote:
> On 03/12/2023 20:33, Carlos E. R. wrote:
>> On 2023-12-03 16:09, The Natural Philosopher wrote:
>>> On 03/12/2023 12:00, Nuno Silva wrote:
>>>> On 2023-12-02, Rich wrote:
>>
>> ...

>>> I am using these, with no issues.
>>>
>>> https://thepihut.com/products/ssd-to-usb-3-0-cable-for-raspberry-pi
>>
>> How about smartctl, does it fully work?
>>
>
>  # smartctl -a /dev/sda
> smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.1.0-rpi4-rpi-v8] (local
> build)
> Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
>
> === START OF INFORMATION SECTION ===
> Model Family:     Crucial/Micron Client SSDs

....

> SMART Attributes Data Structure revision number: 16
> Vendor Specific SMART Attributes with Thresholds:
> ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE UPDATED
> WHEN_FAILED RAW_VALUE
>   1 Raw_Read_Error_Rate     0x002f   100   100   000    Pre-fail
> Always       -       0
....
> 247 Host_Program_Page_Count 0x0032   100   100   000    Old_age   Always
>       -       96932017
> 248 FTL_Program_Page_Count  0x0032   100   100   000    Old_age   Always
>       -       193536000
> 249 Unkn_CrucialMicron_Attr 0x0032   100   100   000    Old_age   Always
>       -       0
> 251 Unkn_CrucialMicron_Attr 0x0032   100   100   000    Old_age   Always
>       -       3244164695
> 252 Unkn_CrucialMicron_Attr 0x0032   100   100   000    Old_age   Always
>       -       0
> 253 Unkn_CrucialMicron_Attr 0x0032   100   100   000    Old_age   Always
>       -       0
>
> SMART Error Log not supported

No error log?

>
> SMART Self-test log structure revision number 1
> No self-tests have been logged.  [To run self-tests, use: smartctl -t]
>
> Selective Self-tests/Logging not supported
> .......
> Looks like its working, which is nice. I forgot to install it so thanks
> for reminding me to

That's very nice, because some do not work with smartctl.

ASMedia ASM1153E/ASM225 chip, it says.

In my case, I need things with a somewhat longer cable — I'm trying to
build a raid array, with rotating rust, so I also have to add power
supplies.

--
Cheers,
Carlos E.R.

Re: USB HDD adapters (was: Re: Do you use badblocks ?)

<slrnumptvc.90s.whynot@freight.zombinet>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14130&group=comp.os.linux.misc#14130

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: whynot@pozharski.name (Eric Pozharski)
Newsgroups: comp.os.linux.misc
Subject: Re: USB HDD adapters (was: Re: Do you use badblocks ?)
Date: Sun, 03 Dec 2023 21:49:32 +0000
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <slrnumptvc.90s.whynot@freight.zombinet>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <ukg3ne$2g7gt$1@dont-email.me>
<ukhq8a$2re4f$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="c706b3b43ca73d7608828ff5d919c0af";
logging-data="3288145"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3k92kzw76jqgMESuBTxd6"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Rfx00eq1B8EJwrsUqhZPRhwF884=
 by: Eric Pozharski - Sun, 3 Dec 2023 21:49 UTC

with <ukhq8a$2re4f$1@dont-email.me> Nuno Silva wrote:
> On 2023-12-02, Rich wrote:

*SKIP* [ 14 lines 2 levels deep]
> * Although in the future I should probably get a PATA one too, for
> easier checking of older drives.

Avoid cheapest at all cost, avoid (so called) enclosures. Anything else
is pure chance.

First time I'd disconnected my first usb-*ata adapter I'd went with
logic. Second time I'd read instructions -- usb host on motherboard was
no more.

Also, my first adapter was flipping random bits -- I've logs, I can't
see logic in those flips.

--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom

Re: USB HDD adapters

<sm0lea9dnyv.fsf@lakka.kapsi.fi>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14131&group=comp.os.linux.misc#14131

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anssi.saari@usenet.mail.kapsi.fi (Anssi Saari)
Newsgroups: comp.os.linux.misc
Subject: Re: USB HDD adapters
Date: Mon, 04 Dec 2023 11:36:08 +0200
Organization: An impatient and LOUD arachnid
Lines: 9
Message-ID: <sm0lea9dnyv.fsf@lakka.kapsi.fi>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <ukg3ne$2g7gt$1@dont-email.me>
<ukhq8a$2re4f$1@dont-email.me> <uki5n1$2t14p$1@dont-email.me>
<kt4713FmoufU1@mid.individual.net> <ukiq3i$3137s$3@dont-email.me>
<kt49loFmoufU3@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="22ea352e1deff50b5ed952715c5d2763";
logging-data="113587"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184JYACTU8QNlk86y9/81sr"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:hrW0qIsmIPZLX3N/7OW8qxKgsX0=
sha1:gCVXswY47wBJAA1KGhLwSWQtuUc=
 by: Anssi Saari - Mon, 4 Dec 2023 09:36 UTC

"Carlos E. R." <robin_listas@es.invalid> writes:

>> SMART Error Log not supported
>
> No error log?

The output mentioned earlier error logging is supported. I think some
SSDs support only the extended error log which one could see with
smartctl -l xerror /dev/sda

Re: Do you use badblocks ?

<ukn9ca$5o8k$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14132&group=comp.os.linux.misc#14132

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: NoliMihiFrangereMentulam@libero.it (MarioCCCP)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Tue, 5 Dec 2023 14:42:34 +0100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <ukn9ca$5o8k$2@dont-email.me>
References: <R4RH2RYYNOems0djy@bongo-ra.co>
<op.2fb5awpta3w0dxdave@hodgins.homeip.net> <ukhhvi$2q2n7$6@dont-email.me>
Reply-To: MarioCCCP@CCCP.MIR
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 5 Dec 2023 13:42:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c16645c7c2147df4b016db86a227e9a9";
logging-data="188692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cET4kSTymUqLiRW/hBTrL"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:E8TIQUTC/v3XBpGYeZrrjJ9goNM=
In-Reply-To: <ukhhvi$2q2n7$6@dont-email.me>
Content-Language: en-GB, it-IT
 by: MarioCCCP - Tue, 5 Dec 2023 13:42 UTC

On 03/12/23 10:32, The Natural Philosopher wrote:
> On 02/12/2023 17:24, David W. Hodgins wrote:
>> Don't use badblocks on ssd drives.
>
> Indeed. Moist of these low level storage control tools are
> now replicated inside the SSD controller itself (e.g.
> badblocks), or are rendered unnecessary by the actual
> storage architecture( defragmentation)
>
> If there is a bad ram block, the SSD controller itself will
> have flagged that already.
> With read/write seek times being essentially zero, there is
> no point in defragmenting at the computer level. The wear
> levelling will already be rearranging where everything is
> stored anyway.
>
> The only thing the SSD needs is a trim command now and then.
>

who and when issues such a command ? I am asking since I
cannot remember of having typed it anytime :(

>

--
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
MarioCPPP

Re: Do you use badblocks ?

<uknaa2$611s$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14133&group=comp.os.linux.misc#14133

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Tue, 5 Dec 2023 13:58:26 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <uknaa2$611s$1@dont-email.me>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <op.2fb5awpta3w0dxdave@hodgins.homeip.net> <ukhhvi$2q2n7$6@dont-email.me> <ukn9ca$5o8k$2@dont-email.me>
Injection-Date: Tue, 5 Dec 2023 13:58:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1d3b8aa2f31e18f5c81bad9d7b651dae";
logging-data="197692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eSMciSkzc8PjMM6CMWztM"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.117 (x86_64))
Cancel-Lock: sha1:ps81Jk2ML5x+5L0WedUCGgWSaBI=
 by: Rich - Tue, 5 Dec 2023 13:58 UTC

MarioCCCP <NoliMihiFrangereMentulam@libero.it> wrote:
> On 03/12/23 10:32, The Natural Philosopher wrote:
>> On 02/12/2023 17:24, David W. Hodgins wrote:
>>> Don't use badblocks on ssd drives.
>>
>> Indeed. Moist of these low level storage control tools are
>> now replicated inside the SSD controller itself (e.g.
>> badblocks), or are rendered unnecessary by the actual
>> storage architecture( defragmentation)
>>
>> If there is a bad ram block, the SSD controller itself will
>> have flagged that already.
>> With read/write seek times being essentially zero, there is
>> no point in defragmenting at the computer level. The wear
>> levelling will already be rearranging where everything is
>> stored anyway.
>>
>> The only thing the SSD needs is a trim command now and then.
>
> who and when issues such a command ? I am asking since I cannot
> remember of having typed it anytime :(

The proper 'who' is the filesystem, the proper when is when the
filesystem deallocates blocks due to deletion. The point of a 'trim'
command to an SSD is to let it know that the higher levels are finished
useing differnt blocks so it can go about doing its cleanup in the
background.

Re: Do you use badblocks ?

<kt8rb2Ftug5U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14134&group=comp.os.linux.misc#14134

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Tue, 5 Dec 2023 15:44:50 +0100
Lines: 41
Message-ID: <kt8rb2Ftug5U1@mid.individual.net>
References: <R4RH2RYYNOems0djy@bongo-ra.co>
<op.2fb5awpta3w0dxdave@hodgins.homeip.net> <ukhhvi$2q2n7$6@dont-email.me>
<ukn9ca$5o8k$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net pkt0IAMChS0VBv/TpCh5owVnTVXkpTgRBhPDIrvcfT32mtok9t
Cancel-Lock: sha1:4OHpB7tyR2VwuTLSEJ/0xFZLYFo= sha256:YjVxFGhilk+6bwX3R2eawnqhOl7ugKSAp/A7yqlZrXQ=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA, es-ANY
In-Reply-To: <ukn9ca$5o8k$2@dont-email.me>
 by: Carlos E. R. - Tue, 5 Dec 2023 14:44 UTC

On 2023-12-05 14:42, MarioCCCP wrote:
> On 03/12/23 10:32, The Natural Philosopher wrote:
>> On 02/12/2023 17:24, David W. Hodgins wrote:
>>> Don't use badblocks on ssd drives.
>>
>> Indeed. Moist of these low level storage control tools are now
>> replicated inside the SSD controller itself (e.g. badblocks), or are
>> rendered unnecessary by the actual storage architecture( defragmentation)
>>
>> If there is a bad ram block, the SSD controller itself will have
>> flagged that already.
>> With read/write seek times being essentially zero, there is no point
>> in defragmenting at the computer level. The wear levelling will
>> already be rearranging where everything is stored anyway.
>>
>> The only thing the SSD needs is a trim command now and then.
>>
>
> who and when issues such a command ? I am asking since I cannot remember
> of having typed it anytime :(

It can be a mount option or a cron job or systemd timer.

Laicolasse:~ # systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; enabled;
vendor preset: enabled)
Active: active (waiting) since Sat 2023-12-02 09:15:04 CET; 3 days ago
Trigger: Mon 2023-12-11 01:34:19 CET; 5 days left
Triggers: ● fstrim.service
Docs: man:fstrim

Dec 02 09:15:04 Laicolasse.valinor systemd[1]: Started Discard unused
blocks once a week.
Laicolasse:~ #

--
Cheers,
Carlos E.R.

Re: Do you use badblocks ?

<uknnru$89k8$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14135&group=comp.os.linux.misc#14135

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Tue, 5 Dec 2023 17:49:50 +0000
Organization: A little, after lunch
Lines: 62
Message-ID: <uknnru$89k8$1@dont-email.me>
References: <R4RH2RYYNOems0djy@bongo-ra.co>
<op.2fb5awpta3w0dxdave@hodgins.homeip.net> <ukhhvi$2q2n7$6@dont-email.me>
<ukn9ca$5o8k$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Dec 2023 17:49:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f41ed87a55f6fa2947017a658baccf71";
logging-data="272008"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196VLEgvkj4ZsOhF13ogd32Kyj65cQX7ck="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:V8rFsfCXA9MhTpjF9uwZzUFgDe4=
In-Reply-To: <ukn9ca$5o8k$2@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Tue, 5 Dec 2023 17:49 UTC

On 05/12/2023 13:42, MarioCCCP wrote:
> On 03/12/23 10:32, The Natural Philosopher wrote:
>> On 02/12/2023 17:24, David W. Hodgins wrote:
>>> Don't use badblocks on ssd drives.
>>
>> Indeed. Moist of these low level storage control tools are now
>> replicated inside the SSD controller itself (e.g. badblocks), or are
>> rendered unnecessary by the actual storage architecture( defragmentation)
>>
>> If there is a bad ram block, the SSD controller itself will have
>> flagged that already.
>> With read/write seek times being essentially zero, there is no point
>> in defragmenting at the computer level. The wear levelling will
>> already be rearranging where everything is stored anyway.
>>
>> The only thing the SSD needs is a trim command now and then.
>>
>
> who and when issues such a command ? I am asking since I cannot remember
> of having typed it anytime :(
>

I think that most linuxes issue that command under cron by default these
days.

e.g on my pi4B

$ systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; preset:
enabled)
Active: active (waiting) since Fri 2023-12-01 08:03:15 GMT; 4 days ago
Trigger: Mon 2023-12-11 00:11:30 GMT; 5 days left
Triggers: ● fstrim.service
Docs: man:fstrim

On Mint 20.3

$ systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor
preset: >
Active: active (waiting) since Fri 2023-10-27 07:27:36 BST; 1
months 9 day>
Trigger: Mon 2023-12-11 00:00:00 GMT; 5 days left
Triggers: ● fstrim.service
Docs: man:fstrim

Oct 27 07:27:36 juliet systemd[1]: Started Discard unused blocks once a
week.

and so on.

>>
>

--
All political activity makes complete sense once the proposition that
all government is basically a self-legalising protection racket, is
fully understood.

Re: Do you use badblocks ?

<gkR5ReXzOejCBVGHO@bongo-ra.co>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14136&group=comp.os.linux.misc#14136

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: spibou@gmail.com (Spiros Bousbouras)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Tue, 5 Dec 2023 22:19:46 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <gkR5ReXzOejCBVGHO@bongo-ra.co>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <ukg3ne$2g7gt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Dec 2023 22:19:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d3a16ad1b914979abfcbfda09c32002e";
logging-data="453000"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194iWU+kqQgV94Vuul4kDgw"
Cancel-Lock: sha1:3S9PDQ2KRO4dGg7KcU23fx0Qjjw=
In-Reply-To: <ukg3ne$2g7gt$1@dont-email.me>
X-Server-Commands: nowebcancel
X-Organisation: Weyland-Yutani
 by: Spiros Bousbouras - Tue, 5 Dec 2023 22:19 UTC

On Sat, 2 Dec 2023 20:23:10 -0000 (UTC)
Rich <rich@example.invalid> wrote:
> Spiros Bousbouras <spibou@gmail.com> wrote:

[...]

> Note here by "devices" I'm including USB
> thumb drives (which vary wildly in quality and reliability).

SanDisk and Sony have worked well for me.

> > so does running badblocks actually buy you anything ?
>
> That depends upon /why/ you want to run it, and what you are running it
> upon.
>
> > Is badblocks only intended for hard drives or is it also
> > potentially useful for solid state drives ?
>
> The 'badblocks' command is used to scan Linux block devices, so the
> 'intended' use is to scan "block devices". Whether it is useful
> against whatever hardware is backing the Linux block device is a
> different question.

Surely the intended use is for situations where it's useful.

> > If you use badblocks , do you do a read-write test or just read ?
>
> I've done both in the past. Although I've used read-only scans far
> more often than read-write scans.
>

[...]

> Here are the scenarios where I've used badblocks:

[...]

These are very useful , thank you.

> Note, in any case, having a proper system of backups is necessary, even
> if you use badblocks to look for and catch possible failures early
> before they become outright failures.

Of course. It is still possible for a drive to fail suddenly and completely ,
isn't it ?

Re: Do you use badblocks ?

<iT1MzEp4x+Y=JOpdr@bongo-ra.co>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14137&group=comp.os.linux.misc#14137

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: spibou@gmail.com (Spiros Bousbouras)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Tue, 5 Dec 2023 22:45:35 -0000 (UTC)
Organization: To protect and to server
Message-ID: <iT1MzEp4x+Y=JOpdr@bongo-ra.co>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <kt1j1cF313U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Dec 2023 22:45:35 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1323240"; posting-host="9H7U5kayiTdk7VIdYU44Rw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:fXh4lpBT+3RRQ9Ncc/6XcDEi1QC/W+WwMhp7znFnNhY=
X-Server-Commands: nowebcancel
X-Organisation: Weyland-Yutani
X-Notice: Filtered by postfilter v. 0.9.3
 by: Spiros Bousbouras - Tue, 5 Dec 2023 22:45 UTC

On Sat, 2 Dec 2023 15:40:12 -0500
John-Paul Stewart <jpstewart@personalprojects.net> wrote:
> On 2023-12-02 07:44, Spiros Bousbouras wrote:
> > I mean use badblocks either directly or through the -c option of mkfs
> > and similar commands.
> >
> > My understanding is that , if a sector of a drive seems to go bad , the drive
> > software automatically "remaps" it (or whatever the appropriate verb is) to
> > a different sector so does running badblocks actually buy you anything ?
>
> Badblocks is a leftover from a bygone era.
>
> For the last 30 years or so hard drives have had spare sectors and
> remapped bad ones to good ones, transparently to the end-user. Just
> like you said.

Does "spare sectors" mean on top of the advertised capacity of the drive ? If
yes , could a drive which is not full find more spare sectors by reducing its
advertised capacity (and informing the operating system) ?

> Before that time (1980s and earlier, really) that wasn't the case. As
> another poster alluded to, hard drives of that era would come with a
> piece of paper listing the known bad blocks from manufacturing defects,
> with space for you to write in additional entries as you found them.
> That list could then be used when creating a filesystem (e.g., see the
> -l option to mke2fs) so that the filesystem would not use those known
> bad blocks.

So one had to copy by hand the list to a file ? Interesting. How long such
lists tended to be ?

Re: Do you use badblocks ?

<kt9ns6F9empU2@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14138&group=comp.os.linux.misc#14138

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news-2.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Tue, 5 Dec 2023 23:51:50 +0100
Lines: 49
Message-ID: <kt9ns6F9empU2@mid.individual.net>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <kt1j1cF313U1@mid.individual.net>
<iT1MzEp4x+Y=JOpdr@bongo-ra.co>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net FBNNYgaWFCjhxM//7Io0agZZZ4MGC4YOn2HfhMwq7vnsoE38U5
Cancel-Lock: sha1:wNTQYBvTHXziBUR5NwQNHuwf1YQ= sha256:xPCbgBa4U8Rfd7uMEX+VUUlY7kPNKh4MoXMwq35xIJs=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA, es-ANY
In-Reply-To: <iT1MzEp4x+Y=JOpdr@bongo-ra.co>
 by: Carlos E. R. - Tue, 5 Dec 2023 22:51 UTC

On 2023-12-05 23:45, Spiros Bousbouras wrote:
> On Sat, 2 Dec 2023 15:40:12 -0500
> John-Paul Stewart <jpstewart@personalprojects.net> wrote:
>> On 2023-12-02 07:44, Spiros Bousbouras wrote:
>>> I mean use badblocks either directly or through the -c option of mkfs
>>> and similar commands.
>>>
>>> My understanding is that , if a sector of a drive seems to go bad , the drive
>>> software automatically "remaps" it (or whatever the appropriate verb is) to
>>> a different sector so does running badblocks actually buy you anything ?
>>
>> Badblocks is a leftover from a bygone era.
>>
>> For the last 30 years or so hard drives have had spare sectors and
>> remapped bad ones to good ones, transparently to the end-user. Just
>> like you said.
>
> Does "spare sectors" mean on top of the advertised capacity of the drive ?

Yes.

> If
> yes , could a drive which is not full find more spare sectors by reducing its
> advertised capacity (and informing the operating system) ?

No.

>
>> Before that time (1980s and earlier, really) that wasn't the case. As
>> another poster alluded to, hard drives of that era would come with a
>> piece of paper listing the known bad blocks from manufacturing defects,
>> with space for you to write in additional entries as you found them.
>> That list could then be used when creating a filesystem (e.g., see the
>> -l option to mke2fs) so that the filesystem would not use those known
>> bad blocks.
>
> So one had to copy by hand the list to a file ?

Or to the low format program.

> Interesting. How long such
> lists tended to be ?

Tiny. One or two entries was normal.

--
Cheers,
Carlos E.R.

Re: Do you use badblocks ?

<ukomki$jeor$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14139&group=comp.os.linux.misc#14139

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Wed, 6 Dec 2023 02:34:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <ukomki$jeor$1@dont-email.me>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <ukg3ne$2g7gt$1@dont-email.me> <gkR5ReXzOejCBVGHO@bongo-ra.co>
Injection-Date: Wed, 6 Dec 2023 02:34:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f52dbff3270d18156bb282a4ca0528d4";
logging-data="637723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/j9jD+pOT+lvSF1pEF4UEy"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.117 (x86_64))
Cancel-Lock: sha1:4uji0ID+AvqAX7Ltk11X6scSI8g=
 by: Rich - Wed, 6 Dec 2023 02:34 UTC

Spiros Bousbouras <spibou@gmail.com> wrote:
> On Sat, 2 Dec 2023 20:23:10 -0000 (UTC)
> Rich <rich@example.invalid> wrote:
>> Spiros Bousbouras <spibou@gmail.com> wrote:
>
> [...]
>
>> Note here by "devices" I'm including USB
>> thumb drives (which vary wildly in quality and reliability).
>
> SanDisk and Sony have worked well for me.

Those are two of the better brands (provided you don't accidentally get
a fake). But they are by far from the /only/ brands.

>> > so does running badblocks actually buy you anything ?
>>
>> That depends upon /why/ you want to run it, and what you are running
>> it upon.
>>
>> > Is badblocks only intended for hard drives or is it also
>> > potentially useful for solid state drives ?
>>
>> The 'badblocks' command is used to scan Linux block devices, so the
>> 'intended' use is to scan "block devices". Whether it is useful
>> against whatever hardware is backing the Linux block device is a
>> different question.
>
> Surely the intended use is for situations where it's useful.

Yes, for situations where you want to scan a device for read (or read
write) errors. But it is not /meant/ for "hard drives" only. I.e.,
one could conseivably use it to scan a tape for read errors.

>> > If you use badblocks, do you do a read-write test or just read ?
>>
>> I've done both in the past. Although I've used read-only scans far
>> more often than read-write scans.
>>
>
> [...]
>
>> Here are the scenarios where I've used badblocks:
>
> [...]
>
> These are very useful, thank you.
>
>> Note, in any case, having a proper system of backups is necessary,
>> even if you use badblocks to look for and catch possible failures
>> early before they become outright failures.
>
> Of course. It is still possible for a drive to fail suddenly and
> completely, isn't it ?

Yes, and from some of the reports, SSD's seem to often fail in this
way, little to no warning, and poof, the drive no longer works.

Re: Do you use badblocks ?

<ukoooj$jqbk$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14140&group=comp.os.linux.misc#14140

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Wed, 6 Dec 2023 03:11:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <ukoooj$jqbk$1@dont-email.me>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <kt1j1cF313U1@mid.individual.net> <iT1MzEp4x+Y=JOpdr@bongo-ra.co>
Injection-Date: Wed, 6 Dec 2023 03:11:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f52dbff3270d18156bb282a4ca0528d4";
logging-data="649588"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WDHoOc3gWobwSGhJdgD63"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.117 (x86_64))
Cancel-Lock: sha1:NSbqElpYf75tUU8wznQE4HE40lU=
 by: Rich - Wed, 6 Dec 2023 03:11 UTC

Spiros Bousbouras <spibou@gmail.com> wrote:
> On Sat, 2 Dec 2023 15:40:12 -0500
> John-Paul Stewart <jpstewart@personalprojects.net> wrote:
>> On 2023-12-02 07:44, Spiros Bousbouras wrote:
>> > I mean use badblocks either directly or through the -c option
>> > of mkfs and similar commands.
>> >
>> > My understanding is that, if a sector of a drive seems to go bad,
>> > the drive software automatically "remaps" it (or whatever the
>> > appropriate verb is) to a different sector so does running
>> > badblocks actually buy you anything ?
>>
>> Badblocks is a leftover from a bygone era.
>>
>> For the last 30 years or so hard drives have had spare sectors and
>> remapped bad ones to good ones, transparently to the end-user. Just
>> like you said.
>
> Does "spare sectors" mean on top of the advertised capacity of the
> drive?

Yes, modern drives have additional spares beyond what is advertised.

> If yes, could a drive which is not full find more spare sectors by
> reducing its advertised capacity (and informing the operating
> system)?

It could, but the difference would be small (i.e., you will not get 25%
more capacity). Too small to make a difference to you the user. The
spares are present for two reasons: to increase the percentage of "good
drives" off the assembly line by allowing manufacturing defectsq to be
hidden and to increase the percentage of drives that make it past the
end of the warranty period before they visibly show issues to the
owner.

>> Before that time (1980s and earlier, really) that wasn't the case.
>> As another poster alluded to, hard drives of that era would come
>> with a piece of paper listing the known bad blocks from
>> manufacturing defects, with space for you to write in additional
>> entries as you found them. That list could then be used when
>> creating a filesystem (e.g., see the -l option to mke2fs) so that
>> the filesystem would not use those known bad blocks.
>
> So one had to copy by hand the list to a file?

Or enter it into the "format" program in real time, one sector at a
time, before it began formatting the drive.

> Interesting. How long such lists tended to be?

On the top of the 20MB hard drive that was in my first PC, IIRC the
list was about 8 or 10 sectors long.

Re: Do you use badblocks ?

<ukpmt7$oafd$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14141&group=comp.os.linux.misc#14141

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.neodome.net!news.nntp4.net!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Wed, 6 Dec 2023 11:45:43 +0000
Organization: A little, after lunch
Lines: 43
Message-ID: <ukpmt7$oafd$2@dont-email.me>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <kt1j1cF313U1@mid.individual.net>
<iT1MzEp4x+Y=JOpdr@bongo-ra.co>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Dec 2023 11:45:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="10d5bf1ad61e0814848b87f569f2efb6";
logging-data="797165"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MPiHuatyxkWeU3yoOsKHHf/tFUBvZLec="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2eHha53U8LA9pbSAs/oS2Qa+zyM=
In-Reply-To: <iT1MzEp4x+Y=JOpdr@bongo-ra.co>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 6 Dec 2023 11:45 UTC

On 05/12/2023 22:45, Spiros Bousbouras wrote:
> On Sat, 2 Dec 2023 15:40:12 -0500
> John-Paul Stewart <jpstewart@personalprojects.net> wrote:
>> On 2023-12-02 07:44, Spiros Bousbouras wrote:
>>> I mean use badblocks either directly or through the -c option of mkfs
>>> and similar commands.
>>>
>>> My understanding is that , if a sector of a drive seems to go bad , the drive
>>> software automatically "remaps" it (or whatever the appropriate verb is) to
>>> a different sector so does running badblocks actually buy you anything ?
>>
>> Badblocks is a leftover from a bygone era.
>>
>> For the last 30 years or so hard drives have had spare sectors and
>> remapped bad ones to good ones, transparently to the end-user. Just
>> like you said.
>
> Does "spare sectors" mean on top of the advertised capacity of the drive ? If
> yes , could a drive which is not full find more spare sectors by reducing its
> advertised capacity (and informing the operating system) ?
>
It may inform the operating system, but never the purchaser. The
internet is full of drives that magically never have the capacity they
were sold as.

>> Before that time (1980s and earlier, really) that wasn't the case. As
>> another poster alluded to, hard drives of that era would come with a
>> piece of paper listing the known bad blocks from manufacturing defects,
>> with space for you to write in additional entries as you found them.
>> That list could then be used when creating a filesystem (e.g., see the
>> -l option to mke2fs) so that the filesystem would not use those known
>> bad blocks.
>
> So one had to copy by hand the list to a file ? Interesting. How long such
> lists tended to be ?

10-20 sectors IIRC usually

--
"I am inclined to tell the truth and dislike people who lie consistently.
This makes me unfit for the company of people of a Left persuasion, and
all women"

Re: Do you use badblocks ?

<ukpnie$oh81$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14142&group=comp.os.linux.misc#14142

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Wed, 6 Dec 2023 11:57:00 +0000
Organization: A little, after lunch
Lines: 37
Message-ID: <ukpnie$oh81$1@dont-email.me>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <ukg3ne$2g7gt$1@dont-email.me>
<gkR5ReXzOejCBVGHO@bongo-ra.co> <ukomki$jeor$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Dec 2023 11:57:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="10d5bf1ad61e0814848b87f569f2efb6";
logging-data="804097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18X9Up8woCkpaOSh7xmNqPgQ6Kbquz1WcI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hMDOkeb9QWKu/wFM/Ixka9bZWzU=
In-Reply-To: <ukomki$jeor$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 6 Dec 2023 11:57 UTC

On 06/12/2023 02:34, Rich wrote:
>> It is still possible for a drive to fail suddenly and
>> completely, isn't it ?
> Yes, and from some of the reports, SSD's seem to often fail in this
> way, little to no warning, and poof, the drive no longer works.

I can confirm this. relatively new (Kingston) drive under warranty
started taking huge amounts of time to boot, SMART said it was well
fucked in terms of recorded errors. Replaced under warranty.

I was lucky that the drive had no irreplaceable data on it and the
vendor was scrupulously honest.

I can think of many scenarios where electronics could fail in such a way
as to render huge tracts of NVRAM inaccessible- typically slightly out
of spec chipsets (too much delay) ageing enough in a hot PC to go fully
out of spec on some decode patterns .

However I haven't had any failures since.

I did monitor SMART parameters quite often on my SSDS but have given up
because I have never found any sign of failure or a bad ram block since.
I don't regularly hammer them.

It is however quite interesting to see what failures do pop up in
electronic kit: these days bad capacitors seem as prevalent as they
always have been, but I got a completely inexplicable failure in a low
level operational amplifier in one peice of kit I fixed. So embedded
that it couldn't have been caused by anything external. It just failed.

--
It is the folly of too many to mistake the echo of a London coffee-house
for the voice of the kingdom.

Jonathan Swift

Re: Do you use badblocks ?

<ukpp5l$oh81$7@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14143&group=comp.os.linux.misc#14143

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Wed, 6 Dec 2023 12:24:21 +0000
Organization: A little, after lunch
Lines: 57
Message-ID: <ukpp5l$oh81$7@dont-email.me>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <ukg3ne$2g7gt$1@dont-email.me>
<gkR5ReXzOejCBVGHO@bongo-ra.co>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Dec 2023 12:24:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="10d5bf1ad61e0814848b87f569f2efb6";
logging-data="804097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AcvsIJDbmU6FiksdUZQZgtkEeDms3wns="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:83Bb7D/JPm77i+hcXzD9ZKo/FQc=
Content-Language: en-GB
In-Reply-To: <gkR5ReXzOejCBVGHO@bongo-ra.co>
 by: The Natural Philosop - Wed, 6 Dec 2023 12:24 UTC

On 05/12/2023 22:19, Spiros Bousbouras wrote:
> On Sat, 2 Dec 2023 20:23:10 -0000 (UTC)
> Rich <rich@example.invalid> wrote:
>> Spiros Bousbouras <spibou@gmail.com> wrote:
>
> [...]
>
>> Note here by "devices" I'm including USB
>> thumb drives (which vary wildly in quality and reliability).
>
> SanDisk and Sony have worked well for me.
>
>>> so does running badblocks actually buy you anything ?
>>
>> That depends upon /why/ you want to run it, and what you are running it
>> upon.
>>
>>> Is badblocks only intended for hard drives or is it also
>>> potentially useful for solid state drives ?
>>
>> The 'badblocks' command is used to scan Linux block devices, so the
>> 'intended' use is to scan "block devices". Whether it is useful
>> against whatever hardware is backing the Linux block device is a
>> different question.
>
> Surely the intended use is for situations where it's useful.
>
>>> If you use badblocks , do you do a read-write test or just read ?
>>
>> I've done both in the past. Although I've used read-only scans far
>> more often than read-write scans.
>>
>
> [...]
>
>> Here are the scenarios where I've used badblocks:
>
> [...]
>
> These are very useful , thank you.
>
>> Note, in any case, having a proper system of backups is necessary, even
>> if you use badblocks to look for and catch possible failures early
>> before they become outright failures.
>
> Of course. It is still possible for a drive to fail suddenly and completely ,
> isn't it ?

Very much so if the drive electronics fails. I did once change a
winchesters PCB to get it working again.

--
New Socialism consists essentially in being seen to have your heart in
the right place whilst your head is in the clouds and your hand is in
someone else's pocket.

Re: Do you use badblocks ?

<ktc623F4np7U5@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14144&group=comp.os.linux.misc#14144

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Wed, 6 Dec 2023 22:06:11 +0100
Lines: 46
Message-ID: <ktc623F4np7U5@mid.individual.net>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <kt1j1cF313U1@mid.individual.net>
<iT1MzEp4x+Y=JOpdr@bongo-ra.co> <ukpmt7$oafd$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net bNKykybikxpZ2V3E/QdKlQ6bpaTQ3AGO6ITQbe7Ctby5ODXlRf
Cancel-Lock: sha1:RCvaCIDOAuxkCkhhuOw71sZZgVw= sha256:FLLUf37sXwRBDSDRGCjQ7ZJqgrc8NFghiQTZZuJyKFE=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA, es-ANY
In-Reply-To: <ukpmt7$oafd$2@dont-email.me>
 by: Carlos E. R. - Wed, 6 Dec 2023 21:06 UTC

On 2023-12-06 12:45, The Natural Philosopher wrote:
> On 05/12/2023 22:45, Spiros Bousbouras wrote:
>> On Sat, 2 Dec 2023 15:40:12 -0500
>> John-Paul Stewart <jpstewart@personalprojects.net> wrote:
>>> On 2023-12-02 07:44, Spiros Bousbouras wrote:
>>>> I mean use  badblocks  either directly or through the  -c  option
>>>> of  mkfs
>>>> and similar commands.
>>>>
>>>> My understanding is that , if a sector of a drive seems to go bad ,
>>>> the drive
>>>> software automatically "remaps" it (or whatever the appropriate verb
>>>> is) to
>>>> a different sector so does running  badblocks  actually buy you
>>>> anything ?
>>>
>>> Badblocks is a leftover from a bygone era.
>>>
>>> For the last 30 years or so hard drives have had spare sectors and
>>> remapped bad ones to good ones, transparently to the end-user.  Just
>>> like you said.
>>
>> Does "spare sectors" mean on top of the advertised capacity of the
>> drive ? If
>> yes , could a drive which is not full find more spare sectors by
>> reducing its
>> advertised capacity (and informing the operating system) ?
>>
> It may inform the operating system, but never the purchaser.  The
> internet is full of drives that magically never have the capacity they
> were sold as.

Not to my knowledge.

It is full of people that do not realize that disk vendors, since 1985
at least, use decimal measuring units of bytes (such ad MB), while the
rest of computer industry used binary measuring units of bytes (such as
MiB), but named them MB.

The industry was late in recognizing that both system of units should
have different names, so the confusion lasted long.

--
Cheers,
Carlos E.R.

Re: Do you use badblocks ?

<uks6db$17lm5$4@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14145&group=comp.os.linux.misc#14145

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Thu, 7 Dec 2023 10:22:35 +0000
Organization: A little, after lunch
Lines: 54
Message-ID: <uks6db$17lm5$4@dont-email.me>
References: <R4RH2RYYNOems0djy@bongo-ra.co> <kt1j1cF313U1@mid.individual.net>
<iT1MzEp4x+Y=JOpdr@bongo-ra.co> <ukpmt7$oafd$2@dont-email.me>
<ktc623F4np7U5@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Dec 2023 10:22:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9f9e697d7aad844e758775a2a6a9a070";
logging-data="1300165"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/G6EYIoTnWd4Uget5XR+Ng/XmbAuxAk8k="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:xMdXxzsoF5PAA6hWflusvWMM5wo=
In-Reply-To: <ktc623F4np7U5@mid.individual.net>
Content-Language: en-GB
 by: The Natural Philosop - Thu, 7 Dec 2023 10:22 UTC

On 06/12/2023 21:06, Carlos E. R. wrote:
> On 2023-12-06 12:45, The Natural Philosopher wrote:
>> On 05/12/2023 22:45, Spiros Bousbouras wrote:
>>> On Sat, 2 Dec 2023 15:40:12 -0500
>>> John-Paul Stewart <jpstewart@personalprojects.net> wrote:
>>>> On 2023-12-02 07:44, Spiros Bousbouras wrote:
>>>>> I mean use  badblocks  either directly or through the  -c  option
>>>>> of  mkfs
>>>>> and similar commands.
>>>>>
>>>>> My understanding is that , if a sector of a drive seems to go bad ,
>>>>> the drive
>>>>> software automatically "remaps" it (or whatever the appropriate
>>>>> verb is) to
>>>>> a different sector so does running  badblocks  actually buy you
>>>>> anything ?
>>>>
>>>> Badblocks is a leftover from a bygone era.
>>>>
>>>> For the last 30 years or so hard drives have had spare sectors and
>>>> remapped bad ones to good ones, transparently to the end-user.  Just
>>>> like you said.
>>>
>>> Does "spare sectors" mean on top of the advertised capacity of the
>>> drive ? If
>>> yes , could a drive which is not full find more spare sectors by
>>> reducing its
>>> advertised capacity (and informing the operating system) ?
>>>
>> It may inform the operating system, but never the purchaser.  The
>> internet is full of drives that magically never have the capacity they
>> were sold as.
>
> Not to my knowledge.
>
> It is full of people that do not realize that disk vendors, since 1985
> at least, use decimal measuring units of bytes (such ad MB), while the
> rest of computer industry used binary measuring units of bytes (such as
> MiB), but named them MB.
>
> The industry was late in recognizing that both system of units should
> have different names, so the confusion lasted long.
>
That is another issue. I am talking about '64GB memory sticks' that have
<4GB capacity.

--
Renewable energy: Expensive solutions that don't work to a problem that
doesn't exist instituted by self legalising protection rackets that
don't protect, masquerading as public servants who don't serve the public.

Re: Do you use badblocks ?

<20231208220442.0dc15be8@archie.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14146&group=comp.os.linux.misc#14146

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.samoylyk.net!news.mb-net.net!open-news-network.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: szymoraw@wp.pl (vamastah)
Newsgroups: comp.os.linux.misc
Subject: Re: Do you use badblocks ?
Date: Fri, 8 Dec 2023 22:04:42 +0100
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <20231208220442.0dc15be8@archie.localdomain>
References: <R4RH2RYYNOems0djy@bongo-ra.co>
<kt1j1cF313U1@mid.individual.net>
<iT1MzEp4x+Y=JOpdr@bongo-ra.co>
<ukpmt7$oafd$2@dont-email.me>
<ktc623F4np7U5@mid.individual.net>
<uks6db$17lm5$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: dont-email.me; posting-host="fc89f128012f0550f15e247b09776cc7";
logging-data="1986503"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9lnZyaAhKIzik3JW/DlvHnC4l5EfEPKI="
Cancel-Lock: sha1:YS47Ce+7oS33F1RxumnYGBYG1ok=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-pc-linux-gnu)
 by: vamastah - Fri, 8 Dec 2023 21:04 UTC

On Thu, 7 Dec 2023 10:22:35 +0000
The Natural Philosopher <tnp@invalid.invalid> wrote:

> On 06/12/2023 21:06, Carlos E. R. wrote:
> > On 2023-12-06 12:45, The Natural Philosopher wrote:
> >> On 05/12/2023 22:45, Spiros Bousbouras wrote:
> >>> On Sat, 2 Dec 2023 15:40:12 -0500
> >>> John-Paul Stewart <jpstewart@personalprojects.net> wrote:
> >>>> On 2023-12-02 07:44, Spiros Bousbouras wrote:
> >>>>> ...
> >>>>
> >>>> ...
> >>>
> >>> Does "spare sectors" mean on top of the advertised capacity of
> >>> the drive ? If
> >>> yes , could a drive which is not full find more spare sectors by
> >>> reducing its
> >>> advertised capacity (and informing the operating system) ?
> >>>
> >> It may inform the operating system, but never the purchaser.  The
> >> internet is full of drives that magically never have the capacity
> >> they were sold as.
> >
> > Not to my knowledge.
> >
> > ...
> >
> That is another issue. I am talking about '64GB memory sticks' that
> have <4GB capacity.
>

You can easily buy them on AliExpress, just search for 2 TB pendrives
at the cost of $5. What's funny, everybody is happy with them, rating
is usually pretty high, i.e. over 4.5. When I bought one, I had no
heart to inform people they were scammed.

Re: Do you use badblocks ?

<65739511@news.ausics.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14147&group=comp.os.linux.misc#14147

  copy link   Newsgroups: comp.os.linux.misc
Message-ID: <65739511@news.ausics.net>
From: not@telling.you.invalid (Computer Nerd Kev)
Subject: Re: Do you use badblocks ?
Newsgroups: comp.os.linux.misc
References: <R4RH2RYYNOems0djy@bongo-ra.co> <kt1j1cF313U1@mid.individual.net> <iT1MzEp4x+Y=JOpdr@bongo-ra.co> <ukpmt7$oafd$2@dont-email.me> <ktc623F4np7U5@mid.individual.net> <uks6db$17lm5$4@dont-email.me> <20231208220442.0dc15be8@archie.localdomain>
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
NNTP-Posting-Host: news.ausics.net
Date: 9 Dec 2023 08:13:38 +1000
Organization: Ausics - https://ausics.net
Lines: 18
X-Complaints: abuse@ausics.net
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.bbs.nz!news.ausics.net!not-for-mail
 by: Computer Nerd Kev - Fri, 8 Dec 2023 22:13 UTC

vamastah <szymoraw@wp.pl> wrote:
> On Thu, 7 Dec 2023 10:22:35 +0000
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> That is another issue. I am talking about '64GB memory sticks' that
>> have <4GB capacity.
>
> You can easily buy them on AliExpress, just search for 2 TB pendrives
> at the cost of $5. What's funny, everybody is happy with them, rating
> is usually pretty high, i.e. over 4.5. When I bought one, I had no
> heart to inform people they were scammed.

I bought a 128MB (yes "MB") one off there once and even that died
completely when I attempted the first write (of a tiny text file).
I did get a refund easily though.

--
__ __
#_ < |\| |< _# | Note: I won't see posts made from Google Groups |

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor