[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Testing USB sticks
- Subject: [ale] Testing USB sticks
- From: cfowler at outpostsentinel.com (Chris Fowler)
- Date: Tue, 17 Nov 2009 11:04:07 -0500
Here is how I test USB sticks, MP3 players, etc bought from China on
eBay.
1. Determine the reported size of the device
2. Create a file of random bytes (/dev/urandom) close to that size.
3. Copy to stick
4. md5sum both the file on your hard disk and the one on the stick.
If it matches the the size reported is the size of the flash.
Is there a better way?