This chapter covers troubleshooting low disk space issues on Windows, macOS, and Linux systems as tested in CompTIA A+ Core 2 (220-1102) Objective 3.1. Low disk space is one of the most common performance and stability problems, leading to application crashes, failed updates, and system slowdowns. Approximately 5-10% of exam questions in the Software Troubleshooting domain touch on disk space management, including identifying symptoms, using built-in tools, and applying corrective actions. Mastering this topic is essential for both the exam and real-world IT support.
Jump to a section
Imagine a physical filing cabinet with four drawers. Each drawer holds exactly 100 folders. The cabinet represents your hard drive, and each folder is a file. The drawers are partitions or volumes. The cabinet has a label on the front showing how many folders are in each drawer and how many empty slots remain. When you try to add a new folder, you must first check the label. If a drawer shows '95 folders used, 5 free,' you can add up to 5 folders. But if you try to add a sixth folder to that drawer, it won't fit—the drawer jams. The cabinet's mechanism prevents overstuffing. The label is like the file system's free space counter. When the counter hits zero, the OS cannot write any new data. However, the OS can still read existing folders, and it can sometimes delete or compress folders to free up space. The cabinet also has a recycle bin—a temporary holding area where deleted folders go before being permanently removed. If the recycle bin is full, it takes up space too. Finally, the cabinet's ability to defragment—rearranging folders to fill gaps—can free up contiguous space but doesn't change the total number of folders. This mirrors disk defragmentation on HDDs. The key is that the cabinet has a hard limit: physical capacity. Once the drawers are full, no amount of shuffling adds space—only deletion or compression works.
What is Low Disk Space and Why Does It Occur?
Low disk space means the available free space on a storage volume has dropped below a threshold where normal system operations are impaired. The threshold varies by OS and usage, but a common rule of thumb is less than 10-15% free space on HDDs or less than 5-10% on SSDs. The primary causes are: - User data accumulation: Downloads, documents, media files, and application data. - Temporary files: System caches, browser caches, update files, and application temp files. - System restore points and shadow copies: Volume Shadow Copy (VSS) on Windows can consume up to 10% of volume space by default. - Hibernation file (hiberfil.sys): On Windows, this file is sized to about 75% of physical RAM. - Page file (pagefile.sys): Typically 1-2 times the amount of RAM. - Recycle Bin / Trash: Files moved to Recycle Bin still occupy disk space until emptied. - Application logs: Event logs, IIS logs, and application logs can grow unbounded. - Malware: Some malware fills disk space as part of an attack. - Disk fragmentation: On HDDs, fragmentation reduces effective usable space due to slack space, though the total free space remains the same.
How Low Disk Space Affects System Operation
When free space is critically low (e.g., less than 100 MB on a system drive), the OS and applications cannot create temporary files, leading to: - Application crashes: Programs fail to write data or create swap files. - Failed updates: Windows Update requires free space for downloading and installing updates; typically 5-20 GB depending on the update. - Inability to save files: Users see 'Disk Full' or 'Insufficient disk space' errors. - System instability: The OS may fail to write to the page file, causing out-of-memory errors. - Slow performance: Fragmentation increases as free space shrinks; on SSDs, low free space reduces the number of available blocks for wear leveling, potentially shortening SSD life.
Key Components and Defaults
- Windows:
- Free space threshold warnings: Windows warns when free space drops below 10% of the volume size (or 200 MB, whichever is larger).
- Storage Sense: A built-in tool that automatically deletes temporary files, empties Recycle Bin, and removes older versions of Windows (after an update). Can be configured via Settings > System > Storage.
- Disk Cleanup (cleanmgr.exe): A GUI tool that scans for files that can be safely deleted, including Temporary Internet Files, Recycle Bin, Delivery Optimization Files, Windows Update Cleanup, and more. Command-line version: cleanmgr /sageset:n and cleanmgr /sagerun:n.
- Compact OS (compact.exe): Compresses system files to free up space. Use compact /compactos:query to check status, and compact /compactos:always to enable.
- Volume Shadow Copy: By default, uses up to 10% of volume space for restore points. Configurable via vssadmin or System Protection settings.
- Hibernation: Disable with powercfg /h off to delete hiberfil.sys.
- Page file: Can be reduced or moved to another volume. Configurable via System Properties > Advanced > Performance > Virtual Memory.
- macOS: - Storage Management: Apple menu > About This Mac > Storage > Manage. Provides recommendations: Store in iCloud, Optimize Storage (automatically remove watched Apple TV movies and TV shows), Empty Trash Automatically, Reduce Clutter. - Disk Utility: Can show used and free space. No built-in defragmentation needed (APFS handles it). - Local snapshots: Time Machine creates local snapshots when the backup drive is unavailable; these consume disk space and are automatically purged when space is low. - Purgeable space: macOS marks certain files (e.g., cached iCloud files) as purgeable; the OS can reclaim this space if needed.
- Linux:
- Commands: df -h shows disk usage; du -sh * shows directory sizes; ncdu is an interactive disk usage analyzer.
- Log rotation: logrotate manages log files; default configuration rotates weekly and keeps four weeks of logs.
- Package manager cache: apt-get clean (Debian/Ubuntu) removes downloaded .deb files from /var/cache/apt/archives/. yum clean all (RHEL/CentOS).
- Journal logs: journalctl --vacuum-size=100M reduces systemd journal size.
- Temporary files: /tmp is often mounted as tmpfs (RAM) but can be configured to disk.
Verification Commands
- Windows:
- wmic logicaldisk get size,freespace,caption – shows free space in bytes.
- fsutil volume diskfree C: – detailed free space.
- dir /s C:\ | find "File(s)" – not efficient but shows total file sizes.
- Use Get-PSDrive -PSProvider FileSystem in PowerShell.
- macOS:
- df -h – human-readable.
- diskutil list – partition layout.
- du -sh ~/Library/Caches – check cache size.
- Linux:
- df -h – free space.
- du -sh /var/log – log sizes.
- ncdu / – interactive analysis (install if needed).
Interaction with Related Technologies
Windows Update: Needs 5-20 GB free on the system drive. If insufficient, updates fail. Use Disk Cleanup to remove Windows Update Cleanup files.
Virtual Memory: If the page file cannot grow, applications may crash. Low disk space directly affects virtual memory expansion.
System Restore: If disk space is low, older restore points are deleted automatically. The oldest restore point is removed to make room for new ones.
Backup software: Full backups require free space equal to the data size. Incremental backups need less but still require free space for metadata.
SSD optimization: TRIM command requires free space to operate efficiently. Low free space reduces TRIM effectiveness and can degrade performance.
Step-by-Step Troubleshooting Process (General)
Identify the affected volume: Check which drive is low on space (C: drive most common).
Determine the cause: Use disk usage analysis tools to find large files or folders.
Free up space: Delete unnecessary files, empty Recycle Bin, run Disk Cleanup, uninstall unused applications, move files to external storage.
Configure automatic cleanup: Enable Storage Sense (Windows), or set up log rotation (Linux).
Prevent recurrence: Educate users, set quotas, monitor free space with alerts.
Common Exam Traps
Trap 1: Candidates confuse low disk space with low memory. Symptoms can be similar (slow performance, crashes), but troubleshooting paths differ. Check free space first with df or wmic.
Trap 2: Assuming deleting files from the Recycle Bin immediately frees space. Actually, files remain in the Recycle Bin until emptied. The exam may test that emptying the Recycle Bin is required.
Trap 3: Thinking defragmentation frees up space. Defragmentation reorganizes data but does not increase free space. Only deletion or compression does.
Trap 4: Ignoring hidden files like hiberfil.sys and pagefile.sys. These can consume gigabytes. Disabling hibernation can reclaim significant space.
Trap 5: Overlooking temporary files from Windows Update. The 'Windows Update Cleanup' option in Disk Cleanup can free up 5-10 GB after a major update.
Specific Values and Defaults
Windows 10/11 minimum free space for updates: 5-20 GB depending on the update. For feature updates, 20 GB is recommended.
Hibernation file size: Approximately 75% of installed RAM. For 8 GB RAM, hiberfil.sys is about 6 GB.
Page file default: Set to 1.5 times RAM for small systems, but varies. On systems with 8 GB RAM, pagefile.sys is typically 8-16 GB.
Volume Shadow Copy default limit: 10% of volume size.
Recycle Bin default size: 10% of each volume (up to a maximum of 25 GB per volume on Windows 10/11).
Storage Sense: Can be configured to run when free space drops below 10% (configurable).
Edge Cases and Exceptions
SSD vs HDD: On SSDs, low free space can cause performance degradation due to lack of spare area for garbage collection. The rule of thumb is to keep at least 10-20% free on SSDs.
Linux /tmp on tmpfs: If /tmp is mounted as tmpfs, it uses RAM, not disk. Low RAM could cause issues, not low disk space.
macOS APFS: APFS supports cloning and snapshots; space used by snapshots is not shown as 'used' in some tools. Use diskutil apfs list to see snapshot usage.
Windows Reserved Storage: Windows 10/11 version 1903 and later reserve about 7 GB of space for updates, temporary files, and caches. This space is not available to the user and is not counted as free. This can confuse users who see less free space than expected.
Troubleshooting Methodology for the Exam
CompTIA A+ troubleshooting methodology applies:
1. Identify the problem – gather information (free space, large files).
2. Establish a theory of probable cause – likely low disk space due to user data or temp files.
3. Test the theory – run Disk Cleanup or check with du.
4. Establish a plan of action – delete files, uninstall apps, run cleanup tools.
5. Implement the solution – execute the plan.
6. Verify full system functionality – check free space, test applications.
7. Document findings – record the cause and solution.
For the exam, remember that low disk space is a common cause of 'boot failure' or 'blue screen' errors if the system drive is completely full. The event log may show Event ID 14 (disk error) or Event ID 50 (disk write failure).
Check Free Space on Volume
Open File Explorer (Windows) or Finder (macOS) or use command line. On Windows, right-click the drive and select Properties. On Linux, run `df -h`. Identify the volume with critically low space (e.g., less than 10% free). Note the exact free space in bytes or GB. This step establishes the baseline. If the system drive (C:) is below 5% free, the OS may become unstable. For example, 500 GB drive with less than 25 GB free is a concern. The exam may ask you to interpret output from `wmic logicaldisk get size,freespace,caption` where free space is in bytes.
Analyze Disk Usage by Category
Use built-in tools to identify what is consuming space. On Windows, run Disk Cleanup as administrator (`cleanmgr.exe`). Check the list of files to delete: Temporary Internet Files, Recycle Bin, Delivery Optimization Files, Windows Update Cleanup. On macOS, go to About This Mac > Storage > Manage. On Linux, use `du -sh /home/*` to see user directories, or `ncdu` for interactive analysis. Look for large folders like Downloads, Desktop, or application caches. For example, a user's Downloads folder might contain 50 GB of old setup files. This step pinpoints the biggest offenders.
Delete Unnecessary Files and Empty Trash
Manually delete files that are no longer needed. Empty the Recycle Bin (Windows) or Trash (macOS). On Windows, right-click Recycle Bin and select 'Empty Recycle Bin'. On macOS, right-click Trash and select 'Empty Trash'. On Linux, use `rm -rf ~/.local/share/Trash/*` or `rm -rf ~/.Trash/*`. Note that files in the Recycle Bin still occupy space until emptied. This step can reclaim gigabytes instantly. For example, a Recycle Bin with 30 GB of deleted files will free that space after emptying.
Run System Cleanup Tools
Run Disk Cleanup with administrator privileges (`cleanmgr.exe`). Click 'Clean up system files' to access additional options: Windows Update Cleanup, Delivery Optimization Files, Device Driver Packages, etc. These can free up 5-10 GB. On macOS, use the Manage Storage window to empty caches and remove old iOS backups. On Linux, clear package manager caches: `sudo apt-get clean` (Debian/Ubuntu) or `sudo yum clean all` (RHEL/CentOS). Also, rotate and compress logs: `sudo logrotate -f /etc/logrotate.conf`. This step automates the removal of system-generated temporary files.
Disable Hibernation or Reduce Page File
If the system drive is still low, consider disabling hibernation or reducing the page file. On Windows, run `powercfg /h off` as administrator to delete hiberfil.sys (can free up to 75% of RAM size). For the page file, go to System Properties > Advanced > Performance > Virtual Memory, and set a custom size (e.g., 1024 MB) or move to another drive. However, do not disable the page file completely as it can cause instability. On macOS, hibernation is not a separate file; instead, sleepimage can be removed: `sudo rm /private/var/vm/sleepimage`. On Linux, suspend-to-disk uses swap; you can reduce swap size or use a swap file instead of a partition. This step recovers significant space but may affect power management features.
Move User Data to External Storage
If the drive remains full, move user data to an external drive or cloud storage. On Windows, use the 'Storage' settings to change the default save locations for Documents, Music, Pictures, and Videos to another drive. On macOS, you can move the entire Home folder to another volume using the Accounts preferences. On Linux, mount an external drive and move directories like `/home` or `/var` to it, then update `/etc/fstab`. This step offloads space-hungry user files while keeping the system drive lean. For example, moving a user's Music folder (20 GB) to an external drive frees that space.
Verify and Monitor Free Space
After freeing space, verify that the drive now has adequate free space (at least 10-15% free). Use `wmic logicaldisk get size,freespace,caption` or `df -h`. Also, set up monitoring: on Windows, enable Storage Sense to automatically clean up temporary files. On Linux, configure a cron job to run `du` and send alerts. Document the actions taken and the final free space. This step ensures the problem is resolved and helps prevent recurrence. For example, confirm C: drive now has 50 GB free, up from 2 GB.
In a typical enterprise environment, low disk space is a recurring issue, especially on file servers and user workstations. One common scenario involves a file server hosting user home directories. Users store large files like videos and ISO images, filling up the drive. The IT team deploys a script that runs nightly to move files older than 90 days to a network-attached storage (NAS) archive. They also set disk quotas using Windows File Server Resource Manager (FSRM) to limit each user to 10 GB. This prevents any single user from consuming all space. Performance considerations include ensuring the archive location has sufficient throughput and that the script does not run during peak hours. Misconfiguration can occur if quotas are set too low, causing users to receive 'disk full' errors when saving legitimate work. Another scenario involves a virtual desktop infrastructure (VDI) environment where virtual machines (VMs) run on a shared storage array. Each VM has a dynamically expanding VHDX file. Over time, the VHDX grows as users install applications and save data, eventually filling the datastore. The solution is to implement storage thin provisioning with monitoring alerts set at 80% capacity. When a datastore reaches 85%, the system automatically triggers a script to run disk cleanup inside each VM. However, if the VHDX is not compacted after deletion, the space is not reclaimed on the datastore. This is a common mistake: IT staff delete files inside the VM but forget to run Optimize-VHD to shrink the VHDX. The exam may test this scenario, asking what tool to use to reclaim space from a dynamically expanding VHD. A third scenario involves a database server where transaction logs grow unchecked. The SQL Server transaction log can consume terabytes if not properly maintained. The DBA sets up regular log backups and shrinks the log file. Without this, the log fills the drive, causing SQL Server to go into read-only mode. The troubleshooting step is to check the free space on the drive where the log is stored, then perform a log backup followed by DBCC SHRINKFILE. The exam may present a situation where an application crashes after a transaction log fills the disk, and the correct solution is to back up the log and shrink it.
The 220-1102 exam tests low disk space troubleshooting primarily under Objective 3.1 (Given a scenario, troubleshoot common software problems). The exam expects you to identify symptoms (slow performance, application crashes, inability to save files, failed updates), use appropriate tools (Disk Cleanup, Storage Sense, df, du), and apply corrective actions (delete temp files, empty Recycle Bin, disable hibernation, move files). Common exam traps include: (1) Choosing 'defragmentation' as a solution to free up space – defragmentation does not increase free space; it only reorganizes data. (2) Assuming that deleting files from the Recycle Bin is immediate – files remain until the bin is emptied. (3) Overlooking the 'Windows Update Cleanup' option in Disk Cleanup – this is a major space saver after updates. (4) Confusing low disk space with low memory – both can cause similar symptoms, but the troubleshooting steps differ. The exam may present a scenario where a user cannot install a Windows update, and the correct first step is to check free disk space, not to update drivers. Specific values that appear: the default size of the Recycle Bin (10% of volume), the size of hiberfil.sys (~75% of RAM), and the minimum free space needed for Windows updates (5-20 GB). Edge cases: Windows Reserved Storage (7 GB) is hidden from the user; the exam might ask why a 256 GB SSD shows only 238 GB free – part of that is reserved storage. Also, on macOS, Time Machine local snapshots can consume space and are automatically deleted when needed – the exam might ask what happens when a Time Machine backup drive is not available. To eliminate wrong answers, focus on the mechanism: if the goal is to free up space, any action that does not actually delete or compress data (like defragmentation) is incorrect. Also, remember that system files (hiberfil.sys, pagefile.sys) are hidden by default; the exam may ask how to view them or reduce their size. The best way to study is to practice using the tools: run Disk Cleanup with administrative privileges, enable Storage Sense, and use vssadmin to check shadow copy usage.
Low disk space is a common cause of application crashes and failed Windows updates.
Use Disk Cleanup (cleanmgr.exe) with 'Clean up system files' to remove Windows Update Cleanup (can free 5-10 GB).
Empty the Recycle Bin after deleting files; files in the Recycle Bin still occupy disk space.
Disable hibernation with 'powercfg /h off' to delete hiberfil.sys (~75% of RAM size).
Defragmentation does NOT free up disk space; it only reorganizes data.
On Windows, the default Recycle Bin size is 10% of each volume (max 25 GB per volume).
Windows Reserved Storage reserves about 7 GB for updates; this space is not available to the user.
On Linux, use 'df -h' to check free space and 'du -sh *' to find large directories.
Storage Sense can be configured to run automatically when free space drops below a threshold.
Volume Shadow Copy uses up to 10% of volume space by default; adjust via System Protection settings.
These come up on the exam all the time. Here's how to tell them apart.
Disk Cleanup (cleanmgr.exe)
Manual tool, must be run by user or scheduled via Task Scheduler.
Can delete Windows Update Cleanup, Delivery Optimization Files, Recycle Bin, and more.
Requires administrative privileges to clean system files.
Provides a detailed list of file categories with sizes before deletion.
Does not run automatically; user must initiate it.
Storage Sense
Automatic cleanup tool, runs based on schedule or free space threshold.
Automatically deletes temporary files, empties Recycle Bin, and can remove older versions of Windows.
Configured in Settings > System > Storage; no admin rights needed for basic settings.
Less granular control; user can choose frequency and what to clean.
Runs automatically when free space drops below a configurable threshold (default 10%).
Mistake
Defragmenting the hard drive will free up disk space.
Correct
Defragmentation reorganizes fragmented files to improve performance but does not delete any data or increase free space. Only deletion, compression, or moving files off the drive frees space.
Mistake
Deleting files from the Recycle Bin is the same as emptying it.
Correct
Deleting a file moves it to the Recycle Bin, where it still occupies disk space. The space is only reclaimed when you empty the Recycle Bin. The exam tests this distinction.
Mistake
Disabling System Restore will delete all restore points and free up space.
Correct
Disabling System Restore deletes all existing restore points, freeing the space they used. However, you lose the ability to revert to a previous state. An alternative is to reduce the maximum disk space used by System Restore.
Mistake
The page file can be safely deleted to free up space.
Correct
The page file (pagefile.sys) is essential for virtual memory. Deleting it can cause system instability or crashes. Instead, you can reduce its size or move it to another drive, but never delete it entirely.
Mistake
Low disk space only causes 'Disk Full' errors.
Correct
Low disk space can cause many symptoms: application crashes, failed updates, slow performance, inability to create temporary files, and even blue screen errors (e.g., KERNEL_DATA_INPAGE_ERROR). The exam may present these as symptoms of low disk space.
Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.
Use built-in tools: run Disk Cleanup (cleanmgr.exe) as administrator and select 'Clean up system files' to remove Windows Update Cleanup, Delivery Optimization Files, and more. Enable Storage Sense (Settings > System > Storage) to automatically delete temporary files. Empty the Recycle Bin. Disable hibernation with 'powercfg /h off' in an elevated command prompt to delete hiberfil.sys. Reduce the size of the Recycle Bin or page file if needed. These steps can reclaim significant space.
Drive manufacturers use decimal (base-10) units: 256 GB = 256,000,000,000 bytes. Operating systems use binary (base-2) units: 256 GB = 274,877,906,944 bytes (256 * 1024^3). The difference is about 7%. Additionally, Windows 10/11 reserves about 7 GB for Reserved Storage (updates, caches). So available space is around 238 GB. This is normal and not a sign of low disk space.
No, you should not delete pagefile.sys. It is essential for virtual memory. Instead, you can reduce its size or move it to another drive. To reduce, go to System Properties > Advanced > Performance > Virtual Memory, and set a custom size (e.g., 1024 MB initial and maximum). Moving it to a different drive can free space on the system drive.
Click the Apple menu > About This Mac > Storage > Manage. This shows recommendations. For a detailed view, use the 'du' command in Terminal: 'du -sh ~/Library/Caches' to check cache sizes, or 'du -sh /*' to see top-level directories. You can also use third-party apps like DaisyDisk or OmniDiskSweeper.
A common reason is that a process still holds an open file handle to a deleted file. The file's inode is not freed until the process closes it. Use 'lsof | grep deleted' to find such processes, then restart the process or kill it. Another reason: the file was moved to trash (if using a GUI) and still occupies space until the trash is emptied. Also, check for hidden files like .Trash-1000.
Windows Update typically requires 5-20 GB of free space on the system drive. For feature updates (e.g., upgrading from Windows 10 to 11), Microsoft recommends at least 20 GB. If free space is insufficient, the update will fail with an error message. Run Disk Cleanup to free space before attempting updates.
No. Defragmentation reorganizes data to make it contiguous, which can improve read/write performance on HDDs, but it does not increase free space. Only deletion, compression, or moving files off the drive frees space. On SSDs, defragmentation is unnecessary and can reduce the drive's lifespan due to unnecessary writes.
You've just covered Troubleshoot: Low Disk Space Issues — now see how well it sticks with free 220-1102 practice questions. Full explanations included, no account needed.
Done with this chapter?