Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3345343pxb; Mon, 1 Mar 2021 07:47:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIGI8b/09qOm6JlDd+UfWjnxfCM0cU46zwuFBR9GrnI/bVwyOEVQrDc7+hpRsHc7qew1Z8 X-Received: by 2002:a17:906:95d1:: with SMTP id n17mr4713485ejy.394.1614613632113; Mon, 01 Mar 2021 07:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614613632; cv=none; d=google.com; s=arc-20160816; b=Pjv7HLGZda3kro1aanQq0AsgIotMsMnHw57sV6p/3Vw/Z5fp5GAiRptHsw2sh3U3sr mr6bn7jPJ3LJpXio1XpwrX5R9OZur8pUuNYOFGeVqk+PY/f8aMmEWgTzdI5S2c/9SBjs n16o7xkDMFaXkpN5sHlZhlDsCJuiG9SBynVkhBVs59QsYckmipCrd9oimQYMSwOQ6c2V Dz5TPevMSER3Hgj1QusygBSJOMraQnLmqu8/+Xp3Ed5xh+jE9a8TQ5NLR/bC//YIQMdC 3M8wRDN9NCCd9Vg+ftBkur5EpQZrcJ+7LASHCDI9WYhMPkzfI9NXVSEbQFi8Lgodlxke I+WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=/CXsaDOInfSq/tqDLIhMEYjHuaEfW1KMJQIHwxlBgfM=; b=LhpBqzdXarF+5n3Xuz0UApNYd2+E+Q2lmwkJUTwmT2rxepyhoq5qHsQNRo36InyN7T ciA9iVtvUmsNlGfPHpGTYl0BgiSL37ROM+wleQ8Lb5Jw7jxqoYzLN3B8IEOVfExcyFRS PVAiupHzn1d/yrO+lnvH2SUdVUnKmHdfiEPkbT9q3mpRsvRad9+cblppY2w/cO5qf6MQ nkSet8kXIP+AOhFoU1XPJUsu1bBZNTMPoIDwlezXWuGiAC48h+xYB/wt7AD6FGcnO1Hl u2GcWuyNHe93wbwdkBPhQHw4z2HkpFKtndpXJEOe6/JqXXbrFllEz8+6xxRtE1gwIWvL J+8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TIciGjsr; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si10509778edv.547.2021.03.01.07.46.47; Mon, 01 Mar 2021 07:47:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TIciGjsr; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237426AbhCAPns (ORCPT + 99 others); Mon, 1 Mar 2021 10:43:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237406AbhCAPnq (ORCPT ); Mon, 1 Mar 2021 10:43:46 -0500 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CAD7C061756 for ; Mon, 1 Mar 2021 07:43:03 -0800 (PST) Received: by mail-io1-xd33.google.com with SMTP id i8so18208907iog.7 for ; Mon, 01 Mar 2021 07:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=/CXsaDOInfSq/tqDLIhMEYjHuaEfW1KMJQIHwxlBgfM=; b=TIciGjsrfrhEeFp06gukyaV+rF6mU4sgnAbo1CslxF8V+EtuvjcGxC+jfKkcVDiURY nczWjdGHnB2XKeQacpTOl61CLYEr0HRYlM6anTheXQUmgKwzKnmxnK2bRJ2ayg2twIIG lpBhQbuJF2SEol8cWdVvEnpLdSzm+gupSLzcQ1uDCjmTx5yb2m7xvA2tAReGG2RJ7Ixo vtCu47/AnAayxBkvhE8ZEGrLvJAaCosbNiYrIVyW4EsTr2G6/hHyLqa50JliacJXPGCS n7+yJkVvLPVCMRyacAYC0D6V2RkXrAHmSMvVljskP6LZ2otWwTK9nGLwvwQom5VhlBff Eyxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=/CXsaDOInfSq/tqDLIhMEYjHuaEfW1KMJQIHwxlBgfM=; b=XpUjLjCBHpM3+HR4S72gXCTeeh99tLRBsFflLe6plI3wkhdvhT4Zn+KymqQpsduBi/ smzDiODbMkb3sQ1AkSnhRrVrsHl2KGFYUaa8VLjQA3sfV+G2i4Zy3z9xMQdLoofySGTs 2z6il87HhlRZ5ZAzi89yhN+UHLmsNY/mJNJIyCtiVgHddHzsJUhhIdC/yaHxR64u2Gsx yg6OA1ACtSQevg1y5wcA5t5xPCMfKRumu6Fh0izkGpkG2DDkRTCCG0XMSFcL+ro7SKXX CAXXaoG950CWcBPNIcHMIyCL3V+sYaa/QEEUGG7sNWgPgU1NNuxOiz8PzcX0jU0Q9Qo1 WnTQ== X-Gm-Message-State: AOAM530qFgV9pysnQQ5H0jBUloQxZMtgZst2cn4VPnS0I8iXG5kmOLa7 HbccozLzCyMOMf5dx6kWxkyeQHcybqyobUd5Bg7JQJpRDaPTJA== X-Received: by 2002:a05:6638:635:: with SMTP id h21mr5602551jar.97.1614613382942; Mon, 01 Mar 2021 07:43:02 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Mon, 1 Mar 2021 16:42:26 +0100 Message-ID: Subject: Re: badblocks from e2fsprogs To: "Theodore Ts'o" Cc: linux-ext4@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Mar 1, 2021 at 4:34 PM Theodore Ts'o wrote: > > On Mon, Mar 01, 2021 at 04:12:03PM +0100, Sedat Dilek wrote: > > > > OK, I see. > > So I misunderstood the -o option. > > It was clearly documented in the man page: > > -o output_file > Write the list of bad blocks to the specified file. > Without this option, badblocks displays the list on > its standard output. The format of this file is > suitable for use by the -l option in e2fsck(8) or > mke2fs(8). > RTFM. > I will say that for modern disks, the usefulness of badblocks has > decreased significantly over time. That's because for modern-sized > disks, it can often take more than 24 hours to do a full read on the > entire disk surface --- and the factory testing done by HDD > manufacturers is far more comprehensive. > > In addition, SMART (see the smartctl package) is a much more reliable > and efficient way of judging disk health. > > The badblocks program was written over two decades ago, before the > days of SATA, and even IDE disks, when disk controlls and HDD's were > far more primitive. These days, modern HDD and SSD will do their own > bad block redirection from a built-in bad block sparing pool, and the > usefulness of using badblocks has been significantly decreased. > Thanks for the clarification on badblocks usage and usefulness. OK, I ran before badblocks: 1. smartctl -a /dev/sdc (shell) 2. gsmartcontrol (GUI) The results showed me "this disk is healthy". As you said: Both gave a very quick overview. - Sedat - [1] https://superuser.com/questions/171195/how-to-check-the-health-of-a-hard-drive