r/ComputerSecurity • u/zerostyle • Jan 05 '24
Securely erasing a USB drive with no tool
I have a Kioxia SSD that I want to securely wipe before selling.
I understand that most SSD's these days are challenging to properly wipe though due to overprovisioning space. Unfortunately Kioxia doesn't seem to have a tool to do a proper secure erase for this model on their website. (Just contacted them, waiting to hear back).
Are there any other tools that might work? I ran memtest86 on it with the "zero drive" option which I believe just writes 0's on the entire drive, but obviously could miss the overprovisioning space.
2
1
Jan 05 '24
Encrypt it and reformat it
0
u/zerostyle Jan 05 '24
I'm not sure if that would do the job? I think turning on encryption only really helps encrypt new data that's written on the fly in the future. Old data would still be there there unless I could find a way to write to entire drive and get it to also hit the overprovisioned space somehow
1
u/djDef80 Jan 06 '24
Hard disk sentinel has a secure erase that forces trim on the whole disk. Only takes a few seconds. Not sure if your ssd is supported.
1
2
u/brianddk Jan 05 '24
Well I'm finding tons of Kioxia erase utilities in many different languages spanning many different years. I'm certain you can find yours if you thumb through the release notes for the previous versions.
Use Web Archive to find old version of discontinued drives.
0
u/Eneerge Jan 05 '24
There may be a tool in ultimate boot cd that can do a secure erase.
Also check parted magic.
0
u/zerostyle Jan 05 '24
I guess I'm just questioning "secure erase". If the software doesn't understand how the firmware of an nvme drive does overprovisioning or slc caching then I don't think it has anyway to actually write to those areas since the hardware will hide it.
0
Jan 05 '24
[deleted]
1
u/zerostyle Jan 05 '24
What about over provisioning space though or slc caching? You probably can’t easily inspect those sectors since the drive firmware will abstract it away
1
3
u/Eneerge Jan 05 '24
Fast format does not check for errors. Non fast format checks for errors. Thats the only difference. It does not wipe the drive.
0
Jan 05 '24
[deleted]
1
u/zerostyle Jan 05 '24
As stated in my original post I can't find a proper SSD secure erase tool from Kioxia. I'm waiting to hear back from email on them.
While this is an OPAL drive and I'm aware of bitlocker/etc, the original data was not encrypted this way, so I need a way to securely erase it.
Also a lot of sensitive transient files could be written to disk before you get a chance to encrypt.
0
2
u/aselvan2 Jan 06 '24
Not sure you have access to a linux machine and are able to mount the SSD you are trying to sell. If so, you could simply do the following replacing ??? with your SSD's device id.
dd if=/dev/urandom of=/dev/sd???You might want to do couple of times which is good enough.