Re: 4 GB USB flash disk with FAT ok, with ext3 corrupted files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





--On 18 June 2007 10:59 +0200 Miernik <public@xxxxxxxxxxxx> 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

_______________________________________________
Ext3-users mailing list
Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux