|
6.5. Preventive Maintenance and Data RecoveryFace it: some sort of data loss is inevitable. Whether it's a single lost file or a dead hard diskwhether it's tomorrow or twelve years from nowit will happen. On that happy note, there is plenty you can do about it. First and foremost, there's no better method of disaster recovery than having a good backup copy of all your data. Any stolen or damaged hardware is easily replaced, but the data stored on your hard disk is not. Unfortunately, hindsight is 20/20, and if you didn't back up, there's not much you can do about it after the fact; even if your computer equipment is insured with Lloyds of London, once your data is gone, it's gone. So, we'll begin our discussion with some preventive maintenance before covering any disaster recovery techniques. 6.5.1. Quick, On-the-Fly BackupsIn its simplest form, a backup is a copy of your data. Now, a full system backup, as described later in the next topic, is obviously valuable, but often too involved of a procedure to practice often enough to be entirely effective. While you might perform a full backup once a week or once a month, you can do a quick backup of your most important files several times a day. No special software or hardware is required, and, best of all, it will only take a few seconds. The following two solutions are remarkably simple, but the idea is sound, and if you make a habit of making these quick, on-the-fly backups, it will save you hours of work. 6.5.1.1 Solution 1: Simple copyThe next time you've put a few hours into a document, open the folder in Explorer, and make a duplicate of the file by dragging it to another part of the same folder with the right mouse button and selecting Copy Here. See Section 2.2.3 for more information on this function. Then, if you screw up a file you're working on, if it gets accidentally deleted, or if it gets corrupted by a system crash, you'll have a fresh backup right in the same folder. 6.5.1.2 Solution 2: Simple ZIPIf you've followed the advice in Section 2.2.8, your files will be organized by project rather than application. At the end of the day (or even several times a day), just right-click the folder of a project on which you've been working, select Send To, and then select Compressed (zipped) Folder. A new .zip file containing compressed versions of all of its contents will appear next to the folder in a few seconds. If you then need to retreive a file from the backed-up folder, just double-click the new .zip file.
See Section 2.2.9 for more information on this mechanism. 6.5.2. Back Up Your Entire SystemThere are more ways to back up your data than to store it in the first place. The sole purpose of a backup is to have a duplicate of every single piece of data on your hard disk that can be easily retrieved in the event of a catastrophe (or even just an accidental deletion). Imagine if your computer were stolen and you had to restore a backup to a brand-new computer. Could you do it? If the answer is no, you're not backed up. You need to be able to complete a backup easily and often, to store the backup in a safe place, away from the computer, and to retrieve all your data at any time without incident. If it's too difficult or time-consuming, odds are you won't do itso make it easy for yourself. A bare-minimum backup could be little more than a single CD or floppy diskette with your last three or four important documents on it. It's better than nothing, and it does protect your most recent work, but what about your email, your web browser bookmarks, and the documents you wrote six years ago? I know what you're thinking, because I've heard it a thousand times: nothing on my computer is really that important, so it's really not worth the time to back up. Okay, assume that's truehow long would it take you to reinstall Windows and all your applications, install all your drivers, reconfigure all your hardware, and customize all your toolbars? If you have a full backup of your system, the answer is not only "not long," but "no problemo" as well. Ideally, you should be able to back up your entire hard disk on a single piece of media. We won't even entertain the idea of floppies, so think about investing in a dedicated backup solution. The hardware you use should be fully supported by Windows XP, and the backup media (tapes, cartridges, or disks) should be cheap, reliable, and readily available, and you should be able to use them over and over again. The backup solution that is appropriate for you depends on your work habits and your available funds. Tape drives, optical drives, removable cartridges, and recordable CDs are all getting cheaper, and manufacturers are competing for your business. While removable cartridge drives (Iomega Zip drives, recordable or rewritable CDs, and even recordable DVDs) are great for quickly archiving data (long-term storage of important documents or projects), they still aren't as appropriate as tape drives for repeatedly backing up entire systems and restoring them in the event of a disaster. Removable drives and CDs use random access, meaning that you can simply open Explorer and read or write to any file on the media immediately. This may be convenient in the short run, but this convenience comes at a price: the media used for these types of backups can be quite expensive (per megabyte) and, more importantly, the backup procedures for random-access drives can be more labor-intensive than for tape drives. Tape backup drives are still the most cost-effective, reliable, and convenient method for backing up and recovering your system after a disaster. The most obvious caveat is that tape drives use sequential access, rather than random access, meaning that they require special backup software and tend to be slower than comparably priced removables, especially when used for restoring single files. However, remember their key advantage: you can easily and painlessly duplicate the contents of your entire system on one piece of removable media and restore some or all of that data just as easily. Although tape backup software may seem awkward on the surface, it's designed to allow you to perform a backup in a single step and without user intervention. Good backup software will also make restoring easy; the best programs keep catalogs of your backups, allowing you to find a single, previously backed-up file and get it back quickly and painlessly. Now, many manufacturers of the various competing products and technologies market their products as backup devices, which isn't necessarily accurate. Basically, you need to find the system that works best for you and fits in your budget. Do some research before investing in any one technology, and make sure it truly suits your needs for a backup device. Try this: add the cost of the drive you're considering with the media required to store the entire contents of your hard drive twice, and compare it with other solutions. Table 6-2 shows six example technologies and the estimated costs associated with each, at the time of this writing, to back up a 30 GB hard drive. These show that initial bargains are rarely good deals.
Naturally, the prices and capabilities of the various technologies will change as quickly as the weather, but the methodology is always the same. Aside from the price, the most important figure to look at is the "Cartridges per 30GB backup"; if it's more than one, it means you're going to have to sit and swap cartridges during each backup. If it's that difficult, odds are you'll never do it. Do your research, and it will save you time and money in the long run, not to mention that extra peace of mind. 6.5.3. Installing Microsoft BackupSome sort of backup software has been included with every version of Windows since Windows 3.1 more than a decade ago. Microsoft Backup (ntbackup.exe), a scaled-down version of the now-defunct, yet excellent Backup Exec Desktop by Veritas (http://www.veritas.com), is installed by default in Windows XP Professional edition, but not in Windows XP Home edition. The implication that backing up is a feature required only by "professional" users and network administrators is one of the reasons nobody backs up their data. Backup is not available in Control Panel Insert your Windows XP installation CD, and close the annoying welcome screen that appears if you haven't disabled CD AutoPlay, as described in Chapter 4. Open Explorer and navigate to \valueadd\msft\ntbackup. Double-click the Ntbackup.msi file to install the software (or right-click the file and select Install). When installation is complete, a new Backup entry will appear in your Start Menu, in All Programs Start When Backup first starts, you'll get the cumbersome Backup Wizard. To get out of the wizard and use the more straightforward main window, turn off the Always start in wizard mode option, and then click Cancel. Then, start Backup again, and choose the Backup tab to get started. Although this is a good program, it does lack some of the capabilities of the full-featured software, such as a catalog of all backed-up files, a dedicated scheduler, and support for additional hardware. Catalogs, for example, keep track of all your backups, allowing you to choose a single file to be restored and have the software tell you which tape to insert.
Because most backup devices come with some sort of dedicated backup software, you may never need Microsoft Backup. Since most backup software is pretty awful, however, you should try all the alternatives available to you before committing to a single solution. 6.5.4. Tips for a Better BackupThe following tips should help ensure you will never be without adequate data protection, whether you've already invested in a backup solution or not.
6.5.5. Recovering Your System After a CrashThe purpose of backing up is to give you the opportunity to restore your system to its original state if something unforeseen should happen to your hard disk, whether it be theft, fire, malfunction, or just user error. You'd be surprised at how many people back up their system without having any idea how to restore it later should the need arise. The backup doesn't do you any good if you can't get at your files later, so it's important to take steps to make sure you can restore your system from scratch if necessary. The most important consideration is that the software you use to restore your files be the same one you used to back them up. This means installing Windows and then installing your backup software before you can even begin the restoration process. Now, reinstalling Windows doesn't necessarily mean that you lose your Windows preferences and must reinstall all your applications. All you need to do is to reinstall Windows (as well as the software and drivers for your backup device, if necessary) to a state sufficient only to run your backup software. You'll also want to install this temporary version of Windows in a different folder name than what was used previously. See Chapter 1 for issues concerning installing and repairing Windows, as well as setting up a dual-boot system for the purposes of this solution. You may also need the Windows Recovery Console, discussed at the end of this chapter, to help recover a broken system. 6.5.6. Protecting Your HardwareAlthough this section focuses mostly on backups, you shouldn't neglect your hardware. All hardware is sensitive to heat, light, dust, and shock. Don't block any vents on your computer or your monitor, and routinely vacuum all around to remove dust (too much dust can cause your components to overheat and your disk drives to fail). For desktop computers, make sure you have at least one functioning fan in your computer's power supply (preferably two), one mounted directly on top of your processor and one mounted on the main chip on your video card; an additional fan in front won't hurt, either. If you can't hear your computer, odds are it isn't being adequately cooled. Make sure that air can flow freely inside from the front of the computer to the back; look for a mass of cables blocking the passage of air. Overheated components can cause system crashes, slow performance, and data loss. If your computer and every external peripheral are connected to a surge protector, the possibility of damage by an electrical surge is virtually eliminated. Many surge protectors also allow you to run your phone cables through them, protecting them from phone line surges that can damage your modem. And if you live in an area susceptible to blackouts or brownouts, you might consider an uninterruptible power supply (UPS), which will eliminate the problem of lost data due to lost power. (Naturally, your battery-powered laptop has a UPS built in.) Make sure all your cables are tied neatly behind the computer so pins and plugs don't get broken and plugs don't become loose; pets love to chew on cables, pulling them out and otherwise mangling them. And tighten all those cable thumbscrews. Keep floppies, tapes, and other magnetic cartridges away from your monitor and speakers; they're just big magnets that can turn disks into coasters in no time. And sit up straightno slouching! 6.5.7. Create a Boot DiskLong gone are the days when an entire operating system can be fit on a single floppy diskette. Actually, many would argue that the floppy drive is essentially obsolete, with no real purpose in a modern computer, at least as long as there a network connection or CD writer is available to transfer files. However, from time to time, a floppy can still prove useful. In some earlier versions of Windows (e.g., Windows 9x/Me), there was a built-in feature for making a bootable floppy, but it only installed a few files on a blank disk that essentially allowed you to boot into DOS and then start or repair the Windows installation on your hard disk. Being able to boot off a floppy also meant that you could access your files if Windows wouldn't start at all. Now, if you have a bootable floppy made on a Windows 9x/Me system, you can use it to boot any modern system, even if it is running Windows XP. However, if your hard disk uses the NTFS filesystem (discussed in Chapter 5), you won't be able to access your hard drive from the DOS floppy (since NTFS isn't supported in those versions of Windows). And even if you're still using the FAT32 filesystem, which will be readable from a Windows 9x/Me boot disk, you won't be able to start Windows XP or effect any substantial repairs from such a floppy. Essentially, if you've become accustomed to being able to boot to DOS in earlier versions of Windows, you'll have to adjust your strategy, but that doesn't mean you'll have to live without any safety net at all. There are several ways in Windows XP to fill the holes left by the absence of DOS:
Now that I've effectively talked you out of creating a bootable floppy in Windows XP, I'll show you two ways to do it. 6.5.7.1 Make a Windows XP boot diskFollow these steps to make a boot diskette that will load the copy of Windows XP on your hard disk. Use this when your hard disk won't boot by itself, but Windows appears to be undamaged. Use the Windows Recovery Console (see the next section) to repair the problem.
This bootable floppy won't get you to a command prompt, as you might expect. If you need access to a non-Windows command prompt, you have two options: use the Windows Recovery Console (see the next section), or create a Windows 9x boot disk. 6.5.7.2 Make a DOS boot diskHere's how to make a diskette from within Windows XP that will boot you into DOS, just like the old days:
When you're done, you'll have a disk that will boot into the last version of MS-DOS ever released by Microsoft: Windows Millenium (also known as Windows Me). This can be really handy if you're trying to resurrect an older computer running Windows 9x/Me, but it will be of minimal use in Windows XP. Even if you were to boot a Windows XP system with this disk, you most likely wouldn't be able to see any of its drives, because Windows Me isn't compatible with NTFS volumes. See "Choosing the Right Filesystem" in Chapter 5 for more information.
6.5.8. Using the Windows Recovery ConsoleThe Windows Recovery Console (WRC) is a tool included with Windows XP, used to repair the operating system when it won't start, as well as perform some other tasks not otherwise possible from within Windows.
The Windows Recovery Console allows you to do the following:
The whole point of the Windows Recovery Console is that it can be started when Windows isn't running. To get into the WRC, start by booting up off the Windows CD, as described in "Installing Windows XP" in Chapter 1. After Setup loads all of its drivers, press R to start the Windows Recovery Console.
Regardless of how the WRC is started, you'll be greeted with the following friendly welcome message: Windows NT(TM) Boot Console Command Interpreter. WARNING: This is a limited function command prompt intended only as a system recovery utility for advanced users. Using this utility incorrectly can cause serious system-wide problems that may require you to reinstall Windows to correct them. Type 'exit' to leave the command prompt and reboot the system. 1: C:\WINDOWS 2: D:\WINDOWS 3: E:\WINNT Which Windows installation would you like to logon to (enter to abort)? Naturally, the operating systems installed on your system (and thus the options available to you) may be different. In most cases, choose 1 here; if you have more than one Windows installation, choose the one you wish to repair, and log in using your Administrator password.
Once you've logged in, the WRC looks and feels like the Windows XP Command Prompt (see Chapter 10). However, it's important to realize that it's not exactly the same: for example, you can execute some of the standard DOS commands (albeit in a more limited fashion), but you won't be able to launch DOS or Windows programs. 6.5.8.1 Windows Recovery Console commandsThe following DOS commands, documented in Chapter 10, can be used in the Windows Recovery Console: attrib, cd, cls, copy, del, dir, exit, md, more, ren, rd, set, and type. In addition, you'll be able to use the chkdsk utility discussed earlier in this chapter, the DiskPart utility discussed in "Working with Partitions," earlier in this chapter, as well as the expand, format, and net utilities.[10]
The following special commands are available in the Windows Recovery Console:
6.5.8.2 Lifting Recovery Console restrictionsBy default, the attrib, copy, del, dir, and ren commands don't support wildcards (* and ?) when used in the Windows Recovery Console. While this is a safety feature intended to prevent unintentional damage to the system, it can be frustrating (to say the least) when you actually need to get something done. To lift this restriction, type: set AllowWildcards = true
Another restriction is one placed on the cd command, where WRC will only allow you to change to certain directories. To fix this, type: set AllowAllPaths = true To enable access to the floppy drive, type: set AllowRemovableMedia = true Finally, to turn off the prompt that appears when you try to replace a file with the copy command, type set NoCopyPrompt = true Unfortunately, these are only temporary settings and are lost as soon as the system is restarted. For more information, see the set command in Chapter 10.
|
|