Showing posts with label sdelete. Show all posts
Showing posts with label sdelete. Show all posts

Monday, July 6, 2009

Optimize Windows Vista Boot

What you should do to conserve and optimize disk space and boot time.

1) After download software like Firefox, after installation please delete the installer.

eg. Setup.exe

New Versions will come out and internet download speeds are so fast, so there is no point keeping it.

2) Do this weekly:
Start>> All Programs>> Accesories>> System Tools>> Disk Clean Up

Check Everything Except for Hibernation File.

Or download and install a autodiskcleanup script I created

CCleaner is a extra ware that does the same thing it uses System Resource hence I don't use this.

3) Open Control Panel >> Administrative Tools >> Services
Disable "SuperFetch"
Stop "Superfetch"
Reason being Superfetch isn't very efficient, very often it overfetches Programs you rarely use, increasing boot time as a result.

4) Clean temporary Directories.
They are:
C:\Users\{Your User Name}\AppData\Local\Temp
C:\Windows\Temp
C:\Windows\Prefetch (Delete the ReadyBoot Contents before ReadyBoot folder)
I have created a batch file to kill superfetch.
Download and run with Administrator permission here (Superfetch Killer)
5) Here is a Windows Batch File that clears useless file recursively in all directories.
Batch file is provided by mydigitallife

Open in Notepad to see the script content.
To Run, Right Click "Run as Admin"

Next run sdelete to zero the harddisk space and return all unused space

Use the command:
sdelete -c
After that do a Disk Defragmentation and Reboot

Using this method my Acer Aspire 4530 now boots in 5 Rolling Bars instead of the previous 18 &
My 5 year old Desktop has the following specification:
Intel Pentium 4 HT 2.8GHZ 512KB L2 Cache (NorthWood)
4GB DDR RAM 400MHZ
250GB WD 16MB Buffer Cache
875P Motherboard
Currently the dinosaur is running Windows Vista rather speedily so try it!


Thursday, May 14, 2009

Reformating & Disk Erasure of Harddisk

For some of you who seldom perform OS re installation you might not know the differences clearly.
First, reformatting is usually done when the operating system is corrupted beyond repair.
Usually when your machine is bogged down a lot of malware, reformatting solves the issue faster than finding fixes for each malware.
Personally, I prefer reformatting because certain types of malware corrupts System Files beyond repair.
What reformatting does is that it destroys the partition tables and recreate them.
In Windows it would be C:\ partition.
The old data is still present but it is no longer readable by normal methods as all the references to the old data is overwritten (It is like the content page is destroyed hence the book appears as new because all indexes are gone, the old data is still present but there is no link to access them properly) but this is a "as good as new" for end users who want a new OS installation.

Disk Erasure Tools is usually used by organizations with highly sensitive information.
Tools such as DBAN or Secure Erase removes all traces of data by overwriting the whole hard disk with other data.

Differences between DBAN and Secure Erase
  • DBAN writes by Sector therefore when bad sectors are redirected data erasure maybe incomplete. However Secure Erase writes by Cylinders so complete data erasure is guaranteed.
  • DBAN takes a longer time compared to Secure Erase.
Why is this so?

Secure Erase is the standard included by hard disk manufacturers to clear sensitive data as a feature requested by governmental organizations.

Quoted from the Data Sanitisation Tutorial

Complete eradication of user data off drives can be accomplished by running data Secure Erasure utilities such as the freeware “HDDerase” downloadable here. It executes the Federally-approved (NIST 800-88) Secure Erase command in the ATA ANSI standard, which is implemented in all recent ATA drives greater than 15-20 GB. A similar command in the SCSI ANSI standard is optional and not yet implemented in drives tested. Normal Secure Erase takes 30-60 minutes to complete. Some ATA drives also implement the standard Enhanced Secure Erase command that takes only milliseconds to complete.

It uses a standard ATA set hard disk native instruction set to wipe the entire drive quickly.

You might have heard that 1 or 2 pass of overwriting might not be enough to clean the hard drive however this is not true as nowadays hard disk comes in high density capacity.
For a similar sized hard disk 5-10 years ago it can only contain like 30 or less GBs.
Hence when you overwrite such high capacity hard disk it is impossible to recreate the original data.

An analogy I can think of would be you have 2 trays of coloured arranged sand, one fine, one coarse.
If you imagine each particle to be data, if I substitute half with sand particles of another colour randomly, the tray with the fine sand will look more messed up then the tray with coarse particles.

Sdelete is like a DBAN inside Windows.
What it does using the -c (clean command) is it takes all the unused hard disk space and overwrites them.
You can also use it to overwrite the data region for a particular file.
Usually when you delete something in Windows it only remove the reference to the file and marks the region from occupied to unused.
When you use sdelete, it will remove the reference to the file and overwrites the region with random data before marking it from occupied to unused.

I hope you understand more about hard disk from this simple introduction.

Monday, February 2, 2009

Secure Delete

If you want to erase information on Windows I have a tool to recommend
It is Secure Delete from Sysinternals
Sysinternals Tool Suite is now part of Microsoft
Secure Delete is a free data erase program coded by Windows Guru Mark Russinovich

The advantages of Secure Delete is
  1. No installation required
  2. Part of a Windows OS troubleshooting suite
  3. It is free
  4. It is very easy to use however there is no fanciful GUI everything is done via command line
  5. It is a Microsoft Product so no compatibility issues
First go http://technet.microsoft.com/en-us/sysinternals/default.aspx
I have linked Secure Delete software directly here
Or you can download the entire Suite (Inclusive of other tools) here

Download & extract to a folder like (eg.C:\Program Files\SysinternalsSuite)

To add Secure Delete to Command Line do as follows:


Note: You need to ensure every entry is delimited by a ";"
As shown below
;C:\Program Files\SysinternalsSuite;

To use Secure Delete to delete files
  1. Select Command Prompt or Type "cmd" in Run
  2. Right Click "Run as Administrator"
Note:
You specify -p X where X is the number of times to overwrite the file so it can't be recovered

To clean the harddrive free space do as follows:


Again you can specify how many time you want to clean your C:\ by adding "-p X" to the command

Using SDelete

SDelete is a command line utility that takes a number of options. In any given use, it allows you to delete one or more files and/or directories, or to cleanse the free space on a logical disk. SDelete accepts wild card characters as part of the directory or file specifier.

Usage: sdelete [-p passes] [-s] [-q]
sdelete [-p passes] [-z|-c] [drive letter]

-cZero free space (good for virtual disk optimization).
-p passesSpecifies number of overwrite passes.
-sRecurse subdirectories.
-qDon't print errors (quiet).
-zCleanse free space.

Enjoy =)