--On 18 June 2007 10:59 +0200 Miernik <[EMAIL PROTECTED]> wrote:

> These USB sticks are fake, and have a 1 GB flash chip, and a fake
> controller which makes the computer think it is a 4 GB stick.
>
> Any data written past the first 1066401792 bytes is lost, and reading
> any data over that boundary gives a copy of the last 2048 bytes of the
> real flash chip, repeated as many times to fill the whole stick.

Hmmmm.... I wonder whether it would be useful for mke2fs etc. to write
to sector n-1 and n-2 (where there are n sectors on the disk) and read
the sectors back to check the last sectors on the disk actually work.
This would detect bad extents very easily and quickly. I am sure there
are innocent causes of this problem on other media (i.e. it would
be useful beyond fake USB drives)

Alex

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to