Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3339828pxb; Mon, 1 Mar 2021 07:38:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/2+z3BX/bJw74l3o5iUSeSqc1XyNEXPpAiiSYtYRxhz1/c7bxBtXW4YybE/GVlLIQOiPQ X-Received: by 2002:a05:6402:3582:: with SMTP id y2mr17007869edc.345.1614613124333; Mon, 01 Mar 2021 07:38:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614613124; cv=none; d=google.com; s=arc-20160816; b=b4N+oPJpVFeFseJn9h64oMsvbLPv2kOeYv3yjbNF1Uj4XwCC+7OYThUgOvv2NvMzLe DpmsNb7NjDnzV8AGtAfRg9p7FRjfjHyMgn1NmOPeNALSyuDKCkhhx3oci5roE7y4fNMf eANnh6dyXOez1IUJz4ld0L5NFhOlWelSSgn7VPXKfYqqYeGMJ5ZHgCpTIBF9iIfndrwx ZPlN0XXIQuuRogF6Eb1hiwiRD77v/CxGpCsKkTBnUBkH6sCSzRnb3ChMTdIPd5dVAsRZ hjovYd+jjUTxPkqD2+e0KnpoCcQWIOaYVvX4SaooYw4IOqI9Mag4KQR0iZhyAUhF6pj/ oWZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bBdh93iecui+N6r3LvH1Y1jLkPFDUU140kx07GUTPKw=; b=ccoGyecUCKdojjmvxIgF3CXEFXwBwTKztndS9+0lJxcypxKFImVgVEr2K6PqhYcyMi J9qwhvCJ3gfxHjecLpAmc2wBahwFJjDAMNyC4UTcoOKRbgDky2oZ5RwAdpU+TVO/23yh DoyIvJsk4vz0ZZ1KgEL5xbUhH2T7XMzeWC7F6MFQNJe1Z3vD4dlqX1+/aCuB2jA7+oa1 GWt2RioIzG7E2/bAoVxm+sn2wjyhmNBV6foF3joy2rzzLjUmlNTaEs46R9hKQRULe1hk oJMGa0wVHGVZ1nEaV/Lmn4SSaUGI9DxTAZjbgkQ/FCilIaKBeRJM3lgeZVFDgpSKJA9u btPA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 10si11074463ejw.219.2021.03.01.07.38.15; Mon, 01 Mar 2021 07:38:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237308AbhCAPfd (ORCPT + 99 others); Mon, 1 Mar 2021 10:35:33 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:33716 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237285AbhCAPfN (ORCPT ); Mon, 1 Mar 2021 10:35:13 -0500 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 121FYNo7019654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 1 Mar 2021 10:34:23 -0500 Received: by cwcc.thunk.org (Postfix, from userid 15806) id E81A515C3A88; Mon, 1 Mar 2021 10:34:22 -0500 (EST) Date: Mon, 1 Mar 2021 10:34:22 -0500 From: "Theodore Ts'o" To: Sedat Dilek Cc: linux-ext4@vger.kernel.org Subject: Re: badblocks from e2fsprogs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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). 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. Regards, - Ted