First of all, Microsoft Windows includes a capable defragmentation utility that you can invoke from the Tools tab of the Properties page for each of your hard disk drives.. The process r
Trang 1If just a few files are fragmented in this way, it’s no big deal Or if the particu-lar set of files that are fragmented are ones that you use a great deal, it becomes more of a problem And fragmentation can become a real detriment
to computing if you regularly deal with very large files: digital photographs, streaming video, and music are good examples
But one thing is certain: Left to its own, every computer will eventually slow down and lose available storage space because of fragmentation It’s designed right into the operating system
Defragger rock The bad news is that the larger your disk, as well as the more files it holds, the longer it takes for defragmentation to be done; in some situations the process can take several hours The good news: you don’t have to do it yourself First of all, Microsoft Windows includes a capable defragmentation utility that you can invoke from the Tools tab of the Properties page for each of your hard disk drives
Defragmentation mechanics
For years I’ve made a nearly handsome living describing how computers are very dumb but very fast By that I mean that they accomplish their wondrous feats not so much by innate intelligence but instead by brute force and blaz-ing speed (To multiply 7,845 by 12,687 the machine adds 7,845 to itself 12,687 times.) The same applies when it comes to defrag-menting a hard disk There is no magical algo-rithm or instant solution Instead, defragging works like this: The machine locates a block of unused space on the hard disk The bigger the space, the faster the defragmentation process will proceed
Under control of the microprocessor, the system picks up the scattered pieces of files one by one and copies them from their former
location to the unused space As the files are rewritten they are compacted and made con-tiguous to each other Once all the pieces of a file have been moved to a new location, the former location is cleared
As large, contiguous blocks of space are opened near the beginning of the disk, the rewritten files are copied again and moved to the most efficient location available
The process repeats itself over and over until the disk is as close as possible to this: a clean group of contiguous data and program files at the logical start of the disk, a block of clean, available workspace for the temporary needs
of the microprocessor, and a block of open space for new files and for the creation of new fragments as old files are edited
Trang 2Book III Chapter 3
1.Click Computer (or My Computer)
2.Highlight the drive you want to work on
3.Click Properties
4.Select the Tools tab
5.Click Defragment Now
See Figure 3-13
And if you want to go a few steps beyond the basic service included in Windows, you can buy one of several very sophisticated utilities that will generally
✦ Do the job faster
✦ May speed up your computer (using special algorithms that place the most frequently used programs in the places where the disk drive can find them fastest)
✦ Display a nifty color-coded chart that shows you before and after repre-sentations of a messy disk and a cleaned-up beauty
The most advanced utilities keep your hard disk drive defragmented on the fly.
Here’s what that means: Their utility will come to life and move files around any time it notices that your machine is not being tasked with other more immediate assignment So if you get up to go to a meeting or out to lunch, the defragmenta-tion program will churn away while you’re gone and then shut off the moment you return your fingers to the keyboard or mouse
Figure 3-13:
A defragmen-tation session is under way
in Windows Vista
Microsoft’s tool is capable but provides almost no information about its progress or results
Trang 3Among the best third-party defraggers:
✦ Diskeeper Professional from Diskeeper Corporation at www.diskeeper.com
✦ Norton 360 from Symantec Corporation at www.symantec.com Both of these products are intended to work in the background, essentially keeping your disk at or near full efficiency at all times See Figure 3-14 Some defragmentation programs are within products such as Norton SystemWorks, System Mechanic, and other maintenance-utility suites These products generally are to work on a scheduled basis; you might instruct them
to defragment your machine every Monday night beginning at 5 p.m., leaving your computer on for the night
Most third-party defraggers also paint a picture of the condition of your hard disk drive before, during, and after they do their work A seriously fragmented hard drive shows a report that looks like the aftermath of an explosion at a jellybean factory; afterwards you should see solid blocks of color denoting contiguous files and sections of memory set aside for use by the operating system for temporary storage See Figure 3-15
Figure 3-14:
The main control panel for Diskeeper allows setup
of automatic defragmen-tation; the utility runs
in the background
Trang 4Book III Chapter 3
Here’s a three-in-one tip for defraggers
✦ If you’re going to use a scheduled defragmentation utility (as opposed to
a background defragger), you will get better and faster results if you turn off the connection to the Internet while it is running; otherwise, new e-mail and other automatic activities that bring files to your computer slow down the process (sometimes to the point where the utility deter-mines it has to start all over again)
✦ Don’t let your drives get so fully packed that a defragger has no room to rearrange files In most cases, you shouldn’t fill up a drive to more than
85 percent of its capacity; that means leaving at least 15 percent available
to the utility Delete junk or move some files to external storage if you need to open up space
✦ Help save the planet while running a scheduled defragmentation by turning off your monitor It isn’t needed for the process; you’ll know the job is done when the hard disk activity light stops flashing
Figure 3-15:
A post-operative report from Diskeeper shows how nearly all files have been reordered into contiguous sectors The striped section is a portion of the drive claimed by the operating system for some of its work
Trang 5Cleaning up before defragging Before you defragment your disk using a manual program, clear away the dead wood:
✦ Cut down temporary files There’s no purpose in defragmenting files you don’t want to keep
✦ Empty the recycle bin If you’re certain you won’t need any of the files residing in the recycle bin, throw those away before defragging, too Windows includes a small utility called Disk Cleanup You’ll find it on the General Tab of the Properties for your hard disk; look for the Disk Cleanup button like the one previously shown in Figure 3-10
You’ll be able to clean up just your files, or those of all users on the com-puter On a laptop, the most common setup is to have a single user account After the utility calculates the amount of space you can clean up, it will offer you a report on what unnecessary files it found Click the check box along-side the types of files you want to clear off the disk
For most users, it is best to accept only the recommended disk cleanup options If you choose to go further, read and consider the descriptions of each before proceeding
A sample report is shown in Figure 3-16; here I have selected deletion of 11.7MB
of downloaded program files, temporary Internet files, and thumbnails that can
be safely deleted An additional 107MB of files occupy the recycle bin For a deeper level of cleanup, I could choose to delete hibernation files, although that would disable that function on the laptop
Figure 3-16:
Most people should accept only the recom-mended disk cleanup options
Trang 6Book III Chapter 3
Among the options for cleanup is removal of superfluous System Restore and Shadow Copies If you click this option, all restore points except for the most recently recorded one are removed
In theory, this should be acceptable if your machine is working properly; I don’t like the idea, though I’d rather find other ways to clear up space on
my disk and keep a full library of restore points just in case there’s a prob-lem I haven’t run into yet Some editions of Windows Vista also store previ-ous versions of files and backup images of system files created with Windows Complete PC Backup; these are called Shadow Copies Again, I would rather hold onto these just in case
Opening up space other ways
On a desktop machine, running out of available space on the original hard disk drive is a relatively minor problem You can replace the original boot drive with one of larger capacity (and transfer over the contents of the first drive) You can add a second internal disk drive Or you can plug in an almost limitless number of external drives that can be hidden away under the desk or on
a shelf
Things are less simple with a laptop Some models allow you to swap out the original hard disk drive with a larger replacement; transferring the contents from the first drive may require some fancy footwork including providing a temporary enclosure, power source, and data cable Adding an external drive is as easy as pie, but you may not want to lug around an extra box when you travel
So before I worry myself with the details of adding more real estate within a laptop, I try to find ways to reduce the ground clutter A lot of this has to do with the way I use my laptop: It isn’t my principal machine I use my laptop
as a traveling extension of my desktop machine, and for that reason I don’t need to have every last piece of software nor every data file
Here’s how to put your laptop’s hard disk on a diet: Remove any programs you don’t need on your travel companion Many programs offer their own uninstall utility Look for one as part of the application’s listing on All Programs
The Uninstall feature of Windows also offers a Change or Repair function for many programs This allows you to add or remove specific components or repair a problem by resetting the installation to its original condition You have no choice here — some manufacturers allow these advanced facilities, while others give you only the chance to remove their product
Under Windows Vista, you can uninstall many programs with this method:
1.Go to the Control Panel
2.Click the Programs and Features icon
Trang 73.Highlight a program
4.Take one of these steps:
• Double-click the filename
• Click the Uninstall/Change option on the page
The display includes the size of each program; you may be amazed at the bloated amount of space demanded by some little programs See Figure 3-17
Windows Vista users aren’t allowed to manually remove individual compo-nents of the operating system Some third-party utilities promise to do this
for you, but be very wary of using them Microsoft may add a component
uninstall feature in future Service Pack updates to Vista
A very similar facility is offered to users of Windows XP The icon on the Control Panel in that operating system is called Add or Remove Programs One advantage of Windows XP: There’s a command to Add/Remove Windows Components You can take away any program or utility that is part of Windows that you don’t require; if you change your mind later on, you can add it back on
Figure 3-17:
The Uninstall or Change a Program window allows automated removal or adjustment
to installed features of most software added to your operating system
Trang 8Book III Chapter 3
Make sure you have a legal CD or DVD copy of Windows XP before you remove any Windows component; you may need to install the disc in your laptop to add or replace a piece of software you chose to remove
Once you have slimmed down your machine’s programs, do these things:
✦ Look for any data files that you can take off the hard disk I keep my archival copies of files on my desktop machine as well as on external disk drives and DVDs attached to it
✦ Clean off any old files that have moved to your desktop machine
✦ Look for any automatic backup copies of work in progress stored to your disk by word processors and certain other programs; these are to help you recover from a system crash or power outage and serve no purpose once the completed file has been moved to your permanent storage device and archived from there
Using Third-Party Maintenance Programs
There’s Microsoft, there’s you and me, and then there are the third parties:
companies like Symantec, Diskeeper, McAfee, and others
For the vast majority of the readers of this book (and for the author) our computing world begins with Microsoft; although there are a handful of alternatives including various flavors of Linux and even the latest Apple Macintosh operating system You might assume you’re using a current ver-sion of Microsoft Windows
But thanks to a combination of the free marketplace and a boost from the U.S Department of Justice, Microsoft’s operating system was pried open so that a wide variety of utilities and extensions can be installed within or alongside Some of the utilities — including advanced maintenance programs, defragmenters, and security suites — are better than those included in Microsoft Windows and some are just different
Trang 10Chapter 4: Honk, Honk! Windows Backup and Restore Utilities
In This Chapter
Automating the backup process
Restoring files from a backup source
Using System Restore as a magic bullet (if you’re lucky)
Wait! Before you start your day’s work, make sure that yesterday’s efforts are safely secured
Centering your business and personal life around your computer is a high-tech good news/bad news story On the plus side you benefit from the impressive capabilities of word processors, spreadsheets, the Internet, and e-mail that permit you to perform almost all your tasks with ease The hard disk drive or other digital storage is where you keep your stuff — not in a shoebox under the bed or stacked in a drawer — and you can use your laptop’s brain to search for and display anything you’ve placed in electronic storage
Data centralization is at the heart of the bad news What would you do if you pressed the power switch on your laptop and nothing happened? What would you do if the laptop came to life but the hard disk drive had somehow been erased? What would you do if your computer were infected with a virus? And of particular concern to laptop users: What would you do if your laptop were stolen from your office, a hotel room, or an airport?
The answer to the bad news is relatively simple, although it requires a bit of planning and time investment: Make backups and keep them in a secure place
If you’re lucky you’ll never have to use them; if not, you’ll be very pleased with yourself when you can reach onto the shelf to solve the problem of a missing or corrupted file
Backing Up Before You Go Go
A backup is an extra copy of a file or a full folder of files that you keep in a
different location than the original (There’s not a lot of value in making backups and keeping them on the same hard disk drive as the original, and for that matter, it also doesn’t make a lot of sense to back up on a storage