Ubuntu: Deleting Files by Force!



Question:

Hi I have a flash memory which is damaged and became read-only. I want to delete my data. How can I do so? Is there any way to make it completely impossible to read files on my flash memory?


Solution:1

Without destroying? You can repair it first. Assuming your flash is /dev/sdb1:

sudo fsck -a /dev/sdb1  

If it succeeds, turn it on and off, then delete files.


Solution:2

If the drive has become read-only on the hardware level because of an electronic problem or such, your only way is to destroy it, I suppose...

But some USB memory sticks can be made read-only with a switch, either a hardware switch (I guess you would know if it had one) or a software switch. E.g. if it's an U3-compatible device, you might be able to do something with u3-tool.


Solution:3

The original question, in part, was: "Is there any way to make it completely impossible to read files on my flash memory?"

To make the contents on the flash drive unreadable, use the 'shred' command.

Of course, before that command would work, write access to the flash drive would be necessary. In the event that write access cannot be enabled, the flash drive will need to be physically destroyed.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »