SysInternals SDelete

Submit command line tools that you find here.
Post Reply
Message
Author
User avatar
AlephX
Posts: 664
Joined: Thu May 11, 2006 10:53 pm
Contact:

SysInternals SDelete

#1 Post by AlephX »

Category: Mass Storage / Privacy

SysInternals SDelete v1.4
http://www.sysinternals.com/Utilities/SDelete.html


Synopsis:
SDelete cleans the free space on your disk and securely deletes also files and folders. SDelete is a command line utility that takes a number of options.
Usage: sdelete [-p passes] [-s] [-q] <file or directory>
sdelete [-p passes] -z [drive letter]

-p passes
Specifies number of overwrite passes
-s
Recurse subdirectories
-q
Don't print errors (quiet)
-z
Cleanse free space
The interesting feature is to indirectly overwrite free space. SDelete allocates the largest file it can and then securely deletes it.

Write settings to:
none

Usage:
unzip and copy to folder. Run sdelete.exe (in dos mode)
Unicode support:
no

space uncompressed:
62 Kb

License:
freeware
(Source code with permission)

greetings everybody!!!

User avatar
Andrew Lee
Posts: 3063
Joined: Sat Feb 04, 2006 9:19 am
Contact:

#2 Post by Andrew Lee »

Check out "Why don't you accept command-line apps?" under the FAQ?

User avatar
AlephX
Posts: 664
Joined: Thu May 11, 2006 10:53 pm
Contact:

#3 Post by AlephX »

OOOps! :roll:

Ok, now I´ve realized that :D

Good point! You are right.

User avatar
webfork
Posts: 10823
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: SysInternals SDelete v1.4

#4 Post by webfork »

Old thread update: I just did some work posting about this before I found out that it wasn't helpful for one task, but along the way I noticed a few other things:

There is a way that it might qualify as portable: if you just drag and drop a file onto SDelete, it will automatically wipe the file (a 1x overwrite, which is all most users need).

More info on SDelete:
http://technet.microsoft.com/en-us/sysi ... 97443.aspx
https://www.pcworld.com/article/2024256 ... -line.html

Also, on the command line side, the zero out freespace wipe is a somewhat faster (and slightly less secure) option than a regular free space wipe. I haven't tested this at length but:
  • If you wipe your computer frequently, it will take an order of magnitude LESS time if you only ever run a zero-out function like with SDelete. This is because it will skip any space you've already zero'd out that doesn't need further wiping.
  • For high security types: you should generally speaking not use this on encrypted volumes, as it could make them fundamentally less secure. This is because the lack of entropy can create a more discernible pattern for cryptanalysis.
Last edited by webfork on Sat Mar 16, 2013 11:25 am, edited 1 time in total.
Reason: (edit: fixed the broken links SYSTEM mentions later in the thread)

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: SysInternals SDelete v1.4

#5 Post by guinness »

Interesting, learnt something today about SDelete.

User avatar
SYSTEM
Posts: 2043
Joined: Sat Jul 31, 2010 1:19 am
Location: Helsinki, Finland

Re: SysInternals SDelete v1.4

#6 Post by SYSTEM »

webfork wrote: There is a way that it might qualify as portable: if you just drag and drop a file onto SDelete, it will automatically wipe the file (a 1x overwrite, which is all most users need).
BTW, it's a feature of Windows rather than SDelete. When you drag and drop a file on an executable, Windows launches the executable and gives the path of the file as a command-line parameter.
webfork wrote: http://technet.microsoft.com/en-us/sysi ... 97443.aspx
The link is broken.
webfork wrote: If you wipe your computer frequently, it will take an order of magnitude LESS time if you only ever run a zero-out function like with SDelete. This is because it will skip any space you've already zero'd out that doesn't need further wiping.
AFAIK, this isn't the reason why wiping with zeroes is faster. The reason is that generating random data takes time, and when wiping free space with random data, the processor needs to generate gigabytes of it.
My YouTube channel | Release date of my 13th playlist: August 24, 2020

User avatar
Midas
Posts: 6727
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: SysInternals SDelete v1.4

#7 Post by Midas »

SYSTEM wrote:AFAIK, this isn't the reason why wiping with zeroes is faster. The reason is that generating random data takes time, and when wiping free space with random data, the processor needs to generate gigabytes of it.
Enlightening. Thanks for sharing it, SYSTEM. 8)

User avatar
webfork
Posts: 10823
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: SysInternals SDelete v1.4

#8 Post by webfork »

SYSTEM wrote:The link is broken.
That was weird ... will go back and edit those.
SYSTEM wrote:AFAIK, this isn't the reason why wiping with zeroes is faster. The reason is that generating random data takes time, and when wiping free space with random data, the processor needs to generate gigabytes of it.
Yeah, I discussed this with an engineer who indicated that if anything it would take more time to zero out a drive. A random number generator would of course take more processor juice but as the hard drive is the bottleneck on most computers, the read-then-write function of the zero-out process would end up more time-consuming. A good idea for a freeware program therefore would be something to track these areas that had already been zero'd and not check them again.

Post Reply