开发者

Looking for code snippets, library, or toolkit to modify a USB Flash Drive's serial number

I've been writing some tools to interact with a USB Flash Drive (removable drive) for our portable application. We are going to be tying some relevant information directly to the flash drive via the serial number (device serial number, not the volume serial number which is formatting based)

I am able to read the device serial number. What is required to write/modify that开发者_开发问答 device serial number?

I am open to seeing this in any language really (Perl, Ruby, Python, C/C++, .NET anything, etc) but C# is the current code base so what would be first preference.

If a code snippet or script can't be found, some canned application or tool (binary, etc) or similar would be helpful as well.


I think the serial number you are refering to is hardware coded to the flash drive (ie. in its ROM). So there is no way you can (easily) change that serial number. Even if the serial was printed in reprogrammable ROM (I forgot the name EPROM or EEPROM), but then you still need a EPROM writer to do that, not only bunch of codes.


AFAIK, there is one data structure named CIS(Card Information Structure) "embedded" in USB flash drive and stored in flash memory. It is not stored in ROM but in flash, thus it can be modified. But unfortunately the only way to modify it is via specific vendor commands and general users don't know it, unless you can get help from the firmware programmer in charge of this flash controller IC...


In a legitimate way it cannot be done, however if you have the correct MP tool for the built-in USB controller it is possible to modify the serial number and the whole digital structure of the drive.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜