From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LVJGk-0007bn-4o for garchives@archives.gentoo.org; Fri, 06 Feb 2009 05:28:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FFF6E041A; Fri, 6 Feb 2009 05:28:49 +0000 (UTC) Received: from mail.netspace.net.au (mail-out4.netspace.net.au [203.10.110.77]) by pigeon.gentoo.org (Postfix) with ESMTP id CD820E041A for ; Fri, 6 Feb 2009 05:28:48 +0000 (UTC) Received: from [172.16.0.52] (ppp246-231.static.internode.on.net [203.122.246.231]) by mail.netspace.net.au (Postfix) with ESMTP id A29B1378645 for ; Fri, 6 Feb 2009 16:28:35 +1100 (EST) Subject: [gentoo-user] testing a corrupt SD card From: Iain Buchanan To: "gentoo-user@lists.gentoo.org" Content-Type: text/plain Date: Fri, 06 Feb 2009 14:58:18 +0930 Message-Id: <1233898098.21997.10.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: 8f688d92-4ab4-4cf4-8bf2-5848d84eb9af X-Archives-Hash: fa9eef7fa2cda256efe8a5152ab1490b Hi all, recently my SD card just went bonkers. Unfortunately I lost a lot of photos on it (backups are useless until the data actually gets to the backup...) but fortunately I was able to use a program to recover about 170 photos. Anyway, I don't know if it was just static, shock, dead card, or phase of the moon, so I would like to see if the card is good before I continue to use it. I've reformatted it and I get: $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mmcblk0p1 500960 500960 0 100% /media/PICS so I created a file: dd if=/dev/urandom of=Desktop/random.img bs=1024 count=500960 then copied it to the card, and then copied it back as random-2.img. If I md5sum the two files, they are identical: $ md5sum random* 9dcac25cfd8585be5939c0ff969de310 random-2.img 9dcac25cfd8585be5939c0ff969de310 random.img Does that mean my memory card is good to go, or should I use some other method of bad sector detection? It's a Lexar Media 512Mb SD card, a couple of years old. Yes I know I can get a cheap 2Gb for <$20 but I'm more interested in the principle of the test :) thanks for any tips! -- Iain Buchanan This sentence contradicts itself -- no actually it doesn't. -- Douglas Hofstadter