Asked by:
SDelete hangs at 100%

Question
-
Hi.
Since the latest update of the Sysinternals Suite, when I run Sdelete (v 2.0) on my disk, it hangs at 100% and does not end (command is sdlete.exe -c -z- r; OS is Win10 Pro, current updates applied; no recent changes to other drivers or firmware). I have this issue on two machines and since i run SDelete from within a script, it stops my automation process dead since i have to manually end the process now.
Any ideas on how to get this fixed?
All replies
-
-
Yes, I should have come to that conclusion myself ;)
Process Monitor shows ongoing write-access to a temporary file ("c:\users\\appdata\local\temp\sdeltemp1") with a steadily increasing offset.
I suppose this is "new" behaviour of SDelete. It grabs free space with creating a temporary file and then works on that. Unfortunately though, that this leads to showing 100%-status for most of the processes runtime.
I'll consider this closed with the comment "misleadingly shows 100%-status" -
Here's some objective test data comparing v1.61 and the newly released v2.0 of SDelete.
---
Timer 1 on: 19:45:02
SDelete -z E:
SDelete - Secure Delete v1.61
Copyright (C) 1999-2012 Mark Russinovich
Sysinternals - www.sysinternals.com
SDelete is set for 1 pass.
Free space cleaned on E:\
1 drives zapped
Timer 1 off: 19:46:28 Elapsed: 0:01:25.50
---
Timer 1 on: 19:46:28
SDelete64 -z E:
SDelete v2.0 - Secure file delete
Copyright (C) 1999-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
SDelete is set for 1 pass.
Free space cleaned on E:\
1 drive cleaned.
Timer 1 off: 20:28:54 Elapsed: 0:42:25.89
---
So yes the v2.0 version of SDelete doesn't "hang" (forever) at 100% it just does something else for 28x the time of v1.61.
PS: E: is a flash drive (NTFS formatted) with 1.10GB of free space. -
-
-
-
I have the same problem with Sdelete on my SSD.The resource monitor showed v.2 writing the disk at approx 40Mb p/swhile v.1.61 at 1,300 Mb p/sSDelete v.2.0 is faulty (shows 100% all the time) and dead slow, don't use it.Google v.1.61 , it works just fine.
-
-
-
-
Hi,
I am facing the same issue while building my virtualbox build using packer tool. Earlier it used to work fast but now it just hangs for ever at Sdelete command. Can you please tell me where can I check the version of sdelete command and how to replace it?
at the command prompt it shows:
virtualbox-iso: C:\Users\vagrant>cmd /c C:\Windows\Temp\sdelete.exe -q -z C:
virtualbox-iso:
virtualbox-iso: SDelete v2.0 - Secure file delete
virtualbox-iso: Copyright (C) 1999-2016 Mark Russinovich
virtualbox-iso: Sysinternals - www.sysinternals.com
virtualbox-iso:
virtualbox-iso: SDelete is set for 1 pass.
but there is no such application called sdelete at \windows\temp path. Or is it located internally in the virtual machine being built up? how can I replace it with older version.
Please help, if you have been able to resolve this issue.
thanks -
-
Luckely I found version 1.61 in one of my old virtual machines.I uploaded to my web-server for others:
http://www.wit.dk/temp/sdelete_1.61.0.0.exe -
-
Used SDelete 2.0 (32-bit) on Windows 7 64-bit, to clear 4.2 GB empty space on a WD My Book Duo 16 TB over USB 3.0.
D:\Download\SDelete>sdelete -c l:
SDelete v2.0 - Secure file delete
Copyright (C) 1999-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
SDelete is set for 1 pass.
Cleaning free space on L:\: 100%^C
Took about 28 hours to reach 100%. It remained at 100% for about about six hours until I Ctrl-C'ed out. Oddly, the noise level from the drive was greater throughout this 100% phase. There wasn't any hidden temp file left over.
Not sure if this is of any relevance, but I'd previously interrupted it at around 10% with Ctrl-C as it was taking longer than anticipated, and didn't delete the temporary file (if there was one left over) -
-
Has anyone heard any updates of getting a fixed version of SDelete 2.0 published, or getting 1.0 published officially while a fix is in progress? Sdelete is used in a lot of Packer workflows for building Windows boxes for Vagrant and other platforms. Having this broken is awfully inconvenient.
David -
-
-
-
When I run command "sdelete64.exe -z -nobanner E:" on 1Gb USB flash drive it goes from 0% to 100% in about 3 minutes and after that hangs at 100% for another 10 minutes.
During both stages the disk is being actively used.
It would be nice to get a correct process status.
The "-nobanner" option is also not working - on a first run the program requires to accept EULA anyway. -
Hi all
Since it seems there is not going to be a fix anytime soon (I say this since several people said they have asked and contacted the developer, and nothing happened),
I would like to suggest a simpler idea:
Can anyone who has the contact information of Mark Russinovich, contact him and ask him to put an official link for downloading v1.61 here on the website?
From what everyone says, this version does not have the problem,
so an official download source would be a great solution..
This will really help anyone who is getting to this thread..
-
Until a fix is posted https://web.archive.org/web/20160606061205/https://technet.microsoft.com/en-us/sysinternals/sdelete.aspx has version 1.61 from a site that many would consider reliable.Image already added
-
-
Question is: is it safe to cancel SDelete when it has reached 100%?
In -z mode it seems to write to X:\SDELTEMP just fine.
So I cancelled SDelete at 100% by pressing Ctrl+C.
Looking at the disk with FTK Imager Lite, the [unallocated space] is filled with zeros. -
Until a fix is posted https://web.archive.org/web/20160606061205/https://technet.microsoft.com/en-us/sysinternals/sdelete.aspx has version 1.61 from a site that many would consider reliable.Image already added
Thank you UncleT
That's a terrific solution.
It worked.. -
-
Small Update:
I used Defraggler:
https://www.piriform.com/defraggler/builds
and got excellent results: 11.5GB turned to 4.7GB
Note that there is a portable version, so no need to install anything.. -
-
default tool is fine. all 3rd party tools are snakeoil, which improve nothing.
Obviously not true. Advanced defraggers have options to move files to a either the start or end of the drive and if the goal is to minimize the size of a virtual disk you want all files at one end before you zero the free space (if the virtual disk is also compressed because longer runs of zero blocks will compress better).
This is also useful for real physical drivers. Stuffing large video files etc. at the end of the drive (the slow part of the drive) so the faster parts are free for other things. -
-
Some objective test results for v2.01.
[S: is a NTFS drive with 9.00GB free]Timer 1 on: 12:43:31
SDelete - Secure Delete v1.61 [32-bit. No 64-bit version]
Copyright (C) 1999-2012 Mark Russinovich
Sysinternals - www.sysinternals.com
SDelete is set for 1 pass.
Free space cleaned on S:\
1 drives zapped
Timer 1 off: 12:47:12 Elapsed: 0:03:40.76
Timer 1 on: 12:47:12
SDelete v2.01 - Secure file delete [32-bit.]
Copyright (C) 1999-2018 Mark Russinovich
Sysinternals - www.sysinternals.com
SDelete is set for 1 pass.
Free space cleaned on S:\
1 drive cleaned.
Timer 1 off: 12:54:23 Elapsed: 0:07:11.15
Timer 1 on: 12:54:23
SDelete v2.01 - Secure file delete [64-bit.]
Copyright (C) 1999-2018 Mark Russinovich
Sysinternals - www.sysinternals.com
SDelete is set for 1 pass.
Free space cleaned on S:\
1 drive cleaned.
Timer 1 off: 13:01:37 Elapsed: 0:07:13.93
So v2.01 is about 2x slower at clearing free space than v1.61. It also "hangs" at 100% for some minutes. I'm sticking with v1.61. -
As late as version 2.1 SDelete64.exe is still hanging at 100%. Luckily 2.04 is out now and does not have the issue. My usage is to do a full disk wipe after a clear-disk PowerShell command and a reference to a disk number from WinPE. This 512GB SSD wipes at 1000MB/sec and finishes in 10 minutes.
The 0 is the disk number and I'm only doing one pass so my task sequence progress bar can count up to 3. I am also using serviceui.exe so that you can see the % complete during each pass.
Sdelete64.exe -p 1 -c -z 0
- Proposed as answer by mplichta Monday, August 23, 2021 7:57 PM