Date: Sun, 17 Apr 2016 09:26:41 +0200 From: Matthias Apitz <guru@unixarea.de> To: freebsd-questions@freebsd.org Subject: tool for mapping away bad blocks on an external disk Message-ID: <20160417072641.GA2358@c720-r292778-amd64>
next in thread | raw e-mail | index | archive | help
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: <Freecom> at usbus0 Apr 17 09:16:38 c720-r292778-amd64 kernel: umass0: <Bulk Only Interface> on usbus0 Apr 17 09:16:38 c720-r292778-amd64 kernel: umass0: SCSI over Bulk-Only; quirks = 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: <Freecom Hard Drive XS 1.00> Fixed Direct Access SCSI-2 device Apr 17 09:16:38 c720-r292778-amd64 kernel: da0: Serial Number FAFFFFF0FDF1F6F90FA46017 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=0x2<NO_6_BYTE> # 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, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160417072641.GA2358>