From owner-freebsd-questions@freebsd.org Sun Feb 24 07:10:53 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C57BC1514F26 for ; Sun, 24 Feb 2019 07:10:53 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AAE11897E1 for ; Sun, 24 Feb 2019 07:10:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.28.147]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPA (Nemesis) id 1MD9Gh-1gpJTO02fh-0095Ba; Sun, 24 Feb 2019 08:10:43 +0100 Date: Sun, 24 Feb 2019 08:10:42 +0100 From: Polytropon To: Andrea Venturoli Cc: "freebsd-questions@freebsd.org" Subject: Re: Recover failed SD card Message-Id: <20190224081042.d2211ba6.freebsd@edvax.de> In-Reply-To: <9cb7d703-bef2-8245-615c-4a471e858f32@netfence.it> References: <2341a9ac-42aa-737e-441f-b69cccc826c6@netfence.it> <20190224055321.14e7e462.freebsd@edvax.de> <9cb7d703-bef2-8245-615c-4a471e858f32@netfence.it> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:RRkYxDE8GLAZRILBO58V844eSfIEPxXh1azXYNyZ5xLVmmPZYma b8T+jghYcNPyvnLUx26LO+wiREDXM+52tOwQYhVFVTv4qyfqkB1IxEyFrQVl2RS0p6//6+1 gU8qviMAfl+uBI63fM6x/phZT7v9dsDIEacY9448jFrygzcpgw89RhIDMdAbccbBqBYLZnU +SAiQYZPKX6B1ofRo0iDQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:K4iD1WVsAv0=:6y4teik+oN8xQNZ9+SvCnt +AMQEPqg++WysmKJbbjwDQjukZRowO+86V4bra3ekHnKHlPtce5P4TnqKpFxF5sxEOzTfJFPB ecQRZefZG67xI3wdAfamGqaYzAR0vLH3YOTtmxHJNCdYD39/4uz1vh169LPbWlWpC3zXfWZWp T6zPx+5L9WSH4zqAA9xQSgLW5lAmp88OOF6xVvUh+HilbWdJAcYDdgqArxlh8iJzQ6PO1tp4y p0kj05qUuvcUp4PeD/rRPPBb11iRKRDtlKaNtr6fTweLZgm+V+EQWLGj9yGvuZ2hF3jm2XRCe 1RfX08rmyYpDjzzV7XuNaGx9GT8apgnDGAZjM4Z3FalTbmBsa3PqjF5SVvRClMJdBH5pcQ4F1 aHxtPiucQmbfudzDEXUA0GKQ50TxBfM4ffzis3em7LWhboVhtgJh033bRX7i02D967uzfyN7C W+56YNnGCHOifB3o6b9UTlrUVQtK12YfArt3z4balEyCTPwhjKy+SKhSKzCAundgbJ1gYxFZj dHAb6H0cKI20ASlLf/6ybzR3Ifg0jwh5G30O431y7EXjqVtlW7eAhHMBGDgizNyLkg26pSqhP VVj1rQqq1Z0P+2CSzaWlq0l0RiTMnarnvvZIip+GHpuDdng/qF2emXUzo2c2LjWUwmpijAu30 NYaWz8XNU1U/X2V8069J3gzDLHV/GGaf+oK6mj3E6dJKoLwfq6urvObzhPY1xEJK9fSDlnlII UHo4aJqoUQxmN+Aq12KzVo4GGlQvrOFe8AahzQJ66/mxe3LFF33blf2BTMY= X-Rspamd-Queue-Id: AAE11897E1 X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.51 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.01)[cached: mx01.schlund.de]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[147.28.195.92.zen.spamhaus.org : 127.0.0.10]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.88)[0.882,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.981,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.97)[0.967,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[24.17.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.29)[ip: (0.42), ipnet: 212.227.0.0/16(-0.85), asn: 8560(1.87), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 07:10:54 -0000 On Sun, 24 Feb 2019 07:53:28 +0100, Andrea Venturoli wrote: > On 2/24/19 5:53 AM, Polytropon wrote: > > > Did you ask your customer to recover from his backups? > > Yes, of course you did. :-) > > "Back-what"? :) "We don't need backups - we have RAID!" ;-) > > This will probably apply to _any_ copying tool. For things > > where dd fails, I often try dd_rescue and ddrescue > > As I said I tried "recoverdisk" (which is like ddrescue, but it's in base). It suffers from the same problem as probably all tools will: System reports "end of medium", and that's it. :-( > >> The card should hold pictures, so I could go ahead with photorec once I > >> got an even partial image. > > > > That is the recommended approach. Maybe you can already recover > > a fraction of the images stored on the card. > > Tried that before posting; it finds nothing. > To me it looks like I'm not even seeing the *first* 120 MB of the card. That's quite possible. I assume the card is supposed to carry a FAT file system. For technical purposes, that file system doesn't have to begin at the _start_ of the memory unit. The controller might use several MB for internal use, such as "re-mapping" and "accounting", and the actual "payload" begins later - in an area that the controller does no longer present to the media interface. It sometimes helps to use a file viewer to check what's in the obtained image, or a hex dump. If you get only 0x00 bytes, it's even "worse than garbage", because garbage could mean something (like "mutilated former file content"). > > There is another possibility, but it's actually _very_ hard > > to do, and it's not guaranteed to work: > > > > Obtain an identical SD card. It has to be "as identical as > > possible": same control unit, same memory unit, same firmware > > revision (yes, there's "a whole computer with hard- and software" > > on that thing!). Transplant the old memory chip to the new > > card, removing its new memory chip (empty) beforehand. Then > > try another identification. > > > > If it's a micro-SD card, don't inhale the chip. ;-) > > It's a micro-SD card and I'm not able to do this. As I auggested, this approach takes a _lot_ of work (and very specific tools & skills), and you might end up with the same result you're seeing now... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...