If your Linux VPS reports “No space left on device,” start by identifying the affected filesystem, then determine whether it is out of storage blocks or inodes. Use df for the filesystem-level view, du or ncdu to locate large directories, and lsof +L1 to find deleted files that are still held open. This sequence also explains the common case where df says the disk is full but du cannot find the missing gigabytes.
Antihost offers Linux VPS plans with full root access, unlimited traffic on a 1 Gbps port and a 14-day free trial.
Start with a safe, read-only triage
Connect over SSH and avoid deleting anything until you know which mount is full and what owns the data. Most investigation commands only read metadata, so you can run them even when an application is failing because of low space.
As an Amazon Associate I earn from qualifying purchases.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →- Check every mounted filesystem with
df -h. - Check inode consumption with
df -i. - Check filesystem types and mount layout with
df -T. - Use
duorncduon the affected mount, staying on that filesystem. - If the totals do not match, inspect open-but-deleted files with
sudo lsof +L1.
Use sudo consistently. Without root access, du and lsof may be unable to read private directories and will under-report usage.
1. Confirm which filesystem is full
Read block usage with df -h
df -h
The output is one row per mounted filesystem. Focus on the Use%, Used, Avail and Mounted on columns. A VPS can have separate mounts for /, /var, /home or /boot; a nearly empty root filesystem does not help if a dedicated /var partition is full.
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
Check whether inodes, not bytes, are exhausted
df -i
Inodes are the filesystem records used to track files and directories. Millions of tiny session files, mail-queue entries or application cache files can consume every inode while df -h still shows free gigabytes. When IUse% reaches 100%, creating a new file can fail with “No space left on device” even though byte usage looks safe.
Inspect filesystem types and mount boundaries
df -T
This command adds the filesystem type and helps you see which mount point is actually full. Record the mount point before running du; investigating / when the problem is a separate /var mount produces confusing totals.
2. Rank directories by size with du
Once you know the affected mount, summarize its immediate children and sort the result numerically:
sudo du -xh --max-depth=1 / | sort -h
Read the final lines: they are the largest directories. If /var is largest, repeat the same pattern there:
sudo du -xh --max-depth=1 /var | sort -h
Continue into the largest child, such as /var/log, /var/lib or /var/cache, until you reach the files or service-specific directory responsible.
Why the flags matter
-hprints human-readable units.--max-depth=1gives one summary per immediate child instead of flooding the terminal with every file.-xkeeps the calculation on one filesystem. It prevents mounted disks, bind mounts and virtual filesystems from being counted as though they belonged to the mount you are measuring.
For a server, keep -x as the default. Some guides omit it, but crossing into another mount can make du appear much larger than the corresponding df row. Compare the final du total with the matching mount point in df; they should be reasonably close when no deleted-open files are involved.
Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
Measure a non-root mount directly
If df -T shows that /var is a separate filesystem, scan that path rather than scanning the whole root tree:
sudo du -xh -x --max-depth=1 /var | sort -h
Do not treat a large virtual path as ordinary disk data. Directories such as /proc and /sys expose kernel state, not persistent files to remove.
3. Browse the result interactively with ncdu
ncdu provides a keyboard-driven view that is useful over SSH. Install it using your distribution’s package manager, then scan the affected mount:
sudo ncdu -x /
Use the arrow keys to move through directories and press Enter to open one. The -x option has the same single-filesystem purpose as it does with du. ncdu was designed primarily for remote shells, so it is practical when a VPS has no graphical tools.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →Be careful with the delete key. Pressing d removes the selected item immediately. Only delete a path after confirming what created it, whether the service is running, and whether the data is disposable. For application data, prefer the application’s own cleanup or retention command.
4. When df is much larger than du
A large gap between filesystem usage reported by df and visible files reported by du often means a process still has a deleted file open. This commonly happens with a log: an administrator removes the directory entry, but the logging process keeps the file descriptor and its disk blocks remain allocated.
Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
Find deleted files that are still open
sudo lsof +L1
The +L1 filter lists open files whose link count is zero. Look for a large SIZE/OFF value and note the process ID, command and pathname. The pathname may include “(deleted)”.
Release the space safely
Deleting the name is not enough; the process must close the descriptor. Use the service’s documented log-reopen or reload mechanism first. If it cannot reopen logs, perform a controlled restart of the owning service during an appropriate maintenance window. Avoid blanket killing of processes, which can interrupt unrelated workloads or corrupt active operations.
Free tools Windows power users keep installed
One-click scans. No signup required.
Some administrators suggest truncating a live log in place with truncate -s 0. Treat that as a service-specific option to verify before use: truncation can destroy information needed for incident analysis, and behavior depends on how the process writes the file. After a reload or restart, run df -h again to confirm that the space returned.
5. Check systemd journal retention
On systems using systemd, the journal can grow independently of ordinary files in /var/log. Measure its current footprint:
journalctl --disk-usage
To remove archived entries by size, run:
sudo journalctl --vacuum-size=200M
Or remove archived entries older than seven days:
sudo journalctl --vacuum-time=7d
Vacuuming removes archived journal files only; it does not remove the active journal file. Rotate first when you need recent entries to become eligible:
sudo journalctl --rotate
sudo journalctl --vacuum-size=200M
Choose a size or age that preserves the logs required for debugging and compliance. To prevent the same emergency from recurring, set persistent limits in /etc/systemd/journald.conf, then reload or restart journald according to your distribution’s procedure. A limit is a retention policy, not a substitute for fixing an application that emits runaway errors.
Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
6. Investigate Docker storage, if Docker is installed
Docker stores image layers, writable container layers, volumes and build cache under its data root. Get a high-level report first:
docker system df
For object-by-object detail, use:
docker system df -v
Review the detailed list before pruning. The scopes differ:
| Command | Removes | What it keeps by default |
|---|---|---|
docker system prune |
Stopped containers, unused networks, dangling images and build cache | Volumes and unused tagged images |
docker system prune --volumes |
The items above plus eligible unused volumes | Volumes still referenced by containers |
docker system prune -a |
The items above plus unused tagged images | Images used by at least one container |
docker volume prune |
Unused named volumes | Volumes referenced by a container |
Prune commands are destructive. Confirm that an image, stopped container, build cache or volume is not needed for rollback, a database, save files or a game-server world before removing it. Plain docker system prune does not remove unused named volumes; handle those separately only after inspection.
Recommended Free Tools
7. Inspect the usual non-container culprits
Unrotated logs
Drill into /var/log with du and look for current logs, rotated archives and unexpectedly large application-specific files. Fix log rotation or the application’s verbosity rather than repeatedly deleting logs. Removing a log that is still open can create the df/du mismatch described above.
Package caches
Package managers can retain downloaded archives in /var/cache. Identify the owning package manager and use its supported cache-cleaning command; do not delete arbitrary files from package databases.
Old kernels
Multiple kernel packages may remain in /boot or the package database after upgrades. Keep the running kernel and at least one known-good fallback. Remove older kernels only through the distribution’s package manager, never by deleting files from /boot manually.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
Backups and administrator files
Check /root, application backup directories and temporary export locations. Backups are often the largest legitimate files on a small VPS. Verify that a copy exists elsewhere and that the retention policy allows removal before deleting one.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Small-file floods
If inode usage is the problem, size alone will not identify it. Descend with du and count entries in suspected session, cache, queue or mail-spool directories. Clean them with the service’s retention mechanism, and investigate why expiration or queue processing stopped.
8. Recover when applications are already failing
When a full filesystem prevents package installation, logging or temporary-file creation, preserve a small amount of space for diagnostics:
- Stop a nonessential service that is generating data, if you can do so safely.
- Use
df -h,df -i,duandlsof +L1before removing anything. - Release deleted-open files through a log reopen or controlled service restart.
- Vacuum archived journals after rotating them.
- Remove only confirmed disposable caches, failed builds or expired backups.
Never delete from /proc, /sys or arbitrary system directories to create emergency space. If the VPS remains full after safe cleanup, increase the virtual disk or attach a separate volume, then expand the partition and filesystem using procedures appropriate to its filesystem type.
9. Make the result permanent
Finding the largest directory solves today’s outage; retention controls prevent the next one. After recovery:
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problems- Set log rotation and confirm that rotated files are compressed and eventually deleted.
- Configure journald size or time limits in
/etc/systemd/journald.conf. - Give Docker images, build cache, containers and volumes explicit ownership and cleanup rules.
- Set expiration for sessions, queues, caches, temporary exports and backups.
- Monitor both filesystem bytes (
df -h) and inode percentage (df -i). - Alert before a mount reaches 100%, leaving room for logs and recovery commands.
- For game servers, include world saves, map backups, workshop downloads and crash dumps in the retention plan; these often live outside the directory you first expect.
A repeatable command checklist
# Filesystem blocks, inodes and types
df -h
df -i
df -T
# Largest directories on one filesystem
sudo du -xh -x --max-depth=1 / | sort -h
sudo du -xh -x --max-depth=1 /var | sort -h
# Interactive view
sudo ncdu -x /
# Deleted files still consuming blocks
sudo lsof +L1
# Journal and Docker reports
journalctl --disk-usage
docker system df
docker system df -v
Run the directory scan against the mount that df identified, not automatically against /. Keep the output from the first df run so you can verify that the responsible mount’s used space falls after each corrective action.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




