Can I Create USB 3.0 Flash Drive With Undeletable Files?

2

1

What is the method to make files in a USB Flash Drive undeletable? Does these method work with USB 3.0 interface?

(I have surveyed some Flash Drive manufacturers, and I only see undeletable files for USB 2.0 drives, and not 3.0 drives. One manufacturer claimed that USB 3.0 cannot do undeletable file, so I am curious whether the claim is correct...)

Heng-Cheong Leong

Posted 2015-07-01T04:25:46.390

Reputation: 131

2USB flash drives aren't concerned with files at all. They are block storage. – Daniel B – 2015-07-01T05:07:01.473

Does this mean the claim that USB 3.0 cannot do undeletable files is not true? – Heng-Cheong Leong – 2015-07-01T05:31:57.100

2It means there’s no concept of files at all. The drive is either writable in its entirety or it isn’t. – Daniel B – 2015-07-01T06:47:34.750

1

As Daniel says, the USB drive doesn't know about files, its just storage. Are you looking to write protect the whole storage (i,e. all the files), or just want to prevent some files from being deleted? If you want to set the disk read only DiskPart offers attributes disk set readonly https://technet.microsoft.com/en-us/library/gg252649.aspx

– nwaltham – 2015-07-01T08:14:04.543

You could pull the drive out of the USB port whilst writing a file to it - that would likely kick in the firmware write-protection ;-) …at your own risk & you might need 3 or 4 sticks & 8 or 10 attempts before you got exactly the result you wanted. – Tetsujin – 2015-07-01T08:31:09.703

Answers

2

There is no way to make a regular flash drive read-only. At least not in such a way that it cannot be undone.

Some manufacturers works around this by creating a 3 in 1 device in which the seemingly single hardware contains an USB hub, the original device (could be flash storage, 3G etc) and an emulated CDROM drive. But that uses dedicated hardware, not off the shell consumer stuff.

For home users you could probably emulate this with a rPi or similar mini computer, though as far as I know those do not implement USB3 but USB2. The resulting device is likely either bulky or expensive.

Hennes

Posted 2015-07-01T04:25:46.390

Reputation: 60 739

1

Yes you can but it highly depends on the controller. You need to find the right tool for the specified flash drive/controller(USB Mass Production TOOL, aka MPTool). With MPTool you can make a protected partition or simulating a CDROM, either way the file on it will be undeletable, at least from a normal OS or without MPTool.

Here is an example to get you some idea. Again you need proper MPTool for the controller and not all controller have the tool available.

Chris.C

Posted 2015-07-01T04:25:46.390

Reputation: 1 038

0

Yes you can make a flash drive readonly by using diskpart no mather if it is usb 2.0 or 3.0 or FAT or NTFS formated.

  1. Open an elevated command prompt, type diskpart and press ENTER

  2. Type: list disk

enter image description here

  1. Let's say your flash drive is listed as "disk 2". You'll type:

select disk 2

attributes disk set readonly

  1. If you don't want your flash drive to be readonly anymore you use the same commands as above but instead of "attributes disk set readonly" you use the following command in diskpart:

attributes disk clear readonly

Ricardo Bohner

Posted 2015-07-01T04:25:46.390

Reputation: 1 256

0

No, basically you cant. Thats because you cant do this with software, its all about hardware (i mean the manufacturer can make the whole flash drive undeletable and thats for commercial.)

You can do something but it is environment dependent. You can use Folder Lock for windows which sets the attributes of its archive (it archive and encrypt your files into a file called locker ) to write protect / copy protect / and delete protect . but as I said it all just work in windown environment and people with unix can easily delete it (i dont know if they can decrypt your files) .
Or maybe there are similar methods for linux but they are linux-dependent too, meaning that the undelete concept only gets meaning in linux for that file.

user464223

Posted 2015-07-01T04:25:46.390

Reputation:

-1

I am not 100% sure about this one, but You should give it a shot:

Right click your flash drive in explorer and select 'properties', go to the 'security' tab.
At the 'Group or Username' there should be a user named "Everyone".
Press 'Edit' and at the checkboxes, look for 'write' > set if for 'deny'

Edit:
This method will not make the flash drive secure.
Anyone can re enable the write permission on it if they want to, but users usually don't know about this and will not even try.

Divin3

Posted 2015-07-01T04:25:46.390

Reputation: 1 568

2This is not very effective as you can simply take ownership of a file or use some other operating system to delete it, or format the drive and so on... – Enis P. Aginić – 2015-07-01T08:12:48.363

1Yes, it is not secure at all. But there is no way to make anything 100% secure. Especially a flash drive. – Divin3 – 2015-07-01T08:14:58.517

1Most flash drives are formatted with FAT32 though, not with NTFS. – Hennes – 2015-07-01T08:20:32.567

1"I hope they don't know about it" is nor really an answer to the question "how to make USB drive undeletable" – Enis P. Aginić – 2015-07-01T08:27:01.810

Sorry to disappoint You, Mr./Mrs. Aginić P. Enis, I was only trying to write a possible solution. It is up to the author to accept the best solution, and to the readers to use it, if it fits their needs. – Divin3 – 2015-07-01T10:53:58.517