pbatard/rufus — Issue #51: ER: bad blocks check should detect fake flash drives
Author: pbatard
Created: 2012-02-23 20:39:24+00:00
State: open

Suggested by steve6375 in the reboot.pro Rufus thread.

The current test simply writes the same byte all over the device. Thus if a 'fake' memory stick is checked (eg. a 2 GB drive masquerading as a 16GB one), Rufus will report that no bad blocks have been found, which, while technically correct, isn't really helpful.

Proposed solution: Set aside 8 bytes at a specific location in each block, with the block#. To ensure all bytes are tested properly, the offset should be random for each pass.