public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ext2/3 vs. kingston 32G SD card
@ 2008-11-04 11:02 Pavel Machek
  2008-11-04 11:25 ` Bart Van Assche
  2008-11-04 11:47 ` Jörn Engel
  0 siblings, 2 replies; 4+ messages in thread
From: Pavel Machek @ 2008-11-04 11:02 UTC (permalink / raw)
  To: kernel list

Hi!

I got 32GB kingston SD card, and am using it with ext2 for storing git
trees etc.

Unfortunately, every time I run fsck, I get rather nasty corruption. 
I switched it to ext3 now, but I believe I have seen corruption even
on volume marked clean, which should be impossible from user error.

If I suspect wrong block device, what are useful tests to run there?

Or maybe I should do some test on filesystem level? (So far I try
compiling kernels, but that does not seem to provoke the corruption.)

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ext2/3 vs. kingston 32G SD card
  2008-11-04 11:02 ext2/3 vs. kingston 32G SD card Pavel Machek
@ 2008-11-04 11:25 ` Bart Van Assche
  2008-11-04 11:47 ` Jörn Engel
  1 sibling, 0 replies; 4+ messages in thread
From: Bart Van Assche @ 2008-11-04 11:25 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

On Tue, Nov 4, 2008 at 12:02 PM, Pavel Machek <pavel@suse.cz> wrote:
> If I suspect wrong block device, what are useful tests to run there?

Tools like xdd allow to write certain data patterns to a block device
and to verify the written data.

Bart.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ext2/3 vs. kingston 32G SD card
  2008-11-04 11:02 ext2/3 vs. kingston 32G SD card Pavel Machek
  2008-11-04 11:25 ` Bart Van Assche
@ 2008-11-04 11:47 ` Jörn Engel
  2008-11-10 10:09   ` Pavel Machek
  1 sibling, 1 reply; 4+ messages in thread
From: Jörn Engel @ 2008-11-04 11:47 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

On Tue, 4 November 2008 12:02:25 +0100, Pavel Machek wrote:
> 
> I got 32GB kingston SD card, and am using it with ext2 for storing git
> trees etc.
> 
> Unfortunately, every time I run fsck, I get rather nasty corruption. 
> I switched it to ext3 now, but I believe I have seen corruption even
> on volume marked clean, which should be impossible from user error.
> 
> If I suspect wrong block device, what are useful tests to run there?

Not likely in your case, but a number of counterfeited devices are on
the market.  They contain a much smaller chip inside than is advertised
plus some logic to return 0x00 when reading from non-existent memory.

To test for this, simply write 0xff to the complete device and read it
back.  'hd' is useful, as it compressed the output into four lines for a
good device and a bit more when you bought crap.

Jörn

-- 
Man darf nicht das, was uns unwahrscheinlich und unnatürlich erscheint,
mit dem verwechseln, was absolut unmöglich ist.
-- Carl Friedrich Gauß

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ext2/3 vs. kingston 32G SD card
  2008-11-04 11:47 ` Jörn Engel
@ 2008-11-10 10:09   ` Pavel Machek
  0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2008-11-10 10:09 UTC (permalink / raw)
  To: J?rn Engel; +Cc: kernel list

> On Tue, 4 November 2008 12:02:25 +0100, Pavel Machek wrote:
> > 
> > I got 32GB kingston SD card, and am using it with ext2 for storing git
> > trees etc.
> > 
> > Unfortunately, every time I run fsck, I get rather nasty corruption. 
> > I switched it to ext3 now, but I believe I have seen corruption even
> > on volume marked clean, which should be impossible from user error.
> > 
> > If I suspect wrong block device, what are useful tests to run there?
> 
> Not likely in your case, but a number of counterfeited devices are on
> the market.  They contain a much smaller chip inside than is advertised
> plus some logic to return 0x00 when reading from non-existent memory.
> 
> To test for this, simply write 0xff to the complete device and read it
> back.  'hd' is useful, as it compressed the output into four lines for a
> good device and a bit more when you bought crap.

Ok, I switched to ext3 and the card seems to behave now. It seems to
hold the data, so it is probably not fake :-).
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-10 10:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-04 11:02 ext2/3 vs. kingston 32G SD card Pavel Machek
2008-11-04 11:25 ` Bart Van Assche
2008-11-04 11:47 ` Jörn Engel
2008-11-10 10:09   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox