From owner-freebsd-questions@freebsd.org Sun Apr 17 07:52:22 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 E8313B11DC4 for ; Sun, 17 Apr 2016 07:52:22 +0000 (UTC) (envelope-from xxjack12xx@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5A91101C for ; Sun, 17 Apr 2016 07:52:22 +0000 (UTC) (envelope-from xxjack12xx@gmail.com) Received: by mail-ig0-x233.google.com with SMTP id g8so57725360igr.0 for ; Sun, 17 Apr 2016 00:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=3840Exx9wy1PinwQSfYhpYQqBrHZCiTYUgt8zbe+UoA=; b=OwNdy69juxIdm29EHjd8mksUpzmhVKwLbbIpNGsHpOGtBrabWvS9YHFsmNkOBX9XQN ykXValuPg2Q/h85B5fG1RnzFLUHiQsPGAeA9OsWyF4deR7RJ6bWKP1JTedFMRs1e3F7Z 9E+B+C24z3JabEUePhSgnGoEKkGzjd9Pugeh/mPdizDCTmhbuOI4Ww+NUlqhM9Inxg91 zRyOToHmaWMjDZBApoZXzUjoMHmAYjOwvMhpOPSh27kWTyAVHDrFyWKmGmOFt3Qr5lRa Bgb/RgcBlwZFefTlJxQeYqJJTZTlUruV4WqGE64wRpSVdqwhEQ+W1YU4DiBt6mzJIbTN TEKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=3840Exx9wy1PinwQSfYhpYQqBrHZCiTYUgt8zbe+UoA=; b=VTwlX60G3pdN8EvUfQOZeKF7+dSgyLlu2xVUhmJQO+jt2ypB+unHTYbrDNQDMFDAsh +OoroaMm8Puu8CzhYEv4xTARuy0dqXf6k+YFdhTr+2jb0ouP3PChK5jdCl9PEsVw/3jB 4AQcZZiKiEb5VwQBuvIAmy90S+etnes+mEXSn3nPvcWyrVkQ5ZRD1jSQkVAIKWTaB+9R 0Oox1NR1NJCczTuvRkptZeDgObbDyNC+OH+0xynPEyOn5YnE8n33e/D+0k5mw0zYMdqO /WR/mi7nDYzsfmGq8RH2Iz7KJmb/RwFMpzV1iTtoCnanCYQ/+7ww1C4tizpamAeaDrKL MToA== X-Gm-Message-State: AOPr4FWhBd7JJGNnhuyEzgp17hasO//HitN8mNIcchuzf2/1N2Rxf8HYOVzK6PGQQuxDprzyBe8REmPyXpGqiA== X-Received: by 10.50.92.37 with SMTP id cj5mr13528294igb.91.1460879542079; Sun, 17 Apr 2016 00:52:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.41.129 with HTTP; Sun, 17 Apr 2016 00:51:42 -0700 (PDT) In-Reply-To: <20160417072641.GA2358@c720-r292778-amd64> References: <20160417072641.GA2358@c720-r292778-amd64> From: "Jack L." Date: Sun, 17 Apr 2016 00:51:42 -0700 Message-ID: Subject: Re: tool for mapping away bad blocks on an external disk To: Matthias Apitz , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Sun, 17 Apr 2016 07:52:23 -0000 IMO, any drive with bad blocks aren't worth keeping around. Once bad blocks start developing, more usually follow shortly after until it turns into SMART Health Status: HARDWARE IMPENDING FAILURE TOO MANY BLOCK REASSIGNS [asc=3D5d, ascq=3D14] On Sun, Apr 17, 2016 at 12:26 AM, Matthias Apitz wrote: > > Hello, > > I have an older external disk, connected through USB, which has bad > blocks: > > Apr 17 09:16:38 c720-r292778-amd64 kernel: ugen0.3: at usbus0 > Apr 17 09:16:38 c720-r292778-amd64 kernel: umass0: = on usbus0 > Apr 17 09:16:38 c720-r292778-amd64 kernel: umass0: SCSI over Bulk-Only; = quirks =3D 0x0100 > Apr 17 09:16:38 c720-r292778-amd64 kernel: umass0:1:0: Attached to scbus1 > Apr 17 09:16:38 c720-r292778-amd64 kernel: da0 at umass-sim0 bus 0 scbus1= target 0 lun 0 > Apr 17 09:16:38 c720-r292778-amd64 kernel: da0: Fixed Direct Access SCSI-2 device > Apr 17 09:16:38 c720-r292778-amd64 kernel: da0: Serial Number FAFFFFF0FDF= 1F6F90FA46017 > Apr 17 09:16:38 c720-r292778-amd64 kernel: da0: 40.000MB/s transfers > Apr 17 09:16:38 c720-r292778-amd64 kernel: da0: 1430799MB (2930277168 512= byte sectors) > Apr 17 09:16:38 c720-r292778-amd64 kernel: da0: quirks=3D0x2 > > > # fsck /dev/da0s1a > ** /dev/da0s1a > ** Last Mounted on / > ** Phase 1 - Check Blocks and Sizes > > CANNOT READ BLK: 1512063104 > CONTINUE? [yn] y > > THE FOLLOWING DISK SECTORS COULD NOT BE READ: 1512063180, 1512063219, > > CANNOT READ BLK: 1794212160 > CONTINUE? [yn] > > Do we have some good tool to perform an analyse of the full disk and map > away all bad blocks? There is no important data on this disk and if I > can not get rid of the bad blocks I must throw it to dustbin. > > Thanks > > matthias > > -- > Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea= .de/ =E2=98=8E +49-176-38902045 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg"