From owner-freebsd-questions@freebsd.org Wed Apr 20 14:48:31 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5388B154CC for ; Wed, 20 Apr 2016 14:48:31 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A88F9168B for ; Wed, 20 Apr 2016 14:48:31 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [62.216.202.58] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1astQS-0002j7-PH for freebsd-questions@freebsd.org; Wed, 20 Apr 2016 16:48:21 +0200 Received: from localhost.my.domain (c720-r292778-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id u3KEmJ30002509 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 20 Apr 2016 16:48:19 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id u3KEmJhe002508 for freebsd-questions@freebsd.org; Wed, 20 Apr 2016 16:48:19 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 20 Apr 2016 16:48:19 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: tool for mapping away bad blocks on an external disk Message-ID: <20160420144819.GA2481@c720-r292778-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org References: <20160417072641.GA2358@c720-r292778-amd64> <20160417093957.0b1acb4c37d7c15a4b06af88@sohara.org> <20160418065534.GA2198@c720-r292778-amd64> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160418065534.GA2198@c720-r292778-amd64> X-Operating-System: FreeBSD 11.0-CURRENT r292778 (amd64) User-Agent: Mutt/1.5.24 (2015-08-30) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 62.216.202.58 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2016 14:48:32 -0000 El día Monday, April 18, 2016 a las 08:55:34AM +0200, Matthias Apitz escribió: > > Thanks for all the hints; I started last night with overwriting the full > disk with: > > # dd conv=noerror if=/dev/zero of=/dev/da0 bs=1m > > ... The dd ended as. I issued from time to time a kill -INFO to the dd to see its progress: # tail nohup.out ... 885016+0 records in 885016+0 records out 928006537216 bytes transferred in 35244.495687 secs (26330538 bytes/sec) 980612+0 records in 980612+0 records out 1028246208512 bytes transferred in 39028.251450 secs (26346202 bytes/sec) dd: /dev/da0: Input/output error 1154078+0 records in 1154077+0 records out 1210137444352 bytes transferred in 45969.382123 secs (26324858 bytes/sec) Does this mean I could use the first 1154077 blocks of 1m as partition, i.e. shrink it to this size and just ignore the rest? matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045