Managing File Systems and Drives in Windows Server 2008
- 12/28/2009
- Managing the File Services Role
- Adding Hard Disk Drives
- Working with Basic, Dynamic, and Virtual Disks
- Using Basic Disks and Partitions
- Managing Existing Partitions and Drives
Using Basic Disks and Partitions
When you install a new computer or update an existing computer, you often need to partition the drives on the computer. You partition drives using Disk Management.
Partitioning Basics
In Windows Server 2008 R2, a physical drive using the MBR partition style can have up to four primary partitions and one extended partition. This allows you to configure MBR drives in one of two ways: by using one to four primary partitions, or by using one to three primary partitions and one extended partition. A primary partition can fill an entire disk, or you can size it as appropriate for the workstation or server you’re configuring. Within an extended partition, you can create one or more logical drives. A logical drive is simply a section of a partition with its own file system. Generally, you use logical drives to divide a large drive into manageable sections. With this in mind, you might want to divide a 600-GB extended partition into three logical drives of 200 GB each. Physical disks with the GPT partition style can have up to 128 partitions.
After you partition a drive, you format the partitions to assign drive letters. This is a high-level formatting that creates the file system structure rather than a low-level formatting that sets up the drive for initial use. You’re probably very familiar with the C drive used by Windows Server 2008 R2. Well, the C drive is simply the designator for a disk partition. If you partition a disk into multiple sections, each section can have its own drive letter. You use the drive letters to access file systems in various partitions on a physical drive. Unlike MS-DOS, which assigns drive letters automatically starting with the letter C, Windows Server 2008 R2 lets you specify drive letters. Generally, the drive letters C through Z are available for your use.
Using drive letters, you can have only 24 active volumes. To get around this limitation, you can mount disks to drive paths. A drive path is set as a folder location on another drive. For example, you might mount additional drives as E:\Data1, E:\Data2, and E:\Data3. You can use drive paths with basic and dynamic disks. The only restriction for drive paths is that you mount them on empty folders that are on NTFS drives.
To help you differentiate between primary partitions and extended partitions with logical drives, Disk Management color codes the partitions. For example, primary partitions might be color coded with a dark-blue band and logical drives in extended partitions might be color coded with a light-blue band. The key for the color scheme is shown at the bottom of the Disk Management window. You can change the colors in the Settings dialog box by choosing Settings from the View menu.
Creating Partitions and Simple Volumes
Windows Server 2008 R2 simplifies the Disk Management user interface by using one set of dialog boxes and wizards for both partitions and volumes. The first three volumes on a basic drive are created automatically as primary partitions. If you try to create a fourth volume on a basic drive, the remaining free space on the drive is converted automatically to an extended partition with a logical drive of the size you designate by using the new volume feature in the extended partition. Any subsequent volumes are created in the extended partitions as logical drives automatically.
In Disk Management, you create partitions, logical drives, and simple volumes by following these steps:
In Disk Management’s Graphical View, right-click an unallocated or free area, and then click New Simple Volume. This starts the New Simple Volume Wizard. Read the Welcome page, and then click Next.
The Specify Volume Size page, shown in Figure 12-3, specifies the minimum and maximum size for the volume in megabytes and lets you size the volume within these limits. Size the partition in megabytes in the Simple Volume Size In MB field, and then click Next.
Figure 12-3. Set the size of the volume on the Specify Volume Size page.
On the Assign Drive Letter Or Path page, shown in Figure 12-4, specify whether you want to assign a drive letter or path, and then click Next. The following options are available:
Assign The Following Drive Letter Choose this option to assign a drive letter. Then select an available drive letter in the list provided. By default, Windows Server 2008 R2 selects the lowest available drive letter and excludes reserved drive letters as well as those assigned to local disks or network drives.
Mount In The Following Empty NTFS Folder Choose this option to mount the partition in an empty NTFS folder. You must then type the path to an existing folder or click Browse to search for or create a folder to use.
Do Not Assign A Drive Letter Or Drive Path Choose this option if you want to create the partition without assigning a drive letter or path. If you later want the partition to be available for storage, you can assign a drive letter or path at that time.
Figure 12-4. On the Assign Drive Letter Or Path page, assign the drive designator or choose to wait until later.
On the Format Partition page, shown in Figure 12-5, determine whether and how the volume should be formatted. If you want to format the volume, select Format This Volume With The Following Settings, and then configure the following options:
File System Sets the file system type as FAT32 or NTFS. NTFS is selected by default in most cases. If you use FAT32, you can later convert to NTFS with the Convert utility. You can’t, however, convert NTFS partitions to FAT32.
Allocation Unit Size Sets the cluster size for the file system. This is the basic unit in which disk space is allocated. The default allocation unit size is based on the size of the volume and is set dynamically prior to formatting by default. To override this feature, you can set the allocation unit size to a specific value. If you use many small files, you might want to use a smaller cluster size, such as 512 or 1,024 bytes. With these settings, small files use less disk space.
Volume Label Sets a text label for the partition. This label is the partition’s volume name and is set to New Volume by default. You can change the volume label at any time by right-clicking the volume in Windows Explorer, clicking Properties, and typing a new value in the Label field provided on the General tab.
Perform A Quick Format Tells Windows Server 2008 R2 to format without checking the partition for errors. With large partitions, this option can save you a few minutes. However, it’s usually better to check for errors, which enables Disk Management to mark bad sectors on the disk and lock them out.
Enable File And Folder Compression Turns on compression for the disk. Built-in compression is available only for NTFS. Under NTFS, compression is transparent to users and compressed files can be accessed just like regular files. If you select this option, files and directories on this drive are compressed automatically. For more information on compressing drives, files, and directories, see "Compressing Drives and Data" later in this chapter.
Figure 12-5. Set the formatting options for the partition on the Format Partition page.
Click Next, confirm your options, and then click Finish.
Formatting Partitions
Formatting creates a file system on a partition and permanently deletes any existing data. This is a high-level formatting that creates the file system structure rather than a low-level formatting that initializes a drive for use. To format a partition, right-click the partition and then click Format. This opens the Format dialog box, shown in Figure 12-6.
Figure 12-6. Format a partition in the Format dialog box by specifying its file system type and volume label.
You use the formatting fields as follows:
Volume Label Specifies a text label for the partition. This label is the partition’s volume name.
File System Specifies the file system type as FAT32 or NTFS. NTFS is the native file system type for Windows NT and later releases of Windows.
Allocation Unit Size Specifies the cluster size for the file system. This is the basic unit in which disk space is allocated. The default allocation unit size is based on the size of the volume and is set dynamically prior to formatting. To override this feature, you can set the allocation unit size to a specific value. If you use lots of small files, you might want to use a smaller cluster size, such as 512 or 1,024 bytes. With these settings, small files use less disk space.
Perform A Quick Format Tells Windows Server 2008 R2 to format without checking the partition for errors. With large partitions, this option can save you a few minutes. However, it’s more prudent to check for errors, which allows Disk Management to mark bad sectors on the disk and lock them out.
Enable File And Folder Compression Turns on compression for the disk. Built-in compression is available only for NTFS. Under NTFS, compression is transparent to users, and compressed files can be accessed just like regular files. If you select this option, files and directories on this drive are compressed automatically. For more information on compressing drives, files, and directories, see "Compressing Drives and Data" later in this chapter.
When you’re ready to proceed, click OK. Because formatting a partition destroys any existing data, Disk Management gives you one last chance to cancel the procedure. Click OK to start formatting the partition. Disk Management changes the drive’s status to reflect the formatting and the percentage of completion. When formatting is complete, the drive status changes to reflect this.