LOGO

Geek School: Learning Windows 7 - Managing Disks

March 7, 2013
Geek School: Learning Windows 7 - Managing Disks

Understanding Hard Drives and Data Protection

Hard drives are essential components in virtually every computer that operates with the Windows operating system. Without them, a computer simply cannot function. These devices serve as the primary storage location for all of a user’s data.

Proper configuration of these drives is therefore crucial. This ensures data integrity and system stability. Let's explore how to leverage RAID technology to enhance data security.

The Importance of Data Redundancy

Data loss can occur due to various factors, including hardware failure, accidental deletion, or even malware attacks. Implementing a data redundancy strategy, such as RAID, mitigates these risks.

RAID, or Redundant Array of Independent Disks, provides a method for distributing data across multiple hard drives. This distribution offers both performance improvements and data protection.

Exploring the How-To Geek School Series

This article is part of a larger educational series known as How-To Geek School. The series aims to provide comprehensive guidance on various technical topics.

Readers interested in expanding their knowledge are encouraged to review the following related articles:

  • Upgrades and Migrations: Learn about the process of upgrading or migrating your computer's hardware.
  • Configuring Devices: Discover how to properly configure various computer devices for optimal performance.
  • Introducing How-To Geek School: Gain an overview of the entire educational program.

MBR and GPT: A Comparative Overview

For many years, computers have relied on disks formatted using the MBR (Master Boot Record) scheme. However, with the advent of larger storage capacities, a newer format known as GPT (GUID Partition Table) has gained prominence. This article will detail the key distinctions between these two partitioning methods.

Understanding MBR Disks

MBR disks utilize the initial 512 bytes of the drive to store crucial data regarding the disk’s structure. Within this space, the partition table – which defines all partitions – occupies 64 bytes.

Because each entry in the partition table requires 16 bytes, MBR disks are restricted to a maximum of four primary partitions. Furthermore, MBR disks face a 2TB size limitation, a constraint that is becoming increasingly problematic.

The Advantages of GPT Disks

The GPT partitioning scheme was developed to overcome the limitations inherent in MBR-style disks. A significant benefit is the ability to support disks exceeding 2TB in capacity.

This expanded capacity is partly attributable to GPT’s use of a larger address space for storing logical data locations. Additionally, GPT allows for the creation of disks with more than four partitions.

Key Differences Summarized

  • Partition Limit: MBR is limited to 4 primary partitions, while GPT supports a significantly higher number.
  • Disk Size Limit: MBR has a 2TB limit; GPT supports disks larger than 2TB.
  • Data Storage: GPT utilizes a larger space for storing logical addresses.

In essence, GPT represents a modern advancement in disk partitioning, offering greater flexibility and capacity compared to the older MBR standard.

Basic and Dynamic Disks: A Comparison

After determining your partitioning strategy, a decision must be made regarding disk type: basic or dynamic. The basic disk is the prevalent standard within Windows environments.

It functions by utilizing partitions and logical drives, which are subsequently formatted with a chosen file system.

Key Differences and Capabilities

In contrast, dynamic disks offer functionalities not available on basic disks.

These advanced features include the creation of spanned, striped, and fault-tolerant volumes, enhancing data management and resilience.

Understanding Volume Types

  • Spanned Volumes: Extend a logical drive across multiple physical disks.
  • Striped Volumes: Improve performance by distributing data across multiple disks.
  • Fault Tolerant Volumes: Provide data redundancy for increased reliability.

The selection between basic and dynamic disks hinges on the specific requirements of your storage configuration.

Basic disks are suitable for most standard applications, while dynamic disks cater to more complex needs demanding enhanced flexibility and data protection.

Spanned Volumes Explained

Spanned volumes provide a method for combining available space from multiple dynamic disks into a single, larger logical unit. Essentially, this creates what appears as one expansive disk, even though the data is distributed across several physical drives.

How Spanned Volumes Function

Consider a scenario where you possess a disk with 50GB of free space and another with 20GB available. A spanned volume can consolidate these resources, presenting a unified 70GB volume to the operating system.

Data is written to a spanned volume in a sequential manner. Initially, the volume utilizes the first disk's available space—in our example, the 50GB drive—and subsequently fills the remaining capacity on the second disk, the 20GB drive.

Important Considerations

It’s crucial to understand that while you can increase the size of a spanned volume by adding more disk space, this process is irreversible. Once space has been added to the volume, it cannot be recovered without complete volume deletion.

This characteristic means careful planning is essential before creating a spanned volume. Assess future storage needs to avoid the necessity of deleting and recreating the volume later.

Dynamic disks are a prerequisite for utilizing spanned volumes. Standard basic disks do not support this functionality.

RAID 0 (Striped Volumes)

RAID 0, frequently referred to as striping, represents a data storage method involving the distribution of information across multiple disks.

Several crucial distinctions differentiate this approach from a spanned volume configuration.

Disks of varying capacities can be utilized in the creation of an array. However, the usable space contributed by each disk is constrained by the capacity of the smallest disk present.

For instance, constructing a striped volume with a 50GB disk alongside a 20GB disk would result in a total volume size of 40GB (2 x 20GB).

Data is distributed concurrently across all volumes, unlike sequential storage methods. This parallel access significantly enhances write performance.

Consequently, operations involving data writing are substantially accelerated.

Key Characteristics of RAID 0

  • Increased Performance: Data striping allows for parallel read and write operations.
  • No Redundancy: RAID 0 offers no data protection; failure of a single disk results in complete data loss.
  • Capacity Utilization: The total capacity is the sum of all disks involved.

It’s important to understand that while RAID 0 boosts speed, it does not provide any fault tolerance.

Therefore, it is generally recommended for applications where performance is paramount and data loss is acceptable or mitigated by other backup strategies.

RAID 1 (Mirrored Volumes)

The previously discussed configurations focus on optimizing storage capacity. However, they often overlook a crucial element: data redundancy. RAID 1 implements a different strategy, prioritizing redundancy over sheer storage space.

Employing a mirrored volume creates an exact, bit-by-bit copy of the data across two disks. This duplication ensures data protection.

A notable consequence of this approach is reduced write performance. Since Windows must record identical data on both drives simultaneously, write operations take considerably longer to complete.

How RAID 1 Works

With RAID 1, every piece of data is duplicated onto a second physical disk. This provides immediate failover.

If one disk fails, the system continues to operate seamlessly from the mirrored copy. Data remains accessible without interruption.

Advantages of RAID 1

  • Data Redundancy: Offers complete data protection against single disk failures.
  • Simple Implementation: Relatively easy to set up and manage.
  • Read Performance: Read speeds can sometimes improve as data can be read from either disk.

Disadvantages of RAID 1

  • Reduced Capacity: Only half of the total disk space is usable.
  • Slower Writes: Write operations are slower due to data duplication.
  • Cost: Requires twice the number of disks compared to other RAID levels.

RAID 1 is an excellent choice for critical data where uptime and data integrity are paramount, despite the capacity limitations and write performance trade-offs.

Creating a Striped Volume in Windows 7

The process of establishing a striped volume is initiated via the Disk Management Console. To access this, simultaneously press the Windows key and the R key to invoke the Run dialog box.

Subsequently, type “diskmgmt.msc” and press Enter to launch the console.

geek-school-learning-windows-7-managing-disks-1.jpg

Initial Disk State

As illustrated below, two 1GB basic disks are present, currently lacking any partitions.

geek-school-learning-windows-7-managing-disks-2.jpg

It’s important to recognize that RAID volumes can only be created on dynamic disks. Therefore, we will proceed to convert these disks manually.

This conversion is achieved by right-clicking on the desired disk and selecting "Convert to Dynamic Disk" from the resulting context menu.

geek-school-learning-windows-7-managing-disks-3.jpg

Creating the Striped Volume

After the disk conversion is complete, right-click on the unallocated space and choose the option to create a new striped volume.

geek-school-learning-windows-7-managing-disks-4.jpg

A list of all available dynamic disks, along with their free space, will appear in the left-hand window.

Select the disks you intend to include in the volume and transfer them to the right-hand side.

geek-school-learning-windows-7-managing-disks-5.jpg

Volume Configuration

Next, assign a drive letter to the volume using the provided drop-down menu.

geek-school-learning-windows-7-managing-disks-6.jpg

You also have the ability to name the volume. For this example, we will designate it as "striped".

geek-school-learning-windows-7-managing-disks-7.jpg

Finalizing the Setup

Upon completing the wizard, you will observe that both disks are now integrated into a single striped volume.

geek-school-learning-windows-7-managing-disks-8.jpg

Open Windows Explorer to verify the creation of the "striped" volume.

Proceed to copy data to the volume to experience the enhanced speed compared to a standard disk.

geek-school-learning-windows-7-managing-disks-9.jpg

System Maintenance Tools in Windows

This article details several utilities within Windows designed to maintain optimal system performance and address potential issues.

Understanding chkdsk.exe

The chkdsk.exe command-line tool is primarily utilized for verifying the integrity of a file system.

It identifies and corrects logical file system errors, as well as scans for and attempts to recover bad sectors on a storage device.

The Role of scandisk.exe

scandisk.exe, while similar in function to chkdsk, was a previous generation disk checking tool.

It also served to scan for and fix errors on hard drives, but has largely been superseded by the more robust capabilities of chkdsk.

Utilizing Disk Cleanup

Disk Cleanup is a Windows utility designed to free up disk space by removing unnecessary files.

These files can include temporary internet files, downloaded program files, the Recycle Bin contents, and other non-essential data.

Advanced Disk Cleanup Settings

The Advanced settings within Disk Cleanup offer more granular control over the files removed.

  • These settings allow for the cleanup of system error memory dump files.
  • They also enable the removal of previous Windows installations.
  • Furthermore, you can opt to clean up Windows Update cleanup files.

For further insights into Windows administration, be certain to check tomorrow’s Geek School article, which will focus on application management within Windows 7.

Should you require clarification or have any inquiries, feel free to reach out via Twitter @taybgibb, or simply post a comment below.

#Windows 7#disk management#Geek School#tutorial#disks#manage disks