Wednesday, April 03, 2002

Backing up your system - the Ghost story

Wednesday, April 03, 2002

Wouldn't it be great if every time something went wrong with your Windows set-up you could just click a few buttons and have everything restored to its original state in a matter of minutes? Well it can be arranged... more quickly and painlessly than you would imagine.

What you need to do is get hold of some 'imaging' software. What this will do is store an exact copy of your fully functioning Windows installation in a compressed format, which can at a later date, be restored to its former glory when things start to go wrong. The best imaging program around at the moment for the Windows platform is without a doubt Norton's Ghost. This is effortlessly simple to use and runs from DOS so is capable of backing up all those essential system files which are inaccessible while you're actually within the Windows environment.

This backup process isn't as complicated as it sounds. All you have to do is store your Windows set-up on one partition of your hard drive and backup to a separate partition. The reason for this becomes clear after you have restored your backup to a partition that is already full of valuable data and find that it has all been wiped out as a result! Unless you are using Partition Magic you will have to start with a formatted hard drive and use 'fdisk', a DOS executable which comes as standard with Windows 95, 98 and Me. Make sure you are in DOS (not within the Windows environment, but in real DOS mode), now type fdisk and select 'create new partition'. It is advisable to use somewhere between 2 and 5 gigabytes of your hard drive for your boot partition - this will contain your Windows installation and any other essential applications. Now create an extended partition to be used for everything else you wish to store on your hard drive. Re-boot your computer and format both partitions using the 'format' command followed by whichever letter has been assigned to your drive(s), not forgetting to append a colon to the end like so: 'format c:'. Re-install Windows to your c: drive and then backup the whole partition to your extended partition using Norton Ghost.

Of course, if you already have more than one hard drive installed you can skip all of this and simply back up to your second drive, although this will involve wasting a hell of lot of space. The main reason for all this partitioning is to make more efficient use of the space you have available. When you backup a partition, you can't select which bits you want to compress and which bits you don't - it's either all or nothing. For example, if you have two 80 gigabyte drives and you store your Windows installation on one of them and everything else on the other, when you backup what's on your boot partition everything is compressed and stored in a single file, not just your Windows and Program Files folders. The upshot of this is that when you decompress this image file back onto your drive you lose everything else which you may have copied to it after making your backup, and this is why it makes sense to have a small-ish partition just for Windows.

Once you have installed Ghost within the Windows environment, exit to real DOS using your boot disk and enter your Ghost installation directory. Now copy the main executable (ghost.exe) to your extended partition and run it from there - it is imperative that you don't run the file from the drive you wish to backup. Since this is the only file you will need to perform a successful backup or system restoration within DOS, by backing it up at this stage you can ensure that you will never need to re-install the full Windows application ever again should the need for a fresh drive image arise. The main executable, being a mere 600kb in size will fit very neatly onto any kind of boot media you care to use (floppy disk, CD, flash drive etc) so you may also like to store a copy of it there. I'm sure the nice chaps at Norton spent a long time programming the extra Windows utilities which come as standard with Ghost, but in my opinion they are nothing more than gratuitous fluff.

You look like you've seen a ghost! Oh, I see you've met the GUI then. If you click on the menu button in the bottom left hand corner of the screen we can steam ahead with the backup process. Simply select the 'create image' option and choose the drive you wish to back up as well as the drive you want to store the image on, pressing enter in between to confirm your preferences. Next give your image-to-be a suitable name and press the 'OK' button. Give Ghost a few minutes to work its magic and voila, everything should be safely backed up to a single compressed archive, ready and waiting to save your PC from the dreaded blue screen of death in the future. It's worth remembering at this stage that these system images are merely standard data files like any other so can be shunted around, deleted, backed up to a CD or DVD, chewed up and spat out, sat on and so on and so forth.

Now when Windows inevitably starts doing strange, inexplicable things or simply refuses to boot (curse you Microsoft!), you can just format your primary partition and restore your original Windows set-up using Ghost. This process can seem a bit daunting at first so let me explain it in a bit more detail. Before doing anything as a drastic as wiping out your Windows partition, make sure you have created a boot disk for yourself. This can be done via your Windows control panel in Windows 95/98 or Me, but is a bit more awkward in Windows 2000/XP because the data used to construct official boot disks is not contained within the operating system itself. The constituent data of the standard Windows 2000/XP boot disk, well boot disks actually, occupies four floppies. God only knows what the justification for this is. Regardless, if you can't find the 'floppy boot disk set construction kit' disks which came supplied with your Windows setup CD, or refuse to be party to this exercise in data obesity, you can use Norton's 'make boot disk' command from within Windows (OK, I admit this is one of the less fluffy features of the Windows interface!).

When you've created your boot disk, stick it in the floppy drive and reboot your computer. Providing your computer has been setup to first read from the floppy drive before looking for the Windows installation on your hard drive, your boot disk will take the reigns and boot your computer into real DOS mode. If on the other hand, when you reboot, your computer ignores the floppy disk completely and boots into Windows as usual you will have to edit your BIOS settings. To do this, press the reset button, wait for your computer's stats to appear in that familiar black and white table and press the delete key (if you're unsure of exactly when to do this just keep hammering your delete key until something happens, or look out for the "press the del key now to enter your BIOS" message!). From the basic settings section of your BIOS menu you should be able to select your first, second, third and fourth boot device. Make sure your floppy drive is selected as the first boot device followed by your hard drive, save the settings and reboot once again.

As soon as you arrive at the DOS prompt, format your Windows partition using the command 'format c:/q' - the q switch allows you to format a previously formatted drive in a matter of seconds rather than many minutes or even hours. If you've never formatted your drive before, leave out the q switch and commence thumb twiddling while you wait. Formatting isn't strictly necessary at this stage as Ghost will overwrite everything for you, but I like to be thorough to make sure everything runs smoothly. Now, to restore your compressed image file, enter the directory where your Ghost executable resides using the 'cd' (change directory) command and type 'ghost'. Browse through the menu until you come to the 'restore image' option, select it, locate your image file and then press the 'OK' button. Tell Ghost where you want to extract it to (i.e the c: drive) and click 'OK'.

When the decompression process is complete, eject your boot disk if you haven't already done so, reset your computer and let it boot into Windows as usual. And finally, taking a deep breath, step back from your screen in astonishment to admire your brand new, good-as-the-day-it-was-first-installed Windows setup. Once you recover from the shock of discovering how easy all this was, you can proceed to fill up your computer with useless programs and games that you'll never use, safe in the knowledge that you can wipe the whole lot out and restore your setup to its former glory whenever you like with a few effortless steps.


◄Design by Pocket, BlogBulk