Why is /recovery at 100% and is it ok to remove those files

Abstract: Resolve 100% disk usage caused by a misconfigured or leftover /recovery directory in Linux.

Created: 2026-08-15 by
The /recovery directory in Linux and Ubuntu is not a standard system folder that should exist at the root level. If you see it consuming 100% of your disk space, it is likely a misconfigured mount point, a leftover from a failed installation, or a symbolic link pointing to a large data partition. It is generally safe to remove the contents if you are certain they are not critical system files, but first you must identify why the directory exists and ensure no active processes are using it. Removing these files can free up significant space, but doing so incorrectly may break boot sequences or cause system instability if the directory was intended for emergency recovery tools.

Understanding the Purpose of Recovery Directories

In standard Linux distributions like Ubuntu, there is no default /recovery directory at the root filesystem. The operating system uses /boot/recovery or specific partitions for kernel recovery modes. When users encounter a /recovery folder taking up all available space, it usually indicates one of several common issues. First, it might be a manual creation by a user or script attempting to store backup files. Second, it could be a result of a failed update where temporary files were not cleaned up properly. Third, and most critically, it might be a mount point that has accidentally been assigned to a large external drive or a secondary internal storage device that is now filling up the root partition. Before deleting anything, it is crucial to understand what resides in this folder. Use the command ls -lh /recovery to list the contents with human-readable sizes. This will help you determine if the data is logs, package caches, or actual user data. If the directory contains subdirectories like apt, cache, or logs, it might be a misplaced cache directory. If it contains personal documents, images, or videos, it is likely a user-created backup location that has grown out of control.

Checking for Mount Points

A very common cause for unexpected disk usage in a specific directory is an incorrect mount configuration. Run the command mount | grep /recovery to see if any file systems are mounted on this path. If you see output indicating a separate partition or device (like /dev/sdb1), then the space usage is actually coming from that device, not the root filesystem. In this case, removing files inside /recovery would delete data from that other drive, which could be catastrophic if it holds important information. Always verify the source of the data before proceeding with deletion.

Safety Assessment Before Deletion

Determining whether it is safe to remove files requires a careful audit of the directory structure. System-critical directories in Linux are typically located under /etc, /bin, /lib, and /usr. A standalone /recovery folder is rarely part of the core OS installation. However, some custom scripts or third-party applications might create this directory for storing temporary recovery images or diagnostic data. To check if any process is currently using files in this directory, use the lsof +D /recovery command. If this returns no results, it means no active program is reading or writing to these files, making them safer to target for removal. It is also important to consider the impact on system updates. Some package managers might temporarily extract files to various locations during upgrades. If /recovery is being used as a staging area for package installations, deleting its contents mid-process could corrupt your software repositories. Check the size of the directory again after running sudo apt clean to see if the space is reclaimed by standard maintenance commands. If the space remains full, the issue is persistent and requires manual intervention.

Steps to Safely Remove Files

If you have confirmed that the /recovery directory is not a mount point for critical hardware and no processes are using it, you can proceed with cleanup. Start by backing up any files you are unsure about to an external drive. Once backed up, you can safely delete the contents. Use the following steps to clear the directory without affecting system integrity.
  • Identify Large Files: Use du -sh /recovery/* to find the largest subdirectories or files. This helps prioritize what to delete.
  • Delete Non-Essential Data: If the directory contains only logs or cache files, you can remove them using sudo rm -rf /recovery/*. Be extremely careful with the wildcard character to ensure you do not delete the directory itself unless intended.
  • Verify Removal: After deletion, run df -h to confirm that the disk usage has decreased. This step ensures that the operation was successful and that the space is now available for other uses.
  • Prevent Recurrence: Investigate why the directory filled up. Check cron jobs, automated backup scripts, or application configurations that might be writing to this path. Adjusting these configurations will prevent the problem from returning.
If you find that the directory is essential for a specific application you rely on, consider moving it to a dedicated partition with sufficient space rather than deleting it entirely. This approach preserves functionality while resolving the disk space issue. For more advanced troubleshooting, such as dealing with boot issues related to recovery modes, you might need to consult resources on emergency maintenance. See Can't Longer Start Kubuntu? Going into Emergency Maintenance Mode for guidance on handling boot-related problems.

Alternative Management Strategies

Instead of simply deleting files, you can implement better management strategies to keep your system healthy. Regularly cleaning package caches with sudo apt autoremove and sudo apt clean prevents unnecessary accumulation of data. Additionally, monitoring disk usage with tools like ncdu can help you identify growing directories before they cause critical failures. If you frequently need recovery space, consider creating a dedicated logical volume or partition for backups and recovery tasks, ensuring that the root filesystem remains lean and responsive. For users experiencing connectivity issues alongside storage problems, it is worth checking if network services are contributing to log growth. Properly configured services should rotate their logs automatically. If you are managing remote monitoring or scripting environments, ensure that error logs are not being dumped to local storage unnecessarily. Refer to Fixing the 'Unsupported key' Error when Running a Script from Zabbix GUI if you suspect automation scripts are causing unexpected file generation.

Frequently Asked Questions

Is it safe to delete /recovery if I am using Ubuntu?

Yes, it is generally safe because /recovery is not a standard system directory in Ubuntu. However, you must first verify that it is not a mount point for another drive or used by a specific application. Always back up important data before deletion to prevent accidental loss.

What causes the /recovery directory to fill up quickly?

This usually happens due to misconfigured backup scripts, failed package installations leaving temporary files, or accidental mounting of a large drive. Log rotation failures can also contribute if applications are directed to write logs to this path instead of /var/log.

How can I check if a process is using files in /recovery?

Use the command lsof +D /recovery to list any open files in that directory. If the command returns no output, no active process is using the files, making them safe to remove. This step is crucial to avoid breaking running applications.

Should I reinstall Ubuntu if /recovery is corrupted?

No, reinstalling is rarely necessary for this issue. You can typically resolve the problem by identifying the source of the files and cleaning them manually. Reinstallation should only be considered if the root filesystem itself is damaged beyond repair.

Can I move /recovery to another partition?

Yes, you can move the directory to a larger partition and create a symbolic link from the original location. This allows you to retain the directory structure for any applications expecting it while freeing up space on the root partition. Ensure permissions are preserved during the move.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More