Drive images – filling free space with zeros



So, one of the things I’ve been doing is drive imaging. I’ve got 3 systems that are to be identical (based on, of all things Freedos…) So, I thought it was a perfect opportunity to dust off cloning/imaging software. So, I’ve been using the excellent g4l (ghost4linux) which is now up to v 0.22 (I make use of this for trying to rescue failing hard drives too as it includes dd_rescue). Anyway, the new machines have 80GB drives and the lzo compressed images are running ~450MB…. but one of my questions was making sure that it was as small an image as could be. I found that there are a few ways to squish the image file more and that it mostly revolves around filling the empty drive space with zeros.


Here’s a mirror of ftp://fedoragcc.dyndns.org which has a number of tools, including blank6.exe for dos (which creates empty 2gb files until the disk is full, then deletes them.) There’s also cleandrive which does the same thing for a dos/linux system (basically dd with /dev/zero as the input file and /dummyfile as the destination, it fills, runs out of disk space and then it deletes /dummyfile. Really simple concept but it could squeeze out some space.

On a fresh install to a brand new hard drive it was more trouble than it was worth, but I can see how a “lived in” install would certainly benefit. (I should mention that this would be a decent way to make it harder to recover deleted files – certainly not as secure as filling the space with a random hash, and rehashing, but… don’t do this if you’ve just deleted a file and hope to recover easily.)

Related Posts

Blog Traffic Exchange Related Posts
  • Grisoft AVG Antivirus and other antivirus alternatives Okay, so we know that having an antivirus scanner on a windows desktop is VERY necessary. Especially if it's a system that has any contact with the outside world. So, what to choose. Well, of course there's Symantec Norton Antivirus, there's McAfee and a few other less well known (Kaspersky,......
  • Windows cleanmgr takes too long at compress old files Here's a quick fix for Windows 2000 and XP when using cleanmgr to clean out temporary files. I've run across many systems that it just freezes (or takes way too long) calculating space saved by compressing old files, or hangs just saying "compress old files". Well, here's one way to......
  • Using a linux livecd for Data recovery This one makes into the hardware AND software categories. I don't remember how many times I've replaced a failing hard drive. Usually the biggest headache and anxiety is if you'll be able to get any data off of the old drive. Sometimes if luck holds and the system can read......
Blog Traffic Exchange Related Websites
  • Canon 60D officially announced It's officially announced! The successor to the successful EOS 50D, the EOS 60D, will hit the stores this September. Canon EOS 60D The EOS 60D will have a three-inch Vari-Angle Clear View LCD screen, EOS Full HD video recording with manual overrides including audio level control, and in-camera functionality for......
  • Counting Down to Quality There are five common errors that builders make in the efficiency of energy, resources and health. There are far too many green builders out there that are completely missing the mark. There are five mistakes that are being perpetrated, but that you can avoid easily with the right know-how. #5:......
  • An A-Z Index of the Bash command line for Linux From SS64.com:   adduser Add a user to the system addgroup Add a group to the system alias Create an alias • apropos Search Help manual pages (man -k) apt-get Search for and install software packages (Debian/Ubuntu) aptitude Search for and install software packages (Debian/Ubuntu) aspell Spell Checker awk Find......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site