The Windows XP Layout

By Stu Sjouwerman

Date: Nov 7, 2003

Sample Chapter is provided courtesy of Que.

Return to the article


This sample book chapter looks at the file and folder structure created by a Windows XP installation, provides a roadmap for important programs, and discusses other issues related to file structure and layout.

When compared to other Microsoft operating systems, Windows XP has many important differences, ranging from capabilities to functions and security, but one rarely discussed area is the layout of Windows XP files and components.

NOTE

Although the terms folder and directory are synonymous, Microsoft typically prefers to use folder. This falls in line with its endeavor to simplify computing for nontechnical users who might more readily understand the concepts of files and folders (like a filing cabinet) rather than files and directories.

This chapter looks at the file and folder structure created by a Windows XP installation, provides a roadmap for important programs, and discusses other issues related to file structure and layout.

Windows XP Directory Structures

The Windows XP installation routine makes several changes to your hard drives. Windows XP uses two different partitions to store its information: a system partition and a boot partition. These partitions can exist on a single physical partition or on two physical partitions. Unfortunately, the way these terms are used is the reverse of common sense usage. The system partition is the partition containing the initial bootstrap components and the boot menu. The boot partition is the partition hosting the Windows XP root folder and all operational drivers and files.

The boot and system partition files can be located on the same partition, on different partitions, or even on different hard drives. However, the system partition must always be on the first hard drive in the system and must be an active primary partition. The boot partition can be a primary partition or a logical drive within an extended partition.

System Partition

Table 3.1 shows the files contained on the system partition for an x86 computer.

Table 3.1 Files Located on the System Partition for an x86 Computer

File

Description

NTLDR

Controls the operating system boot selection process and hardware detection before the actual Windows XP Kernel is launched. It requires that boot.ini, ntdetect.com, bootsect.dos (if dual booting), and ntbootdd.sys (if booting on a non-BIOS enabled SCSI drive; that is, scsi() is used instead of multi() in the ARC name in boot.ini) exist in the root system partition.

boot.ini

Contains the contents of the boot menu displayed by NTLDR. This file contains the default operating system selection, the timeout period for the selection, and an ARC name or pathname for each listed operating system boot selection.

ntdetect.com

Detects the major components of the computer before NTLDR selects a configuration and loads the Kernel.

bootsect.dos

Present only on dual-boot systems. NTLDR uses this file when the selected operating system is not Windows XP. Bootsect.dos in turn seeks out the OS-specific operating system loader file, such as io.sys for MS-DOS or os2ldr.exe for OS/2.

ntbootdd.sys

Used only on systems with SCSI drives that do not have on-board BIOS translation enabled. It is a copy of the device driver for your particular SCSI drive.

hiberfil.sys

Available if hibernation is enabled on the computer.


NOTE

When BOOTSECT.DOS is installed using the DOS-mode setup (for example, a Windows 98 startup disk), the file will still appear, even though it is not really a dual-boot system, meaning there is no COMMAND.com to boot into DOS. In this scenario, there is only one OS entry in the boot.ini file, and the boot selection menu does not appear.

Other files can appear in the system partition on x86 dual-boot and multi-boot systems. The addition of these files does not affect the function or capabilities of the required Windows XP boot files in the system partition. Installing multiple operating systems on a single computer with Windows XP Professional (or Home Edition) often requires a specific installation order or manual post-installation configuration changes. Both the Microsoft Windows XP documentation and TechNet include detailed articles on performing multi-boot setups with Windows XP Professional, Windows 2000 Professional, Windows Server 2003, Windows 95, Windows 98, MS-DOS, and OS/2.

Multi-booting Windows XP with non-Microsoft operating systems, such as Linux, often requires third-party boot and partition managers. For popular tools, see the "For More Information" section at the end of this chapter. Red Hat Linux contains two boot loaders—LILO and GRUB—that can also be used for a dual-boot configuration with Windows XP.

The system partition does not include any folders. It exists as a root folder only with three or more files. Having additional folders in the system partition does not affect the operation of boot files.

You might notice that the files in the system partition are among the files found on an Emergency Repair Disk (ERD). This should not be surprising because an ERD is used to restore files to the system partition if these files are corrupted, deleted, or otherwise destroyed.

Boot Partition

The directory structure and subsequent files installed into the boot partition are quite a bit more complex than those of the system partition. Table 3.2 describes the five folders created in the boot partition's root folder (normally the C:\ drive) during the installation of Windows XP.

Table 3.2 Folders Created by Windows XP in the Boot Partition's Root Folder

Directory

Description

Documents and

This folder is used to hold the configurations for each user

Settings

who accesses the system. In Windows NT, this information was stored in the \Windows\profiles folder.

Program Files

This folder is the default installation location for Windows applications.

System Volume Information

This folder stores all disk permission and security information.

Recycler

This is not a true folder; instead, it is the system-controlled temporary repository for deleted files. You can access its contents by launching the Recycle Bin tool from the desktop.Note that this folder does not appear until a file is deleted.

Windows

This is the main folder containing all the Windows XP system files, and the default folder for Windows XP.


The root of the boot partition is also the default location for pagefile.sys, which is the page file the Windows NT virtual memory system uses.

NOTE

The file and folder structure discussed in this chapter is derived from a fresh installation of Windows XP on an x86 desktop system with Service Pack 1 integrated. The typical installation method was chosen. No other applications from Microsoft or any third-party vendors were present on the system. That means no additional services or applications were installed from the Windows XP distribution CD, no hotfixes were applied, and Internet Explorer was not updated.

The Program Files folder is home to 16 subfolders:

The Windows root-level folder contains an extensive subfolder hierarchy but very few files. The Windows\System32 folder is the main repository of all files required to launch and operate Windows XP. The following files are among those stored in the Windows folder:

The following is a listing of the subfolders under the Windows folder:

The System32 subfolder contains most of the files used by Windows XP. This is the primary storage location for DLLs, Control Panel applets (.cpl), device drivers (.drv), help files (.hlp and .cnt), MS-DOS utilities (.com), language support files (.nls), screensavers (.scr), setup information files (.inf), and a handful of other files used for support, configuration, or operation.

The most commonly accessed subfolders in Windows\System32 are described in the following list:

As you can see, the folder structure that the Windows XP setup process creates is quite extensive. If you add services and applications from the Windows XP distribution CD, install service packs and hotfixes, upgrade Internet Explorer, add Microsoft Outlook, or install other Microsoft and third-party applications, this folder structure increases in depth and complexity.

Key Windows XP Executables

The range and number of files included in the Windows XP folder structure are enormous. Most of these files are drivers, DLLs, or some type of configuration storage. Driver, configuration, and DLL files sustain the operating environment. However, most of the executable (.exe) files and the MS-DOS utilities (.com) are quite useful. You can launch them from the Start menu or other standard GUI launch site (when applicable), or you can launch them from Windows Explorer, My Computer, or a command prompt or through the Run command from the Start menu. The following sections list the files you can launch manually and briefly describe each utility or application.

Main Windows Root Folder

The following executables reside in the main Windows root folder:

Windows\System32

The following list of executables resides in the Windows\System32 folder:

The Windows XP Distribution CD

The Windows XP distribution CD contains more than just the files for installing Windows XP. There are extra tools, release notes, and value-added software from third-party vendors and Microsoft.

The root folder of the distribution CD hosts four subfolders. Only one of these folders is a platform-specific version of the setup file.

The \Docs subfolder contains documents that should be read before starting your Windows XP setup. There is a Read1st.txt file, a release notes document, and a document describing the setup procedure.

The \i386 subfolder contains all the files (mostly in compressed format) that make up the Windows XP operating system. This is the folder the Setup program uses to install the OS.

The \Support subfolder contains a \Tools subfolder with many troubleshooting and support tools for Windows XP (such as the Process Resource Monitor and the Quick Fix Application for resolving application compatibility problems with Windows XP).

The \Valueadd subfolder contains some sample third-party tools and utilities for Windows XP as well as extra documents, fonts, utilities, and applications from Microsoft.

Living with Service Packs and Hotfixes

All operating systems have their share of application fixes and driver updates, and Windows in any flavor is no exception. Microsoft is trying to make applying these fixes a smoother process, however, by continuing to add new features that assist in the update process. The latest feature is called Dynamic Update. You can launch this tool during setup so that critical fixes are applied to drivers that might cause problems during the setup process. Dynamic Update requires a PC to have an Internet connection to receive the updates. Network administrators on larger networks that are running a deployment cycle have the option of downloading these files to a network share so that large numbers of workstations can be updated at once without affecting wide area network (WAN) bandwidth.

The service packs themselves contain only bug fixes. Any product enhancements are available through a different channel, so administrators can install relatively small service packs. Although service packs are expected to be a fairly regular event in the Windows XP world, bugs are detected between releases of these service packs. When the bug could affect the security or performance of systems, Microsoft releases what are known as hotfixes.

In the past, hotfixes had to be individually downloaded and installed in a specific order. Beginning with Windows 2000, however, Windows Update is used to automatically detect, download, and install the required hotfixes.

The Joys of Slipstreaming

Many Windows administrators have learned to live with service packs. It has always been a real battle to get the configuration correct. A common question was "I just installed application X. Do I need to install service pack Y?" This dilemma has disappeared with the introduction of slipstreaming in Windows XP.

In a nutshell, slipstreaming modifies the Windows XP distribution files while the system files are being updated. This ensures that the next time the distribution files are used to install an operating system, the system will be up to date with all service packs and hotfixes.

This modification to the Windows XP distribution files provides two important items. First, it creates new files that can allow installating the OS with all service packs and hotfixes already applied. Second, it makes it unnecessary to reinstall service packs and hotfixes after adding applications or services to an existing Windows XP installation.

For More Information

If the information about Windows XP file layout issues in this chapter has increased your desire to learn more, here are some resources you can research:

Following are two popular tools for multi-booting Windows XP with non-Microsoft operating systems:

For more information about the tools and utilities found in the main Windows root directory, you can take the following action:

The following tools monitor your system for changes, especially during software installation. You can use the recorded changes to uninstall software and return your system to its previous state: