From: Pavel A. on
"eric selk" <eselk2003(a)gmail.com> wrote in message
news:fbd91413-389a-4ce5-90fd-0e7d77ccba81(a)o41g2000yqb.googlegroups.com...
> On Sep 25, 5:44 pm, "Pavel A." <pave...(a)12fastmail34.fm> wrote:
>> Try a flash drive formatted with some kind of file system not recognized
>> by
>> Windows?
>> --pa
>
> I've been thinking about this route, at least to start with, until we
> can mass produce something custom. I haven't found anyone that sales
> such a thing though, and I haven't found any tools that will let me
> unformat a flash drive to the point that Windows will not try to
> autoplay it.

There are some *free* partition table editing tools that let you
change the existing (FAT16?) partition type, for example, to
some hidden type.
See http://www.win.tue.nl/~aeb/partitions/partition_types-1.html


--pa


From: Maxim S. Shatskih on
> There are some *free* partition table editing tools that let you
> change the existing (FAT16?) partition type, for example, to

Very many flash drives are simulating removable media and thus have no partition table.

Just overwrite sector 0 with zeroes.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: eric selk on
On Oct 2, 12:58 pm, "Maxim S. Shatskih"
<ma...(a)storagecraft.com.no.spam> wrote:
>
> Very many flash drives are simulating removable media and thus have no partition table.
>
> Just overwrite sector 0 with zeroes.

Sounds interesting. Any idea what API calls I should research to see
how I could write a program to do this? Maybe I could find a utility,
but if it works, wouldn't mind writing something custom to make the
job of doing 1000 or so easier.

Or would this require special vendor specific hardware?

...sorry, I've never had to learn much about non-standard i/o to disk
drives, not since the 5 1/4" floppy days anyway.
From: Maxim S. Shatskih on
>Sounds interesting. Any idea what API calls I should research to see

CreateFile on \\.\e: and then WriteFile.

You will need admin rights to do this.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Uwe Sieber on
eric selk wrote:
> On Oct 2, 12:58 pm, "Maxim S. Shatskih"
> <ma...(a)storagecraft.com.no.spam> wrote:
>> Very many flash drives are simulating removable media and thus have no partition table.
>>
>> Just overwrite sector 0 with zeroes.
>
> Sounds interesting. Any idea what API calls I should research to see
> how I could write a program to do this? Maybe I could find a utility,
> but if it works, wouldn't mind writing something custom to make the
> job of doing 1000 or so easier.
>
> Or would this require special vendor specific hardware?

No, It's all about writing the right thing to
the "disk". A "disk" is something like a big
file which has a fixed size from sector 0 to
the last sector of your drive. In sector 0
there can be a partition table. If the partition
table contains a single hidden partition then
there will be no drive letter and no autoplay.

If your drive has no partition table then format
it by means of the "HP USB Format Tool".

For hiding a partition you need a 3rd party
tool or a disk editor...
Once done with one disk you can use a Windows
version of the unix tool DD for saving the
sector 0 to a file and write it to 1000 new
drives...
Just google for DD Windows.

Even with a hidden partition XP and Vista
will take more than 10 seconds for the plug
and wait procedure. W2K and Win7 do much faster.


Uwe