5

Possible Duplicate:
Make a USB drive read only.

Is it possible to format a USB memory stick so that it cannot be formatted again?

What I actually need is to write software (using C# preferably) and then run that software on a specific PC when a USB memory stick is inserted to the USB port, and allow users copy files into the USB drive then somehow lock that USB drive so that it cannot be formatted or changed anymore!

I am not sure it is possible but I wonder if somebody has got any idea that it is achievable.

Thanks very much!

1

2 Answers 2

1

You can 'lock' files on your flash drive. So when user tries to erase one of these he will get 'File is in use and cannot be deleted' error

2
  • 1
    This won't prevent formatting the drive, does it?
    – CharlesB
    Commented Apr 5, 2011 at 10:14
  • @Charles: Likely not, indeed, as formatting only requires a handle on the device, not a particular file (in fact, any file handles are probably quite invalid afterwards ;))
    – Joey
    Commented Apr 5, 2011 at 11:13
1

Create a TrueCrypt virtual encrypted disk within a file on the drive.

Your data will be encrypted and unreadable and a password will be required to access it. The TrueCrypt software itself can be made available on the non-encrypted part of the disk.