From owner-freebsd-questions@freebsd.org Wed Aug 17 21:49:02 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 66504BBDD3E for ; Wed, 17 Aug 2016 21:49:02 +0000 (UTC) (envelope-from jonathan@kc8onw.net) Received: from mail.kc8onw.net (kc8onw.net [206.55.216.50]) by mx1.freebsd.org (Postfix) with ESMTP id 2DCEB1A53 for ; Wed, 17 Aug 2016 21:49:01 +0000 (UTC) (envelope-from jonathan@kc8onw.net) Received: from [10.70.3.102] (99-55-193-152.lightspeed.iplsin.sbcglobal.net [99.55.193.152]) by mail.kc8onw.net (Postfix) with ESMTPSA id 28B0F3911; Wed, 17 Aug 2016 17:48:58 -0400 (EDT) Subject: Re: Lexar flash drive dead? To: Ian Smith References: <20160817210437.M79687@sola.nimnet.asn.au> Cc: freebsd-questions@freebsd.org From: Jonathan Stewart Message-ID: <159c6f79-7de6-1234-b5c5-588df8041085@kc8onw.net> Date: Wed, 17 Aug 2016 17:48:53 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160817210437.M79687@sola.nimnet.asn.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2016 21:49:02 -0000 On 8/17/2016 7:34 AM, Ian Smith wrote: > In freebsd-questions Digest, Vol 637, Issue 3, Message: 20 > On Tue, 16 Aug 2016 21:31:12 -040 Jonathan Stewart wrote: > > > (Please CC me as I'm not subscribed right now) > > And please cc me on any reply; I take the -digest. > > > I have a Lexar USB3 128GB flash drive that has quit working. I get the > > following on the console and in dmesg when I plug the drive in, is there > > any hope other than a professional recovery company for this drive? On a > > Windows machine it does some kind of disconnect/reconnect loop but just > > triggers the text below on FreeBSD. > > Have you tried it on other FreeBSD boxes too? I don't have any other FreeBSD systems to test it on. The two Windows machines I have both do the disconnect/reconnect loop. > > ugen1.3: at usbus1 > > umass0: on usbus1 > > umass0: SCSI over Bulk-Only; quirks = 0x8100 > > umass0:9:0:-1: Attached to scbus9 > > da4 at umass-sim0 bus 0 scbus9 target 0 lun 0 > > da4: Removable Direct Access SPC-4 SCSI device > > da4: Serial Number AAUAYQ9QH3OH4ONS > > da4: 40.000MB/s transfers > > da4: 122104MB (250068992 512 byte sectors: 255H 63S/T 15566C) > > da4: quirks=0x2 > > (da4:umass-sim0:0:0:0): READ(10). CDB: 28 00 0e e7 bf fe 00 00 01 00 > > (da4:umass-sim0:0:0:0): CAM status: SCSI Status Error > > (da4:umass-sim0:0:0:0): SCSI status: Check Condition > > (da4:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) > > (da4:umass-sim0:0:0:0): Error 6, Unretryable error > > (da4:umass-sim0:0:0:0): READ(10). CDB: 28 00 0e e7 bf ff 00 00 01 00 > > (da4:umass-sim0:0:0:0): CAM status: SCSI Status Error > > (da4:umass-sim0:0:0:0): SCSI status: Check Condition > > (da4:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) > > (da4:umass-sim0:0:0:0): Error 6, Unretryable error > > (da4:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 00 01 00 00 01 00 > > (da4:umass-sim0:0:0:0): CAM status: SCSI Status Error > > (da4:umass-sim0:0:0:0): SCSI status: Check Condition > > (da4:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) > > (da4:umass-sim0:0:0:0): Error 6, Unretryable error > > When that's finished logging, does /dev/da4 still exist? If not, I > don't know. 'Medium not present' looks pretty serious. > > But if so, you may be able to recover most of its contents, less any bad > blocks (which will be replaced by NUL bytes), using something like: > > # dd if=/dev/da4 of=recovered.img conv=noerror,sync bs=512 > The device is still present but dd gives me the following. storage% sudo dd if=/dev/da4 of=/testdump.bin dd: /dev/da4: Device not configured 0+0 records in 0+0 records out 0 bytes transferred in 0.001363 secs (0 bytes/sec) My best guess (assuming the error is accurate) is that I cracked the BGA array and the controller chip is fine but it can't talk to the flash chip. In which case a recovery company can probably either remount it or dismount it and read it externally I hope. Damned expensive though most likely. Thanks, Jonathan