Windows XP and 2000 Tips & Tricks UPDATE—brought to you by the Windows & .NET Magazine Network and the Windows 2000 FAQ site
THIS ISSUE SPONSORED BY
Qualstar's RLS-4455 Tape Automated Library
Tips & Tricks Web Summit
SPONSOR: QUALSTAR'S RLS-4455 TAPE AUTOMATED LIBRARY
Back-up windows shrinking? Qualstar's RLS-4445 Automated Tape Library provides up to 11TB of capacity with transfer speeds of up to 450GB/hr insuring data availability and fast disaster recovery. Proven AIT-3 tape technology provides rock-solid performance in a rackmount solution. Administration is easy with the Q-Link(tm) remote library manager. Configure, monitor, manage and diagnose from anywhere in the world! Qualstar's Simply ReliableSM design provides enterprise-class data protection. Click here for complete details.
November 11, 2002—In this issue:
- Q. What are the system and boot partitions?
- Q. When I add a static IP route, what value do I use for the interface?
- Q. How can I set the state of the Function Lock key on my new Microsoft keyboard?
- Q. How can I use Windows 2000's Disk Cleanup Wizard?
- Q. How can I start Windows 2000's Disk Cleanup Wizard from the command line?
- How Can You Reclaim 30% to 50% of Windows Server Space?
- Planning on Getting Certified? Make Sure to Pick Up Our New eBook!
4. CONTACT US
See this section for a list of ways to contact us.
(contributed by John Savill, FAQ Editor, firstname.lastname@example.org)
This week, I describe the system and boot partitions and tell you which value to use for the interface when adding a static IP route. I also explain how to set the state for the Function Lock key on Microsoft's new keyboards, how to use Windows 2000's Disk Cleanup Wizard, and how to start the Disk Cleanup Wizard from the command line without any user interaction.
Around the industry this week, Microsoft has released a cumulative update to Microsoft Outlook Express 6.0 Service Pack 1 (SP1), which you can download. A beta version of Movie Maker 2 for Windows XP is also available. Finally, Microsoft has also released several critical Windows updates, so please check the Windows Update Web site to ensure your system is up-to-date.
SPONSOR: TIPS & TRICKS WEB SUMMIT
ATTEND OUR FREE TIPS & TRICKS WEB SUMMIT
Join us on December 19th for our Tips & Tricks Web Summit featuring three eye-opening events: Disaster Recovery Tips & Tricks, Intrusion Detection: Win2K Security Log Secrets, and Merging Exchange Systems: Tips for Managing 5 Key Challenges. There is no charge for this event, but space is limited so register today!
Q. What are the system and boot partitions?
A. Windows uses a system partition and a boot partition during start-up. The system partition contains core files (i.e., Windows NT Loader—NTLDR—boot.ini, ntdetect.com) that the OS requires for the first stage of system start-up. The system partition is always partition 0 (active), which is typically the C drive. The boot partition contains the OS files, which are typically located in the \winnt folder, the \windows folder, and the \system32 subfolder. On a dynamic disk, the system and boot partitions are known as the system and boot volumes.
The system and boot partitions or volumes can be the same partition, but they don't have to be. There can be only one system partition. However, you can have multiple boot partitions in a multiboot environment—one boot partition for each OS you install on the system.
Q. When I add a static IP route, what value do I use for the interface?
A. The Windows IP subsystem uses IP configuration information (e.g., subnets, gateways) to automatically create a routing table that dictates how the OS will send IP packets to other host systems. To view the routing table on your system, open a command prompt and type
You'll see a routing table similar to the following sample table:
0x1 ........................... MS TCP Loopback interface
0x2 ...00 10 a4 8b 4b 8e ...... Intel(R) PRO/100+ MiniPCI - Packet
0x4 ...44 45 53 54 42 00 ...... Nortel IPSECSHM Adapter - Packet
0x20003 ...00 04 5a 0c 96 db ...... Instant Wireless - Network PC CARD
#2 - Packet Scheduler Miniport
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.100 30
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.1.0 255.255.255.0 192.168.1.100 192.168.1.100 30
192.168.1.100 255.255.255.255 127.0.0.1 127.0.0.1 30
192.168.1.255 255.255.255.255 192.168.1.100 192.168.1.100 30
184.108.40.206 240.0.0.0 192.168.1.100 192.168.1.100 30
255.255.255.255 255.255.255.255 192.168.1.100 2 1
255.255.255.255 255.255.255.255 192.168.1.100 192.168.1.100 1
255.255.255.255 255.255.255.255 192.168.1.100 4 1
Default Gateway: 192.168.1.1
Occasionally, the automatically generated routing table will be inaccurate and you might want to use the Route Add command to force a particular route for some IP traffic. You can obtain information about this command by typing
at the command prompt, but the basic syntax is
route -p add 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 1 if 0x20003
This sample command uses the -p option to add a persistent route (i.e., 0.0.0.0) that will still be in place, even after a reboot, to all destinations. This persistent route will use the 192.168.1.1 gateway with the highest priority (i.e., metric 1) on interface 0x20003 (i.e., wireless network). The last piece of this information is the interface. Determining which value to use for the interface can sometimes be confusing. Basically, you use the Interface List value that appears in the first part of the routing table. In the sample table above, the valid values are 0x1, 0x2, 0x4, and 0x20003. Although this information is easy to obtain, the first part of the routing table often scrolls off screen, leaving users unsure of what value to use.
Q. How can I set the state of the Function Lock key on my new Microsoft keyboard?
A. The new Microsoft keyboards assign actions such as Save or Open to the function keys. To enable the default functionality of a function key without performing the action that Microsoft has assigned to the key, you must press the Function Lock key before you press the function key. Unfortunately, the new keyboards don't contain a programmatic way to set the state of the Function Lock key. Therefore, you can't configure the keyboard to enable the Function Lock key by default; you must press Function Lock every time you start your machine.
Q. How can I use Windows 2000's Disk Cleanup Wizard?
A. Win2K introduced the Disk Cleanup Wizard, which checks a specified volume and estimates the amount of disk space you might be able to recover and use. The wizard can identify space savings in several areas, including
- program files that you've downloaded and installed
- temporary Internet files
- temporary files
- temporary offline files (Win2K only)
- offline files (Win2K only)
- Recycle Bin content
- offline Web pages (Windows XP only)
- setup log files (XP only)
- compressed files that you haven't accessed recently
- catalog files for the content indexer that the OS used during a previous indexing operation
To run the Disk Cleanup Wizard, perform the following steps:
- Start Disk Cleanup (go to Start, Programs, Accessories, System Tools, and click Disk Cleanup).
- Select the name from the displayed list of the disk volume that you want to check for available free space, then click OK.(The wizard displays the status as it checks the various elements—the wizard spends most of its time checking for files that it can compress.
- After the analysis is complete, the wizard presents a summary with options you can select for freeing up space. Select the options you want to use and clear those options you don't want to use.
- Under the More Options tab, you can take additional steps to free disk space, such as removing installed programs and Windows components as well as deleting all but the most recent system restore point. After you've made your selections, click OK.
- Click Yes to the action confirmation.
Depending on the volume you select, the wizard will display different elements. For example, a nonboot partition or volume will exhibit options related to the Recycle Bin, compressed files that you haven't accessed recently, and the content-indexer intermediary catalog files. After you click Yes on the action confirmation, a dialog box will appear that displays the progress of the disk cleanup. The wizard will exit after it finishes the cleanup.
Q. How can I start Windows 2000's Disk Cleanup Wizard from the command line?
A. To start the GUI version of the Disk Cleanup Wizard, open a command prompt and type
You can also create a configuration set to run the wizard without any user interaction at a future time. To create a configuration set, open a command prompt and type
cleanmgr \[/d<drive>:\] /sageset: <numeric between and></numeric></drive>
The /d option specifies the drive you want the wizard to clean up. If you don't specify a drive, the wizard will act on all volumes. If the volume you specify isn't the system partition or volume, the wizard will check for space that it can recover by performing actions only on the Recycle Bin and content-indexer intermediary catalog files. The /sageset argument dictates which parameters appear in the dialog box in which you select the cleanup options that you want to perform. The different numeric values associated with the /sageset argument correspond to different sets of parameters. Make your selections in this dialog box, then click OK.
Windows will save your configuration in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches registry subkey. To run the Disk Cleanup Wizard without user interaction, use the command
cleanmgr /sagerun: <numeric from to defined by></numeric>
The only visible indicator that the wizard is running will be a dialog box that shows the disk-cleanup progress and gives the user the opportunity to cancel the task. However, the user can ignore this dialog box and the wizard will perform the cleanup without requiring user confirmation. You can define up to 65536 sets of parameters; however, I don't think that many combinations actually exist.
(brought to you by Windows & .NET Magazine and its partners)
Attend our newest Web seminar, brought to you by Windows & .NET Magazine and Precise SRM, and discover the secrets. Steven Toole will also advise you on how to reduce storage growth and backups by 30% and how to reduce storage administration by 25% or more. Space is limited for this important Web event, so register today!
"The Insider's Guide to IT Certification" eBook is hot off the presses and contains everything you need to know to help you save time and money while preparing for certification exams from Microsoft, Cisco Systems, and CompTIA and have a successful career in IT. Get your copy of the Insider's Guide today!
4. CONTACT US
Here's how to reach us with your comments and questions:
- ABOUT THE FAQS — email@example.com
- ABOUT THE NEWSLETTER IN GENERAL — firstname.lastname@example.org (please mention the newsletter name in the subject line)
- POST TECHNICAL QUESTIONS — http://www.winnetmag.net/forums
- PRODUCT NEWS — email@example.com
- QUESTIONS ABOUT YOUR WINDOWS XP AND 2000 TIPS & TRICKS UPDATE SUBSCRIPTION? Email Customer Support — firstname.lastname@example.org
- WANT TO SPONSOR WINDOWS XP AND 2000 TIPS & TRICKS UPDATEemail@example.com