To check and free up disk space on Linux Mint, open the Disks utility or run df -h in a terminal to see which partition is full, then clear the usual suspects: the APT package cache with sudo apt clean, old kernels through Update Manager, and leftover files in your home folder. Most full-disk situations on Linux Mint come from three things — cached package downloads, accumulated old kernels, and personal files like downloads, videos and virtual machine images — and all three are safe to address with the right commands. This guide walks through checking usage accurately, freeing space without breaking anything, and fixing the situations where the obvious steps do not help.
What You'll Need
- A Linux Mint installation with an administrator account (you will be asked for your password for system-level commands)
- Access to a terminal — press
Ctrl+Alt+Tto open one, or find Terminal in the application menu - Roughly 15–30 minutes, depending on how much you want to clean
- An external drive or cloud backup if you plan to delete personal files rather than just caches
Step-by-Step
- See how full each partition actually is. Open a terminal and run
df -h. This lists every mounted filesystem with its size, used space, available space and mount point. Look at the line for/(your root partition) and, if you have one,/home. TheUse%column tells you how close you are to full. A root partition above about 90% is worth cleaning; at 100% the system can behave strangely, refusing logins or failing to start desktop services. - Find what is eating the space inside your home folder. Run
du -h --max-depth=1 ~ | sort -hr. This shows the size of each top-level folder in your home directory, largest first. Common culprits areDownloads,Videos,.local/share/Trash(the trash can),.cache, and folders belonging to virtual machines or Steam libraries. Drill into whichever is largest by repeating the command with that folder path. - Empty the trash. Files you "deleted" sit in the trash until you empty it. Right-click the Trash icon on the panel and choose Empty Trash, or run
rm -rf ~/.local/share/Trash/files/*in a terminal. Check the trash before deleting — this is permanent. - Clear the APT package cache. Every update you install leaves the downloaded
.debpackage behind. Runsudo apt cleanto remove all of them. This is completely safe: the packages are already installed, and the cache only exists so you can reinstall without re-downloading. On a long-neglected system this alone can free several gigabytes. - Remove old kernels. Linux Mint keeps previous kernels so you can boot an older one if an update breaks something, but it does not always remove them automatically. Open Update Manager from the application menu, click the View menu and choose Linux Kernels. Installed kernels are listed; you can remove older ones, but always keep the currently running kernel and at least one previous working kernel. The exact menu wording can differ slightly between Linux Mint versions, so look for the kernels entry under the View menu rather than assuming an identical label.
- Clean out cached thumbnails and application caches. Run
du -sh ~/.cacheto see how much is there, then delete the contents withrm -rf ~/.cache/*. Caches rebuild automatically as you use applications. Close running apps first so nothing is writing to the cache while you delete it. - Check for orphaned packages. Run
sudo apt autoremove --purge. This removes packages that were installed as dependencies and are no longer needed by anything. Read the list it proposes before confirming; it is usually safe, but confirm nothing you recognise as wanted is on the list. - Look for large individual files. If the totals still do not add up, run
find ~ -type f -size +500M 2>/dev/nullto list files over 500 MB in your home folder. Old ISO images, video exports and disk images are frequent offenders. Delete or move them to an external drive. - Consider Flatpak and Snap leftovers if you use them. Flatpak applications keep old runtime versions. Run
flatpak uninstall --unusedto remove runtimes no installed app needs. Snap is not installed by default on Linux Mint, but if you added it,sudo snap set system refresh.retain=2limits how many old snap revisions are kept. - Re-check your numbers. Run
df -hagain to confirm the freed space. If the root partition is still tight but your home folder is small, the space is being used by system files, logs or a runaway process — see Troubleshooting below.
Common Mistakes
- Deleting files as root without checking. Running
rm -rfwithsudoon the wrong path can destroy your system. Only use it on paths you have verified, and never on/or/homethemselves. - Removing the running kernel. If you delete the kernel you are currently booted into, the system may not start. Keep the current kernel plus one older one.
- Confusing
dfandduresults.dfshows filesystem-level usage;dutotals file sizes. They can disagree when files are held open by a process that has deleted them — the space is not released until the process closes the file. - Assuming Timeshift snapshots are free. Timeshift snapshots stored on the same drive can consume many gigabytes. Check Timeshift's settings if you use it.
- Emptying the trash before checking it. It is permanent, and people do accidentally trash files they meant to keep.
Tips
- Run
sudo apt cleanandsudo apt autoremoveevery few months rather than waiting for a crisis. - Keep your home folder on a separate partition if you can; a full home partition will not stop the system from booting, whereas a full root partition can.
- Use the Disks utility (in the application menu) for a graphical view of partition usage if you prefer not to work in a terminal.
- Move large media libraries and virtual machine images to an external drive rather than deleting them.
- If you use Timeshift, point its snapshots at a separate drive so they do not compete with your system for space.
Troubleshooting
Space did not free up after deleting files. A process is probably still holding a deleted file open. Run sudo lsof | grep deleted to find it, then restart that application or reboot. The space returns once the process releases the file.
The root partition is full but your home folder is small. Check /var/log for oversized log files with sudo du -sh /var/log/*. Journal logs can be trimmed with sudo journalctl --vacuum-size=200M. Also check /var/cache and /var/tmp.
The system will not boot or logs in to a black screen after the disk filled. Boot into recovery mode from the GRUB menu and free space from the root shell using the commands above, starting with sudo apt clean.
You accidentally removed something you needed. Reinstall the package with sudo apt install --reinstall packagename. For personal files, restore from your backup or from a Timeshift snapshot if you have one.
Update Manager refuses to run because of low space. Clear the APT cache and old kernels first, then retry the update.
Frequently Asked Questions
How much free space should I keep on Linux Mint?
Aim to keep at least 10–15% of the root partition free. Below about 5% the system can struggle to write logs and temporary files.
Is it safe to delete everything in ~/.cache?
Yes. Caches are rebuilt automatically. Close your applications first so nothing is mid-write.
Can I delete old kernels with a terminal command instead?
You can, but Update Manager's kernel list is the safer route because it shows which kernel is currently running and warns you. Use the graphical list unless you are confident with package names.
Why does df show less free space than I expect after deleting files?
Deleted files still held open by a running process keep occupying space until that process closes them. A reboot clears it.
Do Timeshift snapshots take up disk space?
Yes, potentially a lot. Check Timeshift's settings and consider storing snapshots on a separate drive.
Will clearing the APT cache break future updates?
No. The cache only holds downloaded package files; updates re-download anything they need.