DESKTOP

Windows 7 : Using Compression and Encryption (part 1) - Compressing Drives

2/15/2011 9:24:14 AM
When you format volumes with NTFS, you can use compression to reduce the disk space used or encryption to add an extra layer of protection to your data. Because these two options are mutually exclusive, a file or folder can be either compressed or encrypted, not both. Although you can compress or encrypt entire drives, you can also compress or encrypt individual files and folders. Windows 7 Home Premium and Starter do not support NTFS encryption.

NOTE

In Windows Explorer, compressed or encrypted NTFS files and folders are shown in color by default. Compressed files and folders are shown in blue. Encrypted files and folders are shown in green.

1. Compressing Drives

When you format a volume with NTFS, Windows 7 allows you to turn on compression for the entire disk. With compression enabled, any files created on or moved to the disk are compressed automatically. When you open files or access folders, Windows 7 expands the files or folders for viewing as well. This behind-the-scenes compression and expansion makes NTFS compression completely transparent, but it does use some of your computer’s processing power. With that said, there’s an enormous benefit: you can store much more information on a compressed drive.

NOTE

You cannot compress encrypted data. If you try to do so, Windows 7 automatically decrypts the data and then compresses it. Likewise, if you try to encrypt compressed data, Windows 7 expands the data and then encrypts it.

1.1. Compressing a drive

You can compress a drive and all its data by completing these steps:

  1. In Windows Explorer or Disk Management, right-click the drive that you want to compress and then select Properties.

  2. On the General tab, select “Compress drive to save disk space” and then click OK.

  3. In the Confirm Attribute Changes dialog box, shown in Figure 1, specify whether you want to compress only the top-level folder of the drive or the entire drive:

    • To compress only the drive’s top-level folder, select “Apply changes to drive X:\ only.”

    • To compress the drive’s top-level folder, subfolders, and files, select “Apply changes to drive X:\, subfolders and files.”

  4. Click OK.

Any files or folders you create on a compressed drive are compressed automatically.

Figure 1. Confirming the compression options


1.2. Expanding a drive to remove compression

If you later decide that you no longer want to compress a drive, you can remove compression from the drive. However, before you do this, you should ensure that the drive has adequate free space to accommodate the expanded files. Typically, you’ll need at least 50 percent more free space on the disk to expand its contents successfully. If a compressed disk currently uses 40 GB of space, this means you’d probably need about 20 GB of free space to expand the disk successfully.

You can expand a disk by completing these steps:

  1. In Windows Explorer or Disk Management, right-click the drive that contains the disk that you want to expand and then select Properties.

  2. On the General tab, clear the “Compress drive to save disk space” checkbox and then click OK twice.

  3. In the Confirm Attribute Changes dialog box, shown in Figure 2, specify whether you want to expand only the top-level folder of the drive or the entire drive:

    • To expand only the drive’s top-level folder, select “Apply changes to drive X:\ only.”

    • To expand the drive’s top-level folder, subfolders, and files, select “Apply changes to drive X:\, subfolders and files.”

  4. Click OK.

Figure 2. Confirming the uncompress options


Other  
  •  Windows 7 : Maintaining and Recovering Volumes
  •  Windows Server 2008 : Domain Name System and IPv6 - Secure DNS with DNSSEC
  •  How to Configure IPv6 on Windows Server 2008 R2
  •  Windows Azure : Working with local storage
  •  Windows Azure : Common uses for worker roles (part 2) - State-directed workers
  •  Windows Azure : Common uses for worker roles (part 1)
  •  Windows 7 : Preparing Disks for Use (part 3)
  •  Windows 7 : Preparing Disks for Use (part 2) - Adding a Mirror to an Existing Volume & Shrinking or Extending Volumes
  •  Windows 7 : Preparing Disks for Use (part 1) - Creating Mirrored, Spanned, or Striped Volumes
  •  Windows Server 2008: IPv6 Introduction (part 3) - The 6to4 Tunneling Protocolcol & The Teredo Tunneling Protocol
  •  Windows Server 2008: IPv6 Introduction (part 2) - IPv6 Transition Technologies & The ISATAP Tunneling Protocol
  •  Windows Server 2008: IPv6 Introduction (part 1) - IPv6 Addressing & Comprehending IPv6 Addressing
  •  Windows Server 2008: Domain Name System and IPv6 - Troubleshooting DNS
  •  Windows Server 2008: Domain Name System and IPv6 - DNS in an Active Directory Domain Services Environment
  •  Windows Azure : Processing with worker roles - Communicating with a worker role
  •  Windows Azure : Processing with worker roles - A simple worker role service
  •  Windows 7 : Configuring Disks and Drives (part 2) - Converting a Basic Disk to a Dynamic Disk
  •  Windows 7 : Configuring Disks and Drives (part 1) - Using Disk Management
  •  Windows Server 2008 : Domain Name System and IPv6 - DNS in Windows Server 2008 R2
  •  Windows Server 2008 : Domain Name System and IPv6 - Understanding the Evolution of Microsoft DNS
  •  
    Top 10
    Smart, But Not Pricey : LG Optimus L7, Nokia Lumia 610, Sony Xperia U, Micromax A90S, BlackBerry Curve 9320, Nokia Lumia 710
    Acer Iconia W510 - Multi-Faceted Windows Tablet
    The Big Show: LG Optimus Vu
    Edifier E10 Exclaim - Exclamation Mark
    If It Bleeps We Can Mix It (Part 2)
    If It Bleeps We Can Mix It (Part 1)
    Jabra SOLEMATE Bluetooth Portable Speaker
    Projecting Movies From Smartphone – Sharp BD-AMS20S
    Sharkoon X-Tatic SP Plus - Talk About Lots Of Cables
    Audio Technica ATH-FC707 - No Headline, Too Busy Enjoy Music
    Most View
    Tasmania - Ideal Destination For Landscape Photographers (Part 2)
    Overview On UPnP Network Protocol (Part 1)
    Headset & Speaker Buyer’s Guide (Part 3)
    Tritton Pro+ - Easy Headset To Love
    Open GL : Advanced Geometry Management - Synchronizing When OpenGL Begins to Draw
    Windows XP : Troubleshooting and Recovering from Problems (part 1)
    Active Directory Domain Services 2008 : Enable a Group Policy Object Link, Enforce a Group Policy Object Link, Remove the Enforcement of a Group Policy Object Link
    Understanding SharePoint 2010 Extranet Security
    SQL Server 2005 : Advanced OLAP - Advanced Dimensions and Measures (part 2) - Parent-Child Dimensions
    Multifaceted Tests : Attempting Server-Side Includes (SSI) Injection Systematically, Attempting Log Injection Interactively & Attempting LDAP Injection Interactively
    SQL Server 2008 : Advanced Stored Procedure Programming and Optimization - Installing and Using .NET CLR Stored Procedures
    Flipboard : The best streamlined news delivery application in iOS
    .NET Security : The Event Log Service Explained
    The HP Virtual Server Environment : HP Integrity Virtual Machines (Fully Virtualized Partitioning)
    Exploring the T-SQL Enhancements in SQL Server 2005 : Exception Handling in Transactions
    Managing Local User Accounts and Groups in Vista
    iPhone, iPod touch and iPad. : Ourcast
    Arbico Elite 7768 OCX - Great-Value Gaming Rig
    Microsoft XNA Game Studio 3.0 : Getting Player Input - Reading a Gamepad
    Buying Guide: Gaming PCs For Hardcore Gamers' Dreams (Part 4) - Yoyotech Warbird 3570XTA