Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

Can I use a backup image to wipe free space?

//
I need to wipe a group of computers for resale. But I’d like to retain the operating system and the drives, if possible. Does an image backup retain any traces of deleted files? If not, can I copy the hard drive image then wipe the computer and restore the image to be safe?

Yes, you can do that, but there are much easier ways to accomplish what you’re trying to do.

Become a Patron of Ask Leo! and go ad-free!

Wiping your machine manually

The approach that you’re suggesting is simply that you start by taking a complete backup image of the machine. Hopefully, you’ve been doing that anyway, but in this particular case, a full image of the machine is the starting point.

Typically, there’s an option whether the unused space is included in a backup image or not. Usually, there’s no practical reason for it to be and the default setting is to not include those unused sectors. As long you’ve done that, then your backup image would contain only the files that were actually on the machine at the time you did the backup.

What you’re suggesting then is that you wipe the drive with something like DBan, so that all of the disk surface is completely erased.

Then, you would restore the backup image, which would restore only the files that were actually on the drive to begin with. It also might do a nice job of defragmenting the machine at the same time. But the point is that all of the previously deleted files would be gone. They would have been wiped away and then your operating system and everything you wanted to keep could be restored.

Again, that works. The net result is that the unused space on that drive has been wiped.

You just may have done a lot more work than you actually needed to.

Using apps to wipe your machine

There are applications that will simply wipe the free space.
CCleaner Drive Wiper

  • CCleaner is probably the easiest and quickest. If you look at some of its tools, one of them is a free space wiper and it will do exactly what you’re asking about here. This Windows app makes sure that the area that was previously occupied by deleted files is now wiped and unrecoverable.
  • SDelete (Secure Delete) is a command line tool and it has an option to do a free space wipe.

Either one of those will solve this problem for you with fewer steps. Add defragmentation at some point (probably after you’re done) and you’ve got basically the same thing that you would have by using your backup-wipe-restore approach.

Posted: June 8, 2013 in: Backing Up & Backup Programs
Shortlink: https://askleo.com/6835
Tagged: , , , ,
« Previous post:
Next post: »

New Here?

Let me suggest my collection of best and most important articles to get you started.

Of course I strongly recommend you search the site -- there's a ton of information just waiting for you.

Finally, if you just can't find what you're looking for, ask me!

Confident Computing

Confident Computing is the weekly newsletter from Ask Leo!. Each week I give you tools, tips, tricks, answers, and solutions to help you navigate today’s complex world of technology and do so in a way that protects your privacy, your time, and your money, and even help you better connect with the people around you.

The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition

Subscribe for FREE today and claim your copy of The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition. Culled from the articles published on Ask Leo! this FREE downloadable PDF will help you identify the most important steps you can take to keep your computer, and yourself, safe as you navigate today’s digital landscape.



My Privacy Pledge

Leo Who?

I'm Leo Notenboom and I've been playing with computers since I took a required programming class in 1976. I spent over 18 years as a software engineer at Microsoft, and after "retiring" in 2001 I started Ask Leo! in 2003 as a place to help you find answers and become more confident using this amazing technology at our fingertips. More about Leo.

5 comments on “Can I use a backup image to wipe free space?”

  1. I understand what you are saying. But what if there was an old deleted copy of a spreadsheet under some of the files on your computer. Could someone then delete your present files and undelete the older file. I know thats pretty paranoid but the owners want tonbe sure before recycling these computers.

    Reply
    • Deleting the current files would have no impact since that doesn’t actually change the sectors where the data is stored. There are some exceptionally advanced (and expensive) techniques that can sometimes be used to recover overwritten data, but they’re … expensive, and require special equipment.

      Reply
  2. Recently when I was cleaning up some old pcs to sell or give away, I researched this issue and quite by chance found that Windows has a standalone utility to do this. It’s called cipher, and you need the /w switch. Apparently it also encrypts and decrypts data. Who knew?

    Reply
  3. Lester,
    When a file is deleted via Windows, only one byte in the label of that file is changed. Windows then places that file in the Recycle Bin. When you Restore the file from the Recycle Bin, all that happens is that byte is changed. When you Empty the Recycle Bin, Windows furether changes the label to indicate that disk space can now be used for any other file.
    So yes, it is possible that subsequently, the original file can be recovered in part or in full if all those segments of the hard drive used for the original file have not been overwritten. There are a number of programs of varying sophistication that can do that. Hence the need to wipe the disk by writing random data on all the segments not used for existing files.

    Reply
  4. If the object here is to prepare computer(s) for resale, then isn’t there a more serious problem here than just deleting data files? After all, the operating system and the applications are most likely licensed to the present user(s), and selling a computer with them still available is probably illegal. You could perhaps uninstall all the applications and all the data and sell the computer along with the license for the OS. But that seems like so much effort that it might just be easier to wipe the drive(s) and reinstall the OS before selling the computer along with the OS license.

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.