Module 5 Maintaining Disk and Volumes
Module 5 Maintaining Disk and Volumes
Lesson
Introduction
The storage functionality in Windows 10 can give you an overview of what types of files the volumes
are storing.
When you first create a volume, you typically create new files and folders on a volume’s available
free space in contiguous blocks.
This provides an optimized file system environment.
As the volume becomes full, the availability of contiguous blocks diminishes.
This can lead to suboptimal performance.
This lesson explores file system fragmentation and the tools that you can use to reduce
fragmentation.
You also will see how Windows 10 can compress files to take up less space on the hard disk.
You will see how you can configure disk quotas to monitor and control the use of disk space.
Lesson Objectives After completing this lesson, you will be able to:
Storage usage shows the size for the following categories of files:
Depending on the drive and category that you select, you will have different management options.
If you select one of the file type categories on drives other than This PC, you will see a list of
directories containing files from that category.
For This PC, you have a choice to open File Explorer with that particular file type’s folder within the
user’s profile.
System and Reserved This category gives you a list of disk space used by Windows system files,
virtual memory, hibernation file, and System Restore. You can select Manage System Restore to
configure System Restore and decide how much disk space System Restore can use.
Apps and Games You can sort the application list by size, name, and install date. You can also search
for an app by name, and when you select the app, you have easy access to uninstall the app.
OneDrive You will be able to select which folders synchronize to this device to save disk space. This
is particularly useful on devices with limited storage space, such as tablets.
Temporary Files This category gives you a list of disk space used by temporary files, downloads, the
recycle bin, and previous versions of Windows. For each item, there is an option to delete the files.
Save Locations Storage usage also allows you to choose the drive to save new files. You can choose
between the drives connected to your computer. If you are signed in with a Microsoft account, you
can also choose OneDrive.
Disk Optimization
By default, Windows 10 will optimize internal storage devices automatically.
The method of optimization depends on whether the drive is hard disk drive or a solid state drive.
Hard Disk Drives and Defragmentation
Fragmentation of a file system occurs over time as you save, change, and delete files.
Initially, Windows saves files in contiguous areas on a given volume.
This is efficient for the physical disk, as the read/write heads are able to access these contiguous
blocks most quickly.
As the volume fills with data and other files, contiguous areas of free space become harder to find.
File deletion also causes fragmentation of available free space.
Additionally, when you extend and save a file, such as editing a document or spreadsheet, there
might not be contiguous free space following the existing file blocks.
This forces the I/O manager to save the remainder of the file in a noncontiguous area.
Over time, contiguous free space becomes more scarce, leading to fragmentation of newly stored
content.
The incidence and extent of fragmentation varies depending on available disk capacity, disk
consumption, and usage patterns.
Although NTFS is more efficient at handling disk fragmentation than earlier file systems, this
fragmentation still presents a potential performance problem.
Combined hardware and software advances in the Windows operating system help to mitigate the
impact of fragmentation and deliver better responsiveness.
Optimizing a disk
When you optimize a disk, files are relocated optimally.
This ability to relocate files is beneficial when you are shrinking a volume, because it frees up space
that you can later reclaim.
Windows 10 defragments drives automatically on a scheduled basis, running weekly in the
background to rearrange data and reunite fragmented files.
You can check the status of a defragmentation or perform a manual optimization at any time by
launching the Optimize Drives tool.
To optimize a volume or drive manually, or to change the automatic optimization schedule, right-
click a volume in File Explorer, select Properties, select the Tools tab, and then select Optimize. You
can perform the following tasks:
Change settings, which allows you to:
Enable or disable the automated optimization.
Specify the automated optimization frequency.
Set a notification for three consecutive missed optimization runs.
Select which volumes you want to optimize.
Analyze the disk to determine whether it requires optimization.
Launch a manual optimization.
You can also start the optimization process by launching Defragment and Optimize Your Drives from
the Administrative Tools section within the System and Security section in Control Panel.
To verify that a disk requires defragmentation, in the Optimize Drives tool, select the disk that you
want to defragment, and then select Analyze.
After Windows finishes analyzing the disk, check the percentage of fragmentation on the disk in the
Current status column.
If the number is high, you should defragment the disk.
The Optimize Drives tool might take several minutes to a few hours to finish defragmenting,
depending on the size and degree of fragmentation of the disk or USB device, such as an external
hard drive.
You can use the computer during the defragmentation process, although disk access might be
slower and the defragmentation might take longer.
You can configure and run disk defragmentation from an elevated command prompt by using the
defrag command-line tool.
Use Defrag /? at a command prompt for available options. You can minimize file system
fragmentation by using the following methods:
Partition a disk so that you isolate static files from those that users create and delete frequently,
such as some user-profile files and temporary Internet files.
Use the Disk Cleanup feature (cleanmgr.exe) to free disk space that is consumed by each user’s
preferences for console files that the profile saves.
Configuring Compression
You set compression from the properties of a file or folder on the General tab.
You select Advanced and set or clear the compression attribute.
You can also configure compression from the command line by using the compact command.
File and folder compression that uses the Send To Compressed (zipped) Folder command is different
from NTFS file and folder compression:
For selected files or folders, the Send To Compressed (zipped) Folder command compresses the
selected content into a portable zip file.
The original file or folder does not change, and a new, compressed zip file is created.
NTFS compression does not create a second, compressed zip-type file.
Instead, it actually reduces the size of the selected file, folder, or volume by compressing its
contents.
Disk Quotas
You can use disk quotas to limit each user’s disk space usage.
You configure disk quotas on a volume to conserve disk space.
Disk quotas enable you to track and restrict disk consumption proactively.
You can enable quotas on any NTFS-formatted volumes.
When you configure disk quotas, you can configure a warning level, if you want to alert users before
they exceed their quota limit.
You can configure disk quotas to log events, when users exceed both the warning and limit levels.
You use the Event Viewer to configure scheduled tasks to start when events are logged.
You can use quotas to track disk space usage and determine who is using disk space, without
restricting disk consumption at the same time.
You configure disk quotas from the Quota tab on the properties dialog box of an NTFS-formatted
volume.
You can also manage quotas by using the fsutil quota and fsutil behavior commands from the
command prompt.
After you create a quota, you can export it and import it to a different volume.
In addition to establishing quota settings on a single computer by using the methods outlined above,
you can use Group Policy settings to configure disk quotas.
This enables administrators to configure multiple computers with the same settings.
Over time, the amount of available disk space decreases, so make sure that you have a plan to
increase storage capacity.
Note: An alternative to disk quotas is using quotas in File Server Resource Manager (FSRM) on
Windows Server 2012 R2.
Quotas in FSRM can track disk space usage per folder instead of per volume.